Denizen Script NPC Actions


NPC Actions go in 'assignment' scripts, and work like 'events' but linked to the assigned NPC.
Learn about how NPC Actions work in The Beginner's Guide.


Showing 1 out of 39 NPC Actions...
Action Linesdamage
Triggerswhen the NPC is damaged by a player and the Damage trigger fires. Action does not run if you do not enable the Damage trigger.
Contexts<context.damage> returns how much damage was done.
Determine"cancelled" to cancel the damage event.
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/triggers/core/DamageTrigger.java#L56