Minecraft:World clock
More actions
Template:Wip Template:Exclusive Template:In development A world clock is a feature that contains an internal time that increases every tick.
Format
World clocks can be defined in data packs under the Template:Cd registry (i.e. found under data/<namespace>/world_clock/<id>.json)
- World clocks can be paused or resumed, and the time of the clock can be changed or queried from the Template:Cmd command.
- Format: object with no fields
By default, there are two world clocks, named Template:Cd and Template:Cd.
Behavior
The world clock is loaded once only when the client is started. Using Template:Cmd cannot reload the world clock; The client must be restarted.
The world clock itself does not contain any data; The game differentiates world clocks by recognizing their IDs. Every world clock represents an internal time, and during that, every Minecraft:game tick will increase. The settings of the world clock and whether it is paused is controlled by the Template:Cmd command.
If the Template:Gmr game rule is set to false, the world clock will not increase even if it is not paused.
In a Minecraft:world, every Minecraft:dimension will get their own world clock and the default value of a certain world clock shown by the Template:Cmd command according to their dimension type, and confirm which time markers are used according to the Minecraft:timeline that uses this world clock.
The time that a world has run is not controlled by the world clock.
Time marker
The time marker gives a specific name to the specific ticks in the world clock. Time marker is defined in Template:Nbt in a timeline. It will be registered to the world clock used by this timeline when the client is started.
The time marker can be used in the Template:Cmd command. Besides this, the game defines the following time markers that control the game events, they are usually not shown in the tips of commands:
wake_up_from_sleep: When the Minecraft:player wakes up, the tick that the game advances the time to. The time will not advance if this time marker does not exist.roll_village_siege: The time that the game starts to determine whether a Minecraft:zombie siege has happened. If this time marker does not exist, the game will not determine if a zombie siege has happened.
History
Java Edition
Bedrock Edition
Template:Navbox Java Edition technical
Minecraft:de:Weltuhr Minecraft:ja:世界時計 Minecraft:pt:Relógio do mundo Minecraft:zh:世界时钟定义格式