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

    Class PlayerInteractWithEntityBeforeEvent

    Contains information regarding an event before a player interacts with an entity.

    Index

    Constructors

    Properties

    Constructors

    Properties

    cancel: boolean

    If set to true the interaction will be cancelled.

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

    itemStack?: ItemStack

    The item stack that is being used in the interaction, or undefined if empty hand.

    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.

    target: Entity

    The entity that will be interacted with.

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