WorldBedrockEducation
/daylock
also /alwaysdayFreezes 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?
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.