Data component format/weapon
Minecraft Wiki article. Categories: Top-level_data_pages
📌 Mirrored from Minecraft Wiki
This article is reproduced from Data component format/weapon on the Minecraft Wiki. Mirrored from revision 2943986. 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.
- [NBT Compound / JSON Object] minecraft:weapon: When present, the specified amount of damage can be done to the item with each attack. Additionally, the 'Item Used' statistic is incremented for each attack with the item.
- [Int] item_damage_per_attack: The amount to damage the item for each attack performed. Defaults to
1. - [Float] disable_blocking_for_seconds: The amount of seconds that this item can disable a blocking shield on successful attack. If set to 0, this item cannot disable a blocking shield. Defaults to
0.
- [Int] item_damage_per_attack: The amount to damage the item for each attack performed. Defaults to
- [NBT Compound / JSON Object] minecraft:weapon: When present, the specified amount of damage can be done to the item with each attack. Additionally, the 'Item Used' statistic is incremented for each attack with the item.
Sources
- Data component format/weapon — Minecraft Wiki, CC BY-NC-SA 3.0, revision 2943986.