Skip to content
JasperLorelai edited this page Jun 28, 2026 · 1 revision

Source Code

spell-class: ".instant.WeatherSpell"

Important

Introduced in 4.0 Beta 19.

Value Supported
entity true
location true
entity_from_location false

Description:

Modifies the world or player weather.

Configuration:

Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.

Option Description Type Default
rain Enables or disables rain as the current weather in the world. Boolean Unset
thunder Enables or disables thunder as the current weather in the world. Boolean Unset
duration-clear, duration-weather, duration-thunder Overrides the default randomised weather timers caused by weather changes. These timers determine how long the current state will last before it gets toggled back (See Minecraft Wiki). Integer server ticks
player-weather Ignores all other options because it affects only the player weather. Requires a player targert (or caster). clear, downfall or reset

Example:

short-rain:
    spell-class: ".instant.WeatherSpell"
    always-granted: true
    rain: true
    duration-weather: 100

Clone this wiki locally