Class ToolItem

Define a tool.

Constructors

  • Parameters

    • item: ItemStack

      Item of the weapon.

    • Optionaloptions: ToolOptions

      Additional options of the tool.

    Returns ToolItem

Properties

item: ItemStack

Item of the weapon.

options?: ToolOptions

Additional options of the tool.

Methods

  • Consume durability when the tool use on logs.

    Returns void

  • Automatically consume durability for the tools.

    Returns void

  • Returns void

  • Consume durability when the tool use on dirts.

    Returns void