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

    Class PlayerInteractWithBlockAfterEvent

    Contains information regarding an event after a player successfully interacts with a block.

    Index

    Constructors

    Properties

    beforeItemStack?: ItemStack

    The ItemStack before the interaction succeeded, or undefined if hand is empty.

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

    block: Block

    The block that will be interacted with.

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

    blockFace: Direction

    The face of the block that is being interacted with.

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

    faceLocation: Vector3

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

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

    isFirstEvent: boolean

    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.

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

    itemStack?: ItemStack

    The ItemStack after the interaction succeeded, or undefined if hand is empty.

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

    player: Player

    Source Player for this event.

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