Interface: PlayerBreakBlockBeforeEvent
Cancelable event fired before a player breaks a block.
Properties
block
readonlyblock:Block
Live block at the affected position.
brokenBlockPermutation
readonlybrokenBlockPermutation:BrokenBlockPermutation
Block permutation present when the event was captured.
cancel
cancel:
boolean
Set to true before the handler returns to cancel the action.
dimension
readonlydimension:Dimension
Dimension containing the affected block.
itemStack
readonlyitemStack:ItemStack|null
Detached copy of the used stack, or null for an empty hand.
player
readonlyplayer:Player
Player performing the action.