World / Server
paper/world_time
World Time
Gets or sets the time of a world.
Note: 0 = dawn, 6000 = noon, 12000 = dusk, 18000 = midnight.
Inputs
| Name | Type | Optional | Description |
|---|---|---|---|
exec |
exec | Incoming execution. | |
world |
any | World object or world name string. | |
time |
number | ✓ | New time in ticks (for SET). |
Outputs
| Name | Type | Description |
|---|---|---|
exec |
exec | Continues after the operation. |
time |
number | Current world time in ticks. |
Properties
| Key | Type | Default | Description |
|---|---|---|---|
op |
select | "GET" |
Operation |
time |
number | 6000 |
Time (ticks) |