watch 28:07
Minecraft Interactive Experience
Do you like this video?
Play Sound
This feature is exclusive to Bedrock Edition and Education Edition.
daylock
Aliases | |
---|---|
Permission level required |
1 |
Restrictions |
Cheat only |
Locks and unlocks eternal daytime.
Contents
Syntax[]
daylock [lock: Boolean]
alwaysday [lock: Boolean]
Arguments[]
lock: Boolean
: enum
- Specifies whether the eternal daytime is locked or not.
- Must be a boolean (either
true
orfalse
). If not specified, defaults totrue
. Note that this argument has the opposite sense from thegamerule dodaylightcycle
command's argument.
Result[]
Command | Trigger | Bedrock Edition |
---|---|---|
any | the arguments are not specified correctly | Failed |
On success | Sets 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 . |