World / Server
paper/world_weather
World Weather
Gets or sets the weather of a world.
Inputs
| Name | Type | Optional | Description |
|---|---|---|---|
exec |
exec | Incoming execution. | |
world |
any | World object or world name string. |
Outputs
| Name | Type | Description |
|---|---|---|
exec |
exec | Continues after the operation. |
isRaining |
boolean | True if it is currently raining. |
isThundering |
boolean | True if it is thundering. |
Properties
| Key | Type | Default | Description |
|---|---|---|---|
op |
select | "GET" |
Operation |
rain |
boolean | false |
Rain (for SET) |
thunder |
boolean | false |
Thunder (for SET) |
duration |
number | 6000 |
Duration in ticks (for SET) |