Is Event
Description
Matches while one of the listed calendar events is running in the world of the entity.
This condition checks the world of the entity. It never matches in the Nether or the End.
Use the id inside the event file in the events folder, not the file name. The shipped ids are christmas, newyear, halloween and easter (Events). An event runs from the day its schedule starts to the end of the day it stops, in every world with a season that its file does not list under disabled-worlds. Files with enabled: false, like the shipped example, never run, and nothing runs while the calendar is off.
Attributes
| Attribute | Aliases | Description | Default |
|---|---|---|---|
| event | e | Event ids, separated by commas, any one is enough. Not case sensitive. | required |
Examples
ChristmasDecorations:
Conditions:
- isevent{e=christmas} true
Skills:
- message{m="The village is decorated for Christmas."} @Self
Runs while
christmasruns in the caster's world.
SpookyWhisper:
TargetConditions:
- isevent{e=halloween} true
Skills:
- message{m="Something rustles in the dark."}
SpookyNearbyPlayers:
Skills:
- skill{s=SpookyWhisper} @PlayersInRadius{r=30}
Messages only the nearby players whose world has
halloweenrunning.
EasterEggs:
Skills:
- message{m="Look for eggs near the barn."} @Self ?event{e=easter}
Inline, with the alias
event.
Aliases
- event