# Entity-Damage
TIP
This event can be cancelled
# Event Details
- The Entity-Damage event gets called whenever an entity spawned using the
spawnEntity()
function gets damaged, you can get some information from the event with the variables listed below
# Variables
$args$[0]
- The entity ID that was damaged$args$[1]
- The damager$args$[2]
- The item name, custom name, ID, meta, amount, and NBT that the player is holding as an array$args$[3]
- The final damage dealt to the entity$args$[4]
- The cause of the damage
# Usage
- Add a command to be called when this event triggers by running
/acodes event entity-damage add <command>