WorldBedrockEducation

/daylock

also /alwaysday

Freezes time at the current moment (or unfreezes it) on Bedrock — equivalent to /gamerule doDaylightCycle on Java. Also known as /alwaysday. Run with no argument to toggle.

What is /daylock used for?

What /daylock is for

Freezes or resumes the day-night cycle on Bedrock — the equivalent of Java's doDaylightCycle gamerule. /alwaysday is an alias.

When to use /daylock

Lock perpetual day for a build server or map without touching gamerules. On Java, use /gamerule or /time instead.

Syntax

Parameters

lockoptional
boolean
true to freeze time, false to resume.

Command builder

Fill in the options below to generate a ready-to-paste /daylock command.

optional

true to freeze time, false to resume.

Examples

  • Lock the time of day.

  • Resume the day-night cycle.

Common questions

How do I keep it day forever on Bedrock?

Run /daylock true (or /alwaysday). It freezes time — the Bedrock equivalent of /gamerule doDaylightCycle false.

How do I unlock the day-night cycle again?

Run /daylock false to resume normal time progression.

Permission level

/daylock requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.