Class WeaponItem

Define a tool.

Constructors

Properties

Methods

Constructors

  • Parameters

    • item: ItemStack

      Item of the weapon.

    • Optionaloptions: WeaponOptions

      Additional options of the weapon.

    Returns WeaponItem

Properties

item: ItemStack

Item of the weapon.

options?: WeaponOptions

Additional options of the weapon.

Methods

  • Automatically consume durability for the tools.

    Returns void