Month
Description
Matches when the world's current month is one of the listed months, by number or by name.
This condition checks the world of the entity. It never matches in the Nether or the End.
A number is the month's position in the months list of calendar.yml, from 1, and a name is an entry of that list (by default January to December). With sync-time-with-real-world: true, month 1 is January. 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 |
|---|---|---|---|
| month | m | Months, separated by commas, any one is enough. Names are not case sensitive. | required |
Examples
MidwinterFeast:
Conditions:
- month{m=12,1,2} true
Skills:
- message{m="Deep winter settles in."} @Self
Runs in the 12th, 1st and 2nd month.
HarvestReminder:
TargetConditions:
- month{m=September,10} true
Skills:
- message{m="Time to bring in the harvest."}
RemindNearbyPlayers:
Skills:
- skill{s=HarvestReminder} @PlayersInRadius{r=30}
A name and a number can share one list.
OctoberChill:
Skills:
- message{m="Leaves rustle in the wind."} @Self ?month{m=October}
Inline, it tests the caster.
Aliases
- ismonth