@minecraft/server
    Preparing search index...

    Class PlayerInteractWithEntityAfterEventBeta

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

    Index

    Properties

    beforeItemStack?: ItemStack

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

    itemStack?: ItemStack

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

    player: Player

    Source Player for this event.

    target: Entity

    The entity that will be interacted with.