Item Attributes

damage

This attribute defines how many half hearts is inflicted to any kind of entity (monsters, creatures, players) when hitting them with the item.
Some vanilla values:

  • wooden sword: 4
  • diamond sword: 7
  • diamond pickaxe: 5
  • all normal items: 1

Examples

// Default value
damage[0] = 1;
// ...
damage[31] = 1;

damage[13] = 7;

damage[4] = 2;