Has Seasons
Description
Matches when land protection allows seasonal effects in the chunk the entity stands in.
This condition checks the chunk of the entity, not the season of the world. Without an entity it is false.
Only land protection plugins decide. Without one it is true everywhere, worlds without a season included. With several, all of them must allow seasonal effects.
| Plugin | Seasonal effects are off when |
|---|---|
| WorldGuard (with WorldEdit) | the region sets season-effects to deny, or permanent-season to a season that exists |
| GriefPrevention | GriefPrevention reports a claim in the chunk and claimed-areas.seasons-enabled is false in griefprevention.yml |
A WorldGuard region counts for a whole chunk when it contains the middle of the chunk at sea level. Changes can take up to 5 seconds to show.
Attributes
This condition has no attributes
Examples
ProtectedGroundNotice:
TargetConditions:
- hasseasons false
Skills:
- message{m="Seasons do not reach this ground."}
NoticeNearbyPlayers:
Skills:
- skill{s=ProtectedGroundNotice} @PlayersInRadius{r=30}
Messages only the nearby players where seasonal effects are off.
LeatherWarmth:
Cooldown: 1
Conditions:
- hasseasons
- playertemp{max=25} true
- wearing{slot=CHEST;m=LEATHER_CHESTPLATE}
Skills:
- modifytemp{id=armor;amount=5;duration=2} @Self
No
trueorfalseafter a condition meanstrue.
SeasonEffectsNotice:
Skills:
- message{m="Seasonal effects are active here."} @Self ?hasseasons
Inline, it tests the caster.