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

    Contains information regarding the use of an item on a block.

    export class ItemUseOnEvent {
    private constructor();
    readonly block: Block;
    readonly blockFace: Direction;
    readonly faceLocation: Vector3;
    readonly itemStack: ItemStack;
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    block: Block

    The block impacted by this event.

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

    blockFace: Direction

    The face of the block that the item was used on.

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

    faceLocation: Vector3

    Location relative to the bottom north-west corner of the block that the item was used on.

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

    itemStack: ItemStack

    The item stack used on the block.

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