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

NameAdvance time of day
Rule name (Java 1.21.11+)advance_time
Old name (Java 1.21.10 and earlier)doDaylightCycle
Bedrock namedodaylightcycle
Value typetrue / false
Defaulttrue

Commands you can copy

Turn off (false)

/gamerule advance_time false

Reset to the default (true)

/gamerule advance_time true

Check the current value

/gamerule advance_time

Java 1.21.10 and earlier

/gamerule doDaylightCycle false

Bedrock Edition

/gamerule dodaylightcycle false

Notes

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.

Other game rules