@minecraft/server
    Preparing search index...

    Class ItemUseOnAfterEvent

    This class is deprecated and will be removed in 2.0.0.

    Use PlayerInteractWithBlockAfterEvent instead.

    Contains information related to an item being used on a block. This event fires when an item used by a player successfully triggers a block interaction.

    Hierarchy (View Summary)

    Index

    Properties

    block: Block

    This property is deprecated and will be removed in 2.0.0.

    Use PlayerInteractWithBlockAfterEvent instead.

    The block that the item is used on.

    blockFace: Direction

    This property is deprecated and will be removed in 2.0.0.

    Use PlayerInteractWithBlockAfterEvent instead.

    The face of the block that an item is being used on.

    faceLocation: Vector3

    This property is deprecated and will be removed in 2.0.0.

    Use PlayerInteractWithBlockAfterEvent instead.

    Location relative to the bottom north-west corner of the block where the item is placed.

    isFirstEvent: boolean

    This property is deprecated and will be removed in 2.0.0.

    Use PlayerInteractWithBlockAfterEvent instead.

    This value will be true if the event was triggered on players initial interaction button press and false on events triggered from holding the interaction button.

    itemStack: ItemStack

    This property is deprecated and will be removed in 2.0.0.

    Use PlayerInteractWithBlockAfterEvent instead.

    The impacted item stack that is being used on a block.

    source: Player

    This property is deprecated and will be removed in 2.0.0.

    Use PlayerInteractWithBlockAfterEvent instead.

    Returns the source entity that triggered this item event.