set_time
Sets the time of day in the world on the server, affecting every player in it.
Categories: world
Required arguments
| Key(s) | Description | Type |
|---|
time | The time in ticks to set (0=dawn, 6000=noon, 12000=dusk, 18000=midnight). Supports expressions. | EXPRESSION |
Optional arguments
| Key(s) | Description | Type | Default |
|---|
relative | If true, the time is added to the world's current time instead of replacing it. | BOOLEAN | false |
world | The name of the world to change. Defaults to the world the effect was triggered in. | STRING | |
Trigger parameters required
Example
effects:
- id: set_time
args:
time: 6000
relative: true # ← Optional
world: world_nether # ← Optional
Behaviour
| Setting | Value |
|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |