set_weather

Sets the weather in the world on the server, affecting every player in it.

Categories: world

Required arguments

Key(s)DescriptionType
weatherThe weather to set on the server.
Choices: clear, rain, thunder
STRING

Optional arguments

Key(s)DescriptionTypeDefault
durationHow long the weather lasts, in ticks. Defaults to the server's own choice. Supports expressions.EXPRESSION
worldThe 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

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue