Minecraft attributes list
By the ChunkScan Team · Updated November 2026
Quick answer: To get more hearts, open /attributes?a=max_health&v=40: the command is /attribute @s max_health base set 40, which gives you 20 hearts. Max health runs from 1 to 1024, and the game clamps any other value into that range.
Every Java entity attribute with its id, default, minimum and maximum, plus the /attribute command to set it.
What attributes are
Attributes are the numbers behind a mob or player: how much health it has, how fast it walks, how hard it hits, how far it can reach and how big it is. Each one has a default, a minimum and a maximum that the game itself sets, and the table above lists all three straight from the game files. Some attributes live on every living entity, some only matter for players, such as block break speed and luck, and a few only exist on mobs: follow range decides how far a mob notices you, and zombie reinforcements is the chance that a hurt zombie calls more of them on Hard.
Base value and modifiers
What you see in game is never just one number. Every attribute has a base value, and modifiers from armor, held items, potion effects and enchantments are added on top. The /attribute command can read the final value with get, read or change the base value with base get and base set, and add or remove named modifiers. The builder above writes the base set line: changing the base is what you want for more hearts or a different size, because gear keeps working on top of it. Whatever you type is clamped to the attribute's range, so a max health above 1024 still ends up as 1024. For all other commands see /commands on this site.
Add and multiply operations
A modifier uses one of three operations. add_value adds its amount to the base value. add_multiplied_base adds its amount times the base value, so 0.5 on a base of 20 adds 10. add_multiplied_total multiplies the running total by one plus its amount, so 0.3 makes the result 30% bigger; sprinting uses this to speed players up. The game applies all add_value modifiers first, then the add_multiplied_base ones, then each add_multiplied_total one, and finally clamps the result to the minimum and maximum in the table.
Scale and step height
scale changes how big an entity is, from 0.0625, one sixteenth, up to 16 times the normal size, and its hitbox grows or shrinks with it. step_height is how tall a block you walk up without jumping: 0.6 by default, enough for slabs and carpets but not for a full block, and up to 10. Both are popular in maps and minigames, and both work on players as well as mobs. Movement speed is a good example of a default that differs from the player's own value: the registry says 0.7, but players start on 0.1 and most mobs set their own.
Gear modifiers
Armor and weapons are attribute modifiers too. Each armor piece adds armor while it is worn, diamond and netherite pieces add armor toughness as well, netherite also adds knockback resistance, and a sword in your main hand adds attack damage and lowers attack speed from the base of 4. That is why armor is capped at 30 and toughness at 20 here: no amount of gear goes past those limits. The attack damage calculator at /attack-damage-calculator works out what a hit does with those values.
How do I get more hearts?
Run /attribute @s max_health base set 40 for 20 hearts. Two health points make one heart, the default is 20 and the game accepts up to 1024.
How do I make myself bigger or smaller?
Use the scale attribute, for example /attribute @s scale base set 2 to be twice as tall. Any value from 0.0625 to 16 works; 1 is normal.
Why is generic.max_health an unknown attribute?
Since Java 1.21.2 the ids have no generic., player., horse. or zombie. prefix: generic.max_health is now max_health. Old worlds are upgraded by the game, but commands and data packs need the new ids. The search above takes both.
Why does the table show a different default than my player has?
The default is the attribute's own starting value. Players and mob types can start on their own base instead: players hit for 1 attack damage, not 2, and walk at 0.1 movement speed, not 0.7. The note under each attribute shows the player's value.