Damageable
Allows items to store and receive damage.
Parameters
The maximum durability of the item.
The amount of damage the item receives when attacking an entity.
The amount of damage the item receives when breaking a block.
The ingredient required to repair the item in an anvil. Can be null for items that cannot be repaired.
The sound that is played when the item breaks.
Properties
The base data components that every item with this ItemBehavior has.
The sound that is played when the item breaks.
The key of the sound that is played when the item breaks.
The NamespacedCompound that every new ItemStack of an item with this ItemBehavior has by default.
The amount of damage the item receives when attacking an entity.
The amount of damage the item receives when breaking a block.
The maximum durability of the item.
The ingredient required to repair the item in an anvil.
The vanilla material properties that an item with this ItemBehavior requires.
Functions
Creates a string representation of this ItemBehavior and its data in itemStack.