Commands/daylock

Locks and unlocks the day-night cycle.

Arguments

 * Specifies whether the day-night cycle is locked or not. Must be  or  . If not specified, defaults to  . Note that this argument has the opposite sense from the   command's argument.

Result
Fails if the arguments are not specified correctly.

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

History
命令/daylock