/daylock Command in Minecraft Bedrock Edition

Lock and Unlock the Day-Night Cycle

Bedrock EditionWorld & BlocksPermission: Game DirectorsCheats: Yes

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.

Syntax (1 form)

  1. /daylock [lock: Boolean]

    Daylock

Arguments

ArgumentTypeWhat it means
lockBooleanDefault `true`. An `enum` of default `true` which locks daytime or `false`.

Examples

Tips

Common mistakes

Bedrock vs Java

Minecraft Java Edition does not have a /daylock command. This command is only available in Minecraft Bedrock Edition.

FAQ

How do I turn the day-night cycle back on?

Type /daylock false in the chat window to unlock the cycle and let time move normally again.

Do I need cheats enabled to use /daylock?

Yes, this command requires cheats to be enabled and you must have the Game Directors permission level.

What happens if I just type /daylock without true or false?

The command uses its default value of true, which immediately locks the world in daytime.

Related commands

/clone/difficulty/fill/fog/gamerule/locate/mobevent/place/setblock/setworldspawn/structure/tickingarea/time/weather