1. Wiki
  2. /Items
  3. /minecraft:damage

minecraft:damage

Don't want to write this by hand? GodCraft sets minecraft:damage for you with a switch.Get GodCraft

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

FieldTypeDefaultDescription
valueinteger0Extra 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
  }
}

Items: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more