@minecraft/server
    Preparing search index...

    Class ItemComponentBeforeDurabilityDamageEventBeta

    Contains information regarding an item before it is damaged from hitting an entity.

    Index

    Properties

    attackingEntity: Entity

    The attacking entity.

    durabilityDamage: number

    The damage applied to the item's durability when the event occurs.

    hitEntity: Entity

    The entity being hit.

    itemStack?: ItemStack

    The item stack used to hit the entity.