minecraft:damage
The damage component determines how much extra damage the item does on attack.
Properties
Can be written as a single value: integer (0 to 32767).
| Property | Type | Default | What it does |
|---|---|---|---|
value | Integer0 to 32767 | 0 | Specifies how much extra damage the item does, must be a positive number. |
Example from the game files
This is how vanilla copper_spear uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:damage": {
"value": 2
}
}Used by 7
Vanilla items with minecraft:damage in their definition:
copper_speardiamond_speargolden_speariron_spearnetherite_spearstone_spearwooden_spearSet it without writing JSON
The item maker writes this component for you from a form and puts it in a ready-to-import .mcaddon.