Interface ToolOptions

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

Properties

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

Trigger events when the tool has been destroyed.

type?: ToolType

Type of the tool.