Script API - v1.26.30.28
    Preparing search index...

    Class PlayerStartBreakingBlockAfterEventBeta

    Contains information regarding an event after a player starts breaking a block.

    export class PlayerStartBreakingBlockAfterEvent extends BlockEvent {
    private constructor();
    readonly blockPermutation: BlockPermutation;
    readonly face: Direction;
    readonly heldItemStack?: ItemStack;
    readonly player: Player;
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    block: Block

    Block currently in the world at the location of this event.

    This property can't be read in early-execution mode.

    blockPermutation: BlockPermutation

    The permutation of the block that the player is starting to break.

    This property can't be read in early-execution mode.

    dimension: Dimension

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

    This property can't be read in early-execution mode.

    face: Direction

    The face of the block being broken.

    This property can't be read in early-execution mode.

    heldItemStack?: ItemStack

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

    This property can't be read in early-execution mode.

    player: Player

    Player that started breaking the block for this event.

    This property can't be read in early-execution mode.