Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

setWeather

setWeather(writer, weather, setWeatherOptions?): WeatherRefusal | null

Sets the world’s weather on the world that decides outcomes, from a system’s step or a write outside one: a preset weather({ presets }) installed, or a target by its factors, such as a storm a game builds from its own state. The look blends from where it stands over blendSeconds and the ground moves at its rates, so a change mid-blend never jumps. A set to the target the world already blends to writes nothing. Refuses, and throws in development, for a preset the plugin was not given or a factor out of its range.

Parameter Type
writer Authority
weather WeatherPresetOptions | WeatherHandle
setWeatherOptions SetWeatherOptions

WeatherRefusal | null