I wanted to write a command, but I didn't know what to do with one thing. I would like to make an if query e.g. If it is December 31st, 2020 put a redstone piece at ~ ~ -2 ~. I want to do all of this with a command block
What's the problem, the date comparison?
import java.time. *;
if (LocalDate. Now (). Equals (LocalDate.of (2020, 12, 31 {
// do something
}
Nene would like to do it in a command block