@minecraft/server
    Preparing search index...

    Class ItemComponentUseOnEventBeta

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

    Hierarchy (View Summary)

    Index

    Properties

    block: Block

    The block impacted by this event.

    blockFace: Direction

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

    faceLocation: Vector3

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

    itemStack: ItemStack

    The item stack used on the block.

    source: Entity

    The entity that used the item on the block.

    usedOnBlockPermutation: BlockPermutation

    The block permutation that the item was used on.