Lock and Unlock the Day-Night Cycle
The /daylock command lets you lock and unlock the day-night cycle in Minecraft Bedrock Edition. By default, running the command stops time and keeps the world in daytime.
Players often use this command when building in creative mode or designing custom maps where they want constant daylight. You need the Game Directors permission level and cheats enabled in your world to use it.
/daylock [lock: Boolean]Daylock
| Argument | Type | What it means |
|---|---|---|
lock | Boolean | Default `true`. An `enum` of default `true` which locks daytime or `false`. |
/daylockLocks the day-night cycle using the default setting so it stays daytime.
/daylock trueExplicitly locks the daylight cycle so the sun does not move.
/daylock falseUnlocks the day-night cycle so time passes normally again.
Minecraft Java Edition does not have a /daylock command. This command is only available in Minecraft Bedrock Edition.
Type /daylock false in the chat window to unlock the cycle and let time move normally again.
Yes, this command requires cheats to be enabled and you must have the Game Directors permission level.
The command uses its default value of true, which immediately locks the world in daytime.
/clone/difficulty/fill/fog/gamerule/locate/mobevent/place/setblock/setworldspawn/structure/tickingarea/time/weather