@minecraft/server
    Preparing search index...

    Class PlayerInteractWithBlockBeforeEventBeta

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

    Index

    Properties

    block: Block

    The block that will be interacted with.

    blockFace: Direction

    The face of the block that is being interacted with.

    cancel: boolean

    If set to true the interaction will be cancelled.

    faceLocation: Vector3

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

    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.

    itemStack?: ItemStack

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

    player: Player

    Source Player for this event.