Time (Expression) — Skript

Addon: Skript · Category: Expression · Since: 1.0

Syntax

[the] time[s] [([with]in|of) %worlds%]

Description

The <a href='#time'>time</a> of a world. Use the "minecraft <a href='#timespan'>timespan</a>" syntax to change the time according to Minecraft's time intervals. Since Minecraft uses discrete intervals for time (ticks), changing the time by real-world minutes or real-world seconds only changes it approximately. Removing an amount of time from a world's time will move the clock forward a day.

Examples

set time of world "world" to 2:00
add 2 minecraft hours to time of world "world"
add 54 real seconds to time of world "world" # approximately 1 minecraft hour

View source