Minecraft /attribute Command Generator
The /attribute command is a powerful tool for controlling all entity stats in Minecraft. This generator simplifies its complex syntax, allowing you to easily change player and mob health, speed, size, and more. Create your own custom attribute commands with just a few clicks.
Minecraft Version
Loads the attribute data for the selected version.
Attribute
Select the attribute to modify.
Operation
Value
What this generator does
Choose the target, the attribute, and whether to set the base value or add a modifier, and the generator builds the /attribute command. /attribute changed three times after 1.16 (operation names in 1.20.5, modifier IDs in 1.21, removal of the generic. prefix in 1.21.2), and the generator writes the right format for your version. Default values and allowed ranges are shown for each attribute.
Command Usage Examples
1. Giant Zombie Boss
Create a formidable boss by scaling its size by 5x, and accordingly setting its health to 200 (100 hearts), attack damage to 10 (5 hearts), and knockback resistance to 100% to make it immovable.
/attribute @e[type=zombie,limit=1,sort=nearest] scale base set 5/attribute @e[type=zombie,limit=1,sort=nearest] max_health base set 200/attribute @e[type=zombie,limit=1,sort=nearest] attack_damage base set 10/attribute @e[type=zombie,limit=1,sort=nearest] knockback_resistance base set 1/attribute @e[type=zombie,limit=1,sort=nearest] generic.scale base set 5/attribute @e[type=zombie,limit=1,sort=nearest] generic.max_health base set 200/attribute @e[type=zombie,limit=1,sort=nearest] generic.attack_damage base set 10/attribute @e[type=zombie,limit=1,sort=nearest] generic.knockback_resistance base set 12. Speed Runner: Enhancing Player Movement
Doubles a player's base movement speed (0.1). Adding 1.0 with the base-multiply operation (add_multiplied_base in 1.21.2+, multiply_base in 1.20.4 and earlier) gives 0.1 + 0.1 × 1.0 = 0.2. Since 1.21 the modifier uses an ID like minecraft:fast_runner instead of a UUID, and you can remove it later by that ID.
/attribute @p movement_speed modifier add minecraft:fast_runner 1.0 add_multiplied_base/attribute @p generic.movement_speed modifier add 51b1a4a4-6b2e-4360-9d04-136181f42d2a fast_runner 1.0 multiply_base3. Unreachable Reach: Increasing Block Interaction Range
Extends how far you can place and break blocks in Survival. The default is 4.5; raising it to 10 lets you reach distant blocks. This player-only attribute was added in 1.20.5.
/attribute @p block_interaction_range base set 10/attribute @p player.block_interaction_range base set 10/attribute changes by version (Java Edition)
When an /attribute command from an old tutorial fails in a current version, it is usually because of these changes.
| Version | Change |
|---|---|
| 1.16 | Added the /attribute command. Modifiers use a UUID and a name, and the operations are add, multiply_base and multiply. |
| 1.20.5 | Operations were renamed to add_value, add_multiplied_base and add_multiplied_total, and attributes such as scale, jump_strength and block_interaction_range were added. |
| 1.21 | Modifiers use a single ID such as minecraft:fast_runner instead of a UUID and name. |
| 1.21.2 | Attribute IDs dropped the generic. and player. prefixes, for example generic.max_health → max_health. |
How we checked: the commands and error messages on this page were run and confirmed by the site operator on our own Java server (except permission cases involving other players). The attribute list and defaults are extracted from the official server jar's data generator reports, and FAQ error messages are quoted from the game's language file (en_us). Last checked: November 2026.
Default attribute values
Defaults for attributes people change most often. Using 1.21.2+ names.
1. Player defaults
· max_health: 20 (10 hearts) · movement_speed: 0.1 · attack_damage: 1 · jump_strength: 0.42 · block_interaction_range: 4.5 · entity_interaction_range: 3 · step_height: 0.6 · scale: 1
2. Common modifier examples
· Double speed: movement_speed modifier add minecraft:fast 1 add_multiplied_base · +10 max health: max_health modifier add minecraft:hp_bonus 10 add_value · Remove a modifier: max_health modifier remove minecraft:hp_bonus
3. Old names and new names
· generic.max_health → max_health · generic.movement_speed → movement_speed · player.block_interaction_range → block_interaction_range · operation multiply_base → add_multiplied_base (1.20.5+)
Frequently Asked Questions (FAQ)
Q. I get 'Entity ... has no attribute ...'.
The entity does not have that attribute. For example, block_interaction_range is player-only, so zombies do not have it. In 1.21.2+ old names like generic.max_health fail, so drop the prefix.
Q. I get '... is not a valid entity for this command'.
You picked an entity without attributes. Non-living entities such as items, arrows and experience orbs cannot use /attribute. With @e, set a mob type with type=.
Q. I get 'Modifier ... is already present on attribute ...'.
A modifier with the same ID is already applied. To change its value, remove it with modifier remove first and add it again. This often happens when a repeating command block keeps running add.
Q. What is the difference between base set and modifier add?
base set changes the attribute's base value itself, while modifier add puts a bonus on top. Modifiers can be removed by ID at any time, so they suit temporary buffs and conditional effects.
Q. How are the three modifier operations calculated?
Sum all add_value = A; A × (1 + sum of add_multiplied_base) = B; B × (1 + each add_multiplied_total) = final. For example, add_multiplied_base 1.0 on movement speed 0.1 gives 0.2 (double). In 1.20.4 and earlier they are named add, multiply_base and multiply.
Q. I increased scale, but health and damage stayed the same.
scale only changes size and hitbox. For a giant boss, raise max_health, attack_damage and knockback_resistance separately. In 1.21.2+ scale can be set from 0.0625 to 16.
Q. I raised max health, but the new hearts are empty.
max_health raises the maximum only and leaves current health as is. To fill it right away, give instant healing such as /effect give @p instant_health 1 10, or wait for natural regeneration.