Attribute Command Generator
Generate Minecraft /attribute commands to modify base values and modifiers for attributes such as maximum health, movement speed, attack damage, and scale.
Use base set to change the base value (permanently), and modifier add to add a modifier (which can be removed by ID).
For example, to double a player's size: attribute @s minecraft:scale base set 2; max health: minecraft:max_health.
Loading command data…
Attribute command (1.16+):/attribute @s max_health base set 40 sets the maximum health to 40 (20 hearts). From 1.21.2 onward, attribute names have no prefix; in versions 1.16–1.21.1, use generic.max_health, and the generator outputs the correct syntax for the selected version.
Frequently Asked Questions
How do I restore the maximum health?
/attribute @s max_health base reset, or base set 20。