Перейти к основному содержимому

Interface: PlayerBreakBlockBeforeEvent

Cancelable event fired before a player breaks a block.

Properties

block

readonly block: Block

Live block at the affected position.


brokenBlockPermutation

readonly brokenBlockPermutation: BrokenBlockPermutation

Block permutation present when the event was captured.


cancel

cancel: boolean

Set to true before the handler returns to cancel the action.


dimension

readonly dimension: Dimension

Dimension containing the affected block.


itemStack

readonly itemStack: ItemStack | null

Detached copy of the used stack, or null for an empty hand.


player

readonly player: Player

Player performing the action.