Season Progress
Description
Matches when the share of the current season that has passed, in percent from 0 to 100, is inside a range.
This condition checks the world of the entity. It never matches in the Nether or the End.
The progress counts the days since the season started plus the world time of the current day, out of the season length from the season start dates in calendar.yml. <mythicseasons.progress> shows its whole part, and the SubSeason phases are ranges of it. It reads 0 when the calendar cannot work out a season length, for example in a cycle with a single season. The condition is false while the calendar is off (enabled: false or an empty months list) and in a world with no date.
Attributes
| Attribute | Aliases | Description | Default |
|---|---|---|---|
| min | The lowest matching progress in percent, decimals allowed. | 0 | |
| max | The highest matching progress in percent, decimals allowed. | 100 |
Both limits are included. A value that is not a number is reported in the console and makes the condition always false, and min above max matches nothing.
Examples
SeasonLastQuarter:
Conditions:
- seasonprogress{min=75} true
Skills:
- message{m="The season is in its last quarter."} @Self
Runs from 75 percent to the end of the season.
DeepWinterWarning:
TargetConditions:
- season{s=winter} true
- seasonprogress{min=40;max=60} true
Skills:
- message{m="The coldest weeks are here."}
WarnNearbyPlayers:
Skills:
- skill{s=DeepWinterWarning} @PlayersInRadius{r=30}
Messages only the nearby players whose world is in mid-winter.
SeasonEnding:
Skills:
- message{m="Next season soon."} @Self ?seasonprogress{min=90}
Inline, it tests the caster.
Aliases
- seasonpercent