# Damage

TIP

This event can be cancelled

# Event Details

  • The Damage event gets called whenever a player gets damaged, you can get some information from the event with the variables listed below

# Variables

  • $args$[0] - The player 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 player
  • $args$[4] - The cause of the damage

# Usage

  • Add a command to be called when this event triggers by running /acodes event damage add <command>