Overview
minecraft:damage is an item component: it goes in the components object of a custom item. Adds bonus attack damage when the item is used to hit a mob or player.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
value | integer | 0 | Extra damage points added to each hit. Use a positive number.Range: 0 to 32767 |
Example
Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):
BP/items/<name>.json
{
"minecraft:damage": {
"value": 0
}
}