Skip to content

Weather Set

Weather on a map is not chance but a state a script can control

tick 0
Jump -> 30
if
Weather Set1
weatherstate
Set2
=
Weather Sense3
toweather
Weather Sense4
toweather
Print5
Print6
Print Flush7
@counter0number
switchednullnull
rainnullnull
stormnullnull
weatherset @rain true

After two seconds the world processor turns the rain on and immediately checks itself with weathersense: the board shows rain: 1.

Field What is in it
first the kind of weather: @rain, @snowing, @sandstorm, @sporestorm, @fog
second on or off
Constant What it is
@rain rain
@snowing snow
@sandstorm a sandstorm
@sporestorm a spore storm
@fog fog
@suspend-particles particles hanging in the air

The names come from the content itself, and they do not always match what you would expect: snow is called @snowing, not @snow.

Unofficial fan project, not affiliated with Anuke. Mindustry sprites, fonts and translations © Anuke, used under GPL-3.0; Fira Code under OFL-1.1. Site code is GPL-3.0.