# Break
TIP
This event can be cancelled
# Event Details
- The Break event gets called whenever a player breaks a block, you can get some information from the event with the variables listed below
# Variables
$args$[0]
- The player that broke the block$args$[1]
- The item name, custom name, ID, meta, amount, and NBT that the player is holding as an array$args$[2]
- The block name, id, and meta that was broke as an array$args$[3]
- The items names, custom names, IDs, meta, and NBTs that were dropped from the broken block as an array$args$[4]
- The amount of XP that was dropped from the block$args$[5]
- The world that the block is in$args$[6]
- TheX
position of the block$args$[7]
- TheY
position of the block$args$[8]
- TheZ
position of the block
# Usage
- Add a command to be called when this event triggers by running
/acodes event break add <command>