The ItemComponentBeforeDurabilityDamageEvent class in @minecraft/server.
Class in @minecraft/server
import { ItemComponentBeforeDurabilityDamageEvent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”attackingEntity
Section titled “attackingEntity”read-only
readonly attackingEntity: Entity;Types
durabilityDamage
Section titled “durabilityDamage”durabilityDamage: number;hitEntity
Section titled “hitEntity”read-only
readonly hitEntity: Entity;Types
itemStack
Section titled “itemStack”optional
itemStack?: ItemStack;Types