set_weather
Sets the weather in the world on the server, affecting every player in it.
Categories: world
Required arguments
| Key(s) | Description | Type |
|---|---|---|
weather | The weather to set on the server. Choices: clear, rain, thunder | STRING |
Optional arguments
| Key(s) | Description | Type | Default |
|---|---|---|---|
duration | How long the weather lasts, in ticks. Defaults to the server's own choice. Supports expressions. | EXPRESSION | |
world | The name of the world to change. Defaults to the world the effect was triggered in. | STRING |
Trigger parameters required
LOCATION
Example
effects:
- id: set_weather
args:
weather: clear|rain|thunder
duration: 6000 # ← Optional
world: world_nether # ← Optional
Behaviour
| Setting | Value |
|---|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |