Skip to main content

Interface: PlayerBreakBlockAfterEvent

Event fired after a player successfully 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.


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 | null

Currently connected player with the captured UUID, or null when unavailable.


playerId

readonly playerId: string

Stable UUID of the player that performed the action.


playerName

readonly playerName: string

Player name captured when the action occurred.