Skip to content

Damaged Trigger

Xemor edited this page Jul 23, 2021 · 1 revision

Damaged Trigger

The damaged trigger is used when you want to listen for any type, or a specific type, of damage being taken.

This trigger has a parameter of a list of different causes you can have it trigger for.

trigger:
  type: DAMAGED
  causes:
    - SUFFOCATION

A list of all legal damage causes can be found here. https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html

If you do not add any causes, then it will default to triggering when any damage is taken.

Clone this wiki locally