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

    Class ItemComponentMineBlockEvent

    Contains information regarding the mining of a block using an item.

    export class ItemComponentMineBlockEvent {
    private constructor();
    readonly block: Block;
    readonly itemStack?: ItemStack;
    readonly minedBlockPermutation: BlockPermutation;
    readonly source: Entity;
    }
    Index

    Constructors

    Properties

    block: Block

    The block impacted by this event.

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

    itemStack?: ItemStack

    The item stack used to mine the block.

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

    minedBlockPermutation: BlockPermutation

    The block permutation that was mined.

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

    source: Entity

    The entity that mined the block.

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