Atmosphere
Description
Matches when the weather at the entity agrees with every attribute you set. With no attribute it is always true.
This condition works on any entity, at its position. Without an entity it is false.
It uses the first of the weather sources with an answer. Under Skills:, atmosphereweather is the AtmosphereWeather mechanic.
Attributes
| Attribute | Aliases | Description | Default |
|---|---|---|---|
| raining | rain | true or false: rain at the position. Falling snow counts. |
not checked |
| snowing | snow | true or false: snow falling at the position. |
not checked |
| storm | thunder | true or false: a thunderstorm at the position. |
not checked |
| incloud | cloud | true or false: the position is inside a cloud. |
not checked |
Where each answer comes from
- A permanent weather region decides
rainingandstorm(clearis dry,rainraining,stormraining with thunder) and says nothing aboutsnowingorincloud. - The atmosphere simulation answers
raining,snowingandstorm, and says yes only where the first solid cloud layer draws cloud above the position, or below the top of the simulated cloud when there is no solid layer (Weather). In a WorldGuard region withseason-atmosphereset todenyit does not answer. - With no source,
rainingandstormfollow the vanilla weather, andsnowingis true while it rains in the world and the biome temperature at the position is below 0.15. incloudis true inside the first solid cloud layer as drawn, even when clouds are not shown to players. See-through layers such as fog never count. Without the simulation, or another plugin's provider that answers it,incloudis always false.
Examples
SnowFlurries:
Cooldown: 0.5
Conditions:
- atmosphere{raining=true;snowing=true} true
Skills:
- effect:particles{p=SNOWFLAKE;amount=10;hSpread=6;ySpread=4;speed=0.02;yOffset=3;audience=self} @Self
Falling snow counts as rain, so both tests pass while it snows.
MistOnYourFace:
TargetConditions:
- atmosphere{incloud=true} true
Skills:
- message{m="Mist beads on your face."}
CheckTheSky:
Skills:
- skill{s=MistOnYourFace} @PlayersInRadius{r=40}
Messages only the nearby players inside a cloud.
WeatherReport:
Skills:
- message{m="It is raining."} @Self ?atmosphere{raining=true}
- message{m="No rain today."} @Self ?atmosphere{raining=false}
Inline, it tests the caster.
Aliases
- atmosphereweather