Data component format/damage
Minecraft Wiki article. Categories: Top-level_data_pages
📌 Mirrored from Minecraft Wiki
This article is reproduced from Data component format/damage on the Minecraft Wiki. Mirrored from revision 3536877. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
- [Int] minecraft:damage: The number of uses consumed (not remaining) of the item's durability. Must be a non-negative integer, defaults to 0. If not present, the item cannot take damage. If this component is present on an item, its value is non-zero, the
minecraft:max_damageis also present on the item, and the player hovering over the item has advanced tooltips on, then white text is added to the tooltip showing "Durability:<durability>/<max_damage>".
- [Int] minecraft:damage: The number of uses consumed (not remaining) of the item's durability. Must be a non-negative integer, defaults to 0. If not present, the item cannot take damage. If this component is present on an item, its value is non-zero, the
Sources
- Data component format/damage — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3536877.