Minecraft Attribute Command Generator

Attributes are the underlying stats of every living entity. Java 1.21.2 dropped the generic. prefix from the attribute ids, so a command that works on one version silently targets nothing on the other. Pick the version and the generator writes an id your world accepts.

  • max_health, movement_speed, attack_damage, attack_speed and knockback_resistance
  • base set, base add and modifier operations
  • generic.max_health below 1.21.2, max_health at and above it

Read the matching guide