
/attribute
Reads or changes an entity's attributes, such as max health, speed or attack damage, and their modifiers. Its basic form is /attribute <target> <attribute> base get; it has 12 syntax forms and 5 arguments. Permission: Cheats / op 2.
/attribute syntax
Game dataEvery form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.
/attribute <target> <attribute> base get/attribute <target> <attribute> base get <scale>/attribute <target> <attribute> base reset/attribute <target> <attribute> base set <value>/attribute <target> <attribute> get/attribute <target> <attribute> get <scale>/attribute <target> <attribute> modifier add <id> <value> add_multiplied_base/attribute <target> <attribute> modifier add <id> <value> add_multiplied_total/attribute <target> <attribute> modifier add <id> <value> add_value/attribute <target> <attribute> modifier remove <id>/attribute <target> <attribute> modifier value get <id>/attribute <target> <attribute> modifier value get <id> <scale>/attribute examples
Ready-to-paste examples (cheats on). @s is you, @p the nearest player, @a everyone, @e every entity.
/attribute @s minecraft:scale base set 2- Makes you twice as big (the scale attribute, 0.0625 to 16).
/attribute @s minecraft:max_health base get- Shows your base max health (20 = 10 hearts).
/attribute @s minecraft:scale base reset- Puts your size back to normal.
/attribute arguments
What each argument expects, with the limits the game enforces.
| Argument | Expects | Limits |
|---|---|---|
<target> | Target selector or player name (@s, @p, @a, @e, @r) | one target |
<attribute> | Game ID from a registry | attribute |
<scale> | Number | — |
<value> | Number | — |
<id> | Namespaced ID (minecraft:…) | — |
Other commands
Data: Minecraft Java Edition 26.3 game files. How we source this
Reads or changes an entity's attributes, such as max health, speed or attack damage, and their modifiers. It has 12 syntax forms and can be run by: Cheats / op 2.
See Also
Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.
/attribute FAQ (Java 26.3)
What does /attribute do in Minecraft?
Reads or changes an entity's attributes, such as max health, speed or attack damage, and their modifiers.
What is the syntax of /attribute?
The basic form is /attribute <target> <attribute> base get. All forms are listed above.
What is an example of /attribute?
/attribute @s minecraft:scale base set 2 — Makes you twice as big (the scale attribute, 0.0625 to 16).
Do you need cheats for /attribute?
Yes: Cheats / op 2. In singleplayer turn on Allow Cheats (or open to LAN with cheats).