⚔️Combat, Damage, and Death Triggers
Last updated
Each trigger section uses the same Context terminology as the Power Triggers index.
on-attackRuns when the powered mob is responsible for damage, including owned indirect damage.
Entity roles
SOURCE is the powered attacker; SKILL is the direct damager; TARGET is the victim.
Event-specific data
Provides mutable damage and damage cause/origin context.
on-melee-attackRuns only when the powered mob is the direct damager.
Entity roles
SOURCE and SKILL are the mob; TARGET is the victim.
Event-specific data
Provides mutable damage and melee context.
on-damageRuns when the powered mob receives any damage.
Entity roles
TARGET is the powered mob; SOURCE is the resolved attacker when present; SKILL is direct damager or owner fallback.
Event-specific data
Includes environmental damage and mutable damage context.
on-damage-by-entityRuns when the powered mob receives entity-caused damage.
Entity roles
TARGET is the powered mob; SOURCE is resolved attacker; SKILL is direct damager.
Event-specific data
Does not run for environment-only damage.
on-regainRuns when the powered mob regains health.
Entity roles
All entity roles resolve to the powered mob.
Event-specific data
Provides mutable regain amount.
on-combustRuns when the powered mob is combusted.
Entity roles
All entity roles resolve to the powered mob.
Event-specific data
Provides mutable duration and combustion origin.
on-deathRuns when the powered mob dies.
Entity roles
All entity roles resolve to the powered mob.
Event-specific data
Provides death result, drops/experience, and supported revival behavior.
Last updated