World, time & weather
Freeze the day-night cycle
Stop time from advancing automatically on Bedrock
- Edition
- Bedrock Edition
- Version
- Bedrock Edition 26.x (1.20 and up)
- Difficulty
- Intermediate
- Prep time
- 1 minutes
- Copied
- 0 times
- Permission
- Requires cheats to be enabled or operator permission
When to use it
Hold a Bedrock arena or photo scene in daylight by setting the time to day and then stopping the day-night cycle there. This does not pause mobs, redstone, or the rest of the game simulation.
Before running
Check first that no event or farm relies on nighttime, then run both lines once. The rule stays false on its own, so a repeating block is not needed to hold either the rule or the time.
Follow in order
All commands
Set daytime
/time set dayPicks the moment to hold before the cycle is frozen
Freeze the cycle
/gamerule doDaylightCycle falseStops time advancing at the moment set on the first line
What to customize
Change day to noon, sunset, or night for different light, and set false back to true after the event to resume the cycle. Resuming does not restore the earlier time, so note the world’s original rules before changing them.
Verify the result
Query /gamerule doDaylightCycle for false, then observe the sun or moon where the sky is visible. Check time separately from changes in weather.
When results differ
If time jumps while the rule is false, look for direct time set calls. The rule stops automatic progression; it does not prohibit operators or other commands from choosing a new time.