/daylock

From Minecraft Wiki
Jump to navigation Jump to search
This feature is exclusive to Bedrock Edition and Minecraft Education.
 
/daylock
Aliases /alwaysday
Permission level
required
1
Restrictions Cheat only

Locks and unlocks eternal daytime.

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.

Syntax

[edit | edit source]
daylock [lock: Boolean]
alwaysday [lock: Boolean]

Arguments

[edit | edit source]

lock: Boolean: enum

Specifies whether the eternal daytime is locked or not.
Must be a [Boolean]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

[edit | edit source]

CommandTriggerBedrock Edition
AnyThe argument is not specified correctly. Unparseable
OtherwiseSuccessful

History

[edit | edit source]

Bedrock Edition

[edit | edit source]
Bedrock Edition
1.2.0?Added /daylock.

Minecraft Education

[edit | edit source]
Minecraft Education
1.0.21Added /daylock.
[edit | edit source]
[edit | edit source]