Tool
Allows items to be used as tools, by specifying break and attack properties.
Parameters
The ToolTier of the tool.
The ToolCategory ToolCategories of the tool.
The break speed of the tool.
The attack damage of the tool.
The attack speed of the tool.
The knockback bonus of the tool when attacking.
Whether the tool can perform a sweep attack.
Whether the tool can break blocks in creative mode.
The amount of ticks to disable an attacked shield's blocking status for when attacking with this tool.
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 ToolCategories of this tool.
The NamespacedCompound that every new ItemStack of an item with this ItemBehavior has by default.
The amount of ticks to disable blocking for when using this tool.
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.