Passive Listener Take Damage - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

PassiveSpell trigger: takedamage

[!WARNING] Since 4.0 Beta 17 this trigger has been deprecated.

Properties:

Property Value
Cancellable true
Has Entity Target true
Has Location Target false

Description:

The listener activates whenever an entity takes damage from another entity.

String Format Options:

Arguments are optional but may be a pipe-separated (|) list of DamageCause or items following the Magic Item String format.

triggers:
    - takedamage (causes or items)

Section Format Options:

(Unsupported for now.)