Updated:
Advance time of day game rule (advance_time)
The "Advance time of day" rule is called advance_time in Java 1.21.11 and later, and doDaylightCycle in 1.21.10 and earlier. Controls whether the time of day moves forward. Set it to false to freeze time.
Basic data
| Name | Advance time of day |
|---|---|
| Rule name (Java 1.21.11+) | advance_time |
| Old name (Java 1.21.10 and earlier) | doDaylightCycle |
| Bedrock name | dodaylightcycle |
| Value type | true / false |
| Default | true |
Commands you can copy
Turn off (false)
/gamerule advance_time falseReset to the default (true)
/gamerule advance_time trueCheck the current value
/gamerule advance_timeJava 1.21.10 and earlier
/gamerule doDaylightCycle falseBedrock Edition
/gamerule dodaylightcycle falseNotes
- Java 1.21.11 renamed game rules to lower case with underscores. If an older command or a map description uses the old name, rewrite it for your version.
- Game rules are saved per world. On a server, a new world starts with the default values again.
Questions
Typing doDaylightCycle gives an error
In Java 1.21.11 and later the rule is called advance_time. Write /gamerule advance_time … instead. Worlds on 1.21.10 and earlier keep the old name.
How do I check the current value?
Run /gamerule advance_time without a value. The current value is shown in chat.