Skip to main content

Protocol: PlayerBreakBlockAfterEvent

Event fired after a player successfully breaks a block.

class PlayerBreakBlockAfterEvent(Protocol)

Related API: Block, BrokenBlockPermutation, Dimension, ItemStack, Player

Properties

dimension

@property
def dimension(self) -> Dimension:

Dimension containing the affected block.

Related API: Dimension

player

@property
def player(self) -> Optional[Player]:

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

Related API: Player

player_id

@property
def player_id(self) -> str:

Stable UUID of the player that performed the action.

player_name

@property
def player_name(self) -> str:

Player name captured when the action occurred.

block

@property
def block(self) -> Block:

Live block at the affected position.

Related API: Block

item_stack

@property
def item_stack(self) -> Optional[ItemStack]:

Detached used stack, or None for an empty hand.

Related API: ItemStack

broken_block_permutation

@property
def broken_block_permutation(self) -> BrokenBlockPermutation:

Block permutation present when the event was captured.

Related API: BrokenBlockPermutation