Minecraft:Commands/daylock
From SAS Gaming Wiki
More actions
Script error: No such module "Exclusive". Template:Infobox command 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
daylock [lock: Boolean]alwaysday [lock: Boolean]
Arguments
lock: Boolean: enum
- Specifies whether the eternal daytime is locked or not.
- {{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|bool}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}} If not specified, defaults to
true. Note that this argument has the opposite sense from thegamerule dodaylightcyclecommand's argument.
Result
Template:Result table Template:Result table Template:Result table Template:Result table
History
Bedrock Edition
Minecraft Education
External links
de:Befehl/daylock ja:コマンド/daylock lzh:令/daylock nl:Opdrachten/daylock pt:Comandos/daylock ru:Команды консоли/daylock zh:命令/daylock