Tool
Allows items to be used as tools, by specifying break and attack properties.
Constructors
Properties
The attack damage of this tool.
The attack speed of this tool.
The base data components that every item with this ItemBehavior has.
The break speed of this tool.
Whether this tool can break blocks in creative mode.
Whether this tool can perform a sweep attack.
The ToolCategory of this tool.
The NamespacedCompound that every new ItemStack of an item with this ItemBehavior has by default.
The data component patch that every new ItemStack of an item with this ItemBehavior has by default.
The knockback bonus of this tool when attacking.
The vanilla material properties that an item with this ItemBehavior requires.
Functions
Creates a string representation of this ItemBehavior and its data in itemStack.