Item Attributes

damage

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

  • wooden sword: 5
  • diamond sword: 6
  • diamond pickaxe: 4
  • all normal items: 0

Examples

// Default value
damage = 0;

damage = 7;

damage = 2;