Contains information regarding an event before a player breaks a block.

Hierarchy (View Summary)

Properties

block: Block

Block impacted by this event.

cancel: boolean

If set to true, cancels the block break event.

dimension: Dimension

Dimension that contains the block that is the subject of this event.

itemStack?: ItemStack

The item stack that is being used to break the block, or undefined if empty hand.

player: Player

Player breaking the block for this event.