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

Hierarchy

Constructors

Properties

block: Block

Remarks

Block impacted by this event.

cancel: boolean

Remarks

If set to true, cancels the block break event.

dimension: Dimension

Remarks

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

itemStack?: ItemStack

Remarks

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

player: Player

Remarks

Player breaking the block for this event.