Interface WeaponOptions

interface WeaponOptions {
    destroyedAfterEvents?: ((holder: Entity, item: ItemStack) => void);
    type?: WeaponType;
}

Properties

destroyedAfterEvents?: ((holder: Entity, item: ItemStack) => void)

Trigger events when the tool has been destroyed.

type?: WeaponType

Type of the tool.