Atmosphere Profile
Description
Matches when a named atmosphere profile is forced on the entity's world, by profile under its worlds entry in atmosphere.yml or by the AtmosphereProfile mechanic.
This condition works on any entity and reads its world. Without an entity it is false.
Name a profile by its file name in atmosphere-profiles, without .yml (shipped: example and mars). A pushed profile counts until its duration ends or the mechanic removes it with clear=true. The condition is false while the atmosphere is off (enabled: false in atmosphere.yml). Under Skills:, atmosphereprofile and atmoprofile are the AtmosphereProfile mechanic.
Attributes
| Attribute | Aliases | Description | Default |
|---|---|---|---|
| profile | p, name | Profile name, not case sensitive. Without it any forced profile matches. | any |
Examples
MarsDustWarning:
Cooldown: 0.5
Conditions:
- atmosphereprofile{profile=mars} true
- atmospherewind{min=3} true
Skills:
- message{m="Dust stings your eyes."} @Self
The shipped Mars dust skill uses the same two conditions.
BossSkyNotice:
TargetConditions:
- atmosphereprofile{name=example} true
Skills:
- message{m="The sky darkens around the arena."}
NoticeNearbyPlayers:
Skills:
- skill{s=BossSkyNotice} @PlayersInRadius{r=60}
Messages only the nearby players whose world has
exampleforced.
NormalSkyNotice:
Skills:
- message{m="The sky is back to normal."} @Self ?!atmosphereprofile
Passes when no profile is forced.
Aliases
- atmoprofile