Options
All
  • Public
  • Public/Protected
  • All
Menu

Object used in Item.createShearsItem method.

since

2.2

Hierarchy

Index

Properties

durability?: number

Here, when creating a shears item, you can specify only its durability without creating a tool material. In this case, your shears will have the same cutting speed as vanilla shears, but the durability will be different.

isTech?: boolean

If true, the tool item will not be displayed in creative inventory, defaults to false.

stack?: number

Maximum stack size of the tool item, defaults to 1.

tier?: string | ToolMaterial

Tool item's material, you can use string name of the material defined by vanilla or registered by ToolAPI.addToolMaterial or by creating a KEX.ToolsModule.ItemTier, or you can specify the description object of the new tool material. If you don't specify name property in this object, this new material will have name like __unnamedMaterial{N}, where {N} is an incrementing integer.

Generated using TypeDoc