Minecraft:Commands/daylock: Difference between revisions
From SAS Gaming Wiki
More actions
imported>Ja17 mNo edit summary |
Fix template calls: add MC/ prefix |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{MC/Exclusive|bedrock|education}} | ||
{{Infobox command | {{Infobox command | ||
|name=daylock | |name=daylock | ||
|oplevel=1 | |oplevel=1 | ||
|cheat=1 | |cheat=1 | ||
|alias={{ | |alias={{MC/Cmd|alwaysday}} | ||
}} | }} | ||
Locks and unlocks eternal | Locks and unlocks eternal daytime. | ||
Sets the game option "Always Day" to the argument value. If the argument is <code>false</code>, turns on the "Do Daylight Cycle" game option. If the argument is <code>true</code> or is omitted, turns off the "Do Daylight Cycle" game option and sets the time of day (<code>time daytime</code> value) to 5000 | Sets the game option "Always Day" to the argument value. If the argument is <code>false</code>, turns on the "Do Daylight Cycle" game option. If the argument is <code>true</code> or is omitted, turns off the "Do Daylight Cycle" game option and sets the time of day (<code>time daytime</code> value) to 5000 ticks, which is one in-game hour before noon. | ||
==Syntax== | ==Syntax== | ||
| Line 16: | Line 16: | ||
==Arguments== | ==Arguments== | ||
{{ | {{MC/Argument|be=1|lock: Boolean|enum}} | ||
: Specifies whether the eternal daytime is locked or not. | : Specifies whether the eternal daytime is locked or not. | ||
: {{ | : {{MC/Arg desc|be=bool}} If not specified, defaults to <code>true</code>. Note that this argument has the ''opposite'' sense from the <code>gamerule dodaylightcycle</code> command's argument. | ||
==Result== | ==Result== | ||
| Line 30: | Line 30: | ||
=== ''Bedrock Edition'' === | === ''Bedrock Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|bedrock}} | |{{MC/HistoryLine|bedrock}} | ||
|{{HistoryLine||1.2.0|dev=?|Added {{ | |{{HistoryLine||1.2.0|dev=?|Added {{MC/Cd|/daylock}}.}} | ||
}} | }} | ||
=== ''Minecraft Education'' === | === ''Minecraft Education'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|education}} | |{{MC/HistoryLine|education}} | ||
|{{HistoryLine||1.0.21|Added {{ | |{{HistoryLine||1.0.21|Added {{MC/Cd|/daylock}}.}} | ||
}} | }} | ||
| Line 45: | Line 45: | ||
== Navigation == | == Navigation == | ||
{{Navbox commands}} | {{MC/Navbox commands}} | ||
de:Befehl/daylock | |||
ja:コマンド/daylock | |||
lzh:令/daylock | |||
nl:Opdrachten/daylock | |||
pt:Comandos/daylock | |||
ru:Команды консоли/daylock | |||
zh:命令/daylock | |||
Latest revision as of 20:09, 9 April 2026
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