@minecraft/server
    Preparing search index...

    Class PlayerBreakBlockBeforeEventBeta

    Contains information regarding an event before a player breaks a block.

    Hierarchy (View Summary)

    Index

    Properties

    block: Block

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

    cancel: boolean

    If set to true, cancels the block break event.

    dimension: Dimension

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

    itemStack?: ItemStack

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

    player: Player

    Player breaking the block for this event.