Minecraft Wiki

The Minecraft Wiki is no longer considered as official by Microsoft and therefore several changes are required to be made, including to the wiki's logo. Please read this announcement for more information.

READ MORE

Minecraft Wiki
Advertisement
Information icon.svg
This feature is exclusive to Bedrock Edition and Education Edition. 
daylock
Aliases

/alwaysday

Permission level
required

1

Restrictions

Cheat only

Locks and unlocks eternal daytime.

Syntax[]

daylock [lock: Boolean]
alwaysday [lock: Boolean]

Arguments[]

lock: Boolean: bool

Specifies whether the eternal daytime is locked or not.
Must be a boolean (either true or false). If not specified, defaults to true. Note that this argument has the opposite sense from the gamerule dodaylightcycle command's argument.

Result[]

CommandTriggerBedrock Edition
anythe arguments are not specified correctly Failed
On successSets the game option "Always Day".

On success, sets the game option "Always Day" to the argument value. If the argument is false, turns on the "Do Daylight Cycle" game option. If the argument is true or is omitted, turns off the "Do Daylight Cycle" game option and sets the time of day (time daytime value) to 5000 ticks, which is one in-game hour before noon.

History[]

Bedrock Edition
1.2.0?Added /daylock.
Advertisement