Changes
Page history
Create skills/mechanics/cancelevent
authored
Aug 11, 2020
by
Ashen
Show whitespace changes
Inline
Side-by-side
skills/mechanics/cancelevent.md
0 → 100644
View page @
b7ab2cab
Mechanic: CancelEvent
=====================
Cancel the Event that triggered the skill. This mechanic has several
important requirements in order to execute properly:
-
The mechanic (or the first skill that leads to it) must be run with
sync=true in the mob's skill list. Example: -
skill{s=CancelEventSkill;sync=true} ~onDamaged
-
No delays allowed.
-
It only works with specific triggers that make sense.
Possible Triggers
-----------------
-
~onAttack
-
~onDamaged
-
~onExplode
-
~onInteract
-
~onCombat
-
~onTeleport
Example
-------
Skill.yml:
CancelDamageEvent:
Skills:
- CancelEvent
Mob.yml:
NoDamageMob:
Type: villager
Skills:
- skill{s=CancelDamageEvent;sync=true} ~onDamaged