Minecraft attributes: full list and the /attribute command
Attributes are the numbers that describe players, mobs and armor stands: health, speed, size, reach and much more. With the /attribute command you can read and change every one of them. Below you'll find the full list of all 40 attributes in Java 26.3, with their default values and ranges.
What attributes are
Every entity that has attributes has a base value for each of them. Modifiers, for example from armor, enchantments or effects, are applied on top of it, and together they give the final value. Each attribute also has a minimum and a maximum that the result can't go past.
Only players, mobs and armor stands have attributes. Some only work for players (for example block_break_speed), and some only for mobs (for example follow_range). Some mobs also have a different base value than the default, so check it with the get command first.
/attribute command syntax
| Syntax | What it does |
|---|---|
/attribute <target> <attribute> get [scale] | Reads the final value, including modifiers. |
/attribute <target> <attribute> base get [scale] | Reads only the base value. |
/attribute <target> <attribute> base set <value> | Sets a new base value. |
/attribute <target> <attribute> base reset | Restores the default base value (since Java 1.21.4). |
/attribute <target> <attribute> modifier add <id> <value> <operation> | Adds a modifier, as long as the target doesn't already have a modifier with that ID. |
/attribute <target> <attribute> modifier remove <id> | Removes the modifier with the given ID. |
/attribute <target> <attribute> modifier value get <id> [scale] | Reads the value of a single modifier. |
Parameters in <angle brackets> are required. Parameters in [square brackets] are optional.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| target | selector (1 entity) | Yes | One player, mob or armor stand. Other entities don't have attributes. |
| attribute | attribute ID | Yes | For example minecraft:max_health, minecraft:movement_speed or minecraft:scale. Since Java 1.21.2 without the generic., player. and zombie. prefixes. |
| get | base | modifier | subcommand | Yes | get reads the final value, base get/set/reset works on the base value, and modifier add/remove/value get handles modifiers. |
| value | number | No | The new base value or the modifier's value. The final result never goes outside the attribute's minimum and maximum. |
| operation | add_value | add_multiplied_base | add_multiplied_total | No | How the modifier works, given with modifier add. |
| scale | number | No | A multiplier applied to the value read before it's stored as an integer, for example by /execute store. |
List of attributes in Java 26.3
The table gives the IDs to type in the command (with the minecraft: prefix), the default value and the range from minimum to maximum. Data based on minecraft.wiki for Java Edition 26.3.
| Attribute | What it does | Default | Range |
|---|---|---|---|
| air_drag_modifier | Air drag multiplier. 0 turns drag off; higher values slow down movement through the air faster. Since 26.2. | 1 | 0 to 2048 |
| armor | Armor points, which reduce damage. | 0 | 0 to 30 |
| armor_toughness | Armor toughness. Reduces how much protection drops against strong hits. | 0 | 0 to 20 |
| attack_damage | Melee attack damage. Players have a base of 1. | 2 | 0 to 2048 |
| attack_knockback | Extra knockback on melee attacks. | 0 | 0 to 5 |
| attack_speed | Number of full-strength attacks per second. Player only. | 4 | 0 to 1024 |
| below_name_distance | The distance from which you can see the scoreboard score shown in the below_name display slot, under an entity's name. Since 26.2. | 10 | 0 to 512 |
| block_break_speed | Block breaking speed multiplier. Player only. | 1 | 0 to 1024 |
| block_interaction_range | Block interaction range, in blocks. Player only. | 4.5 | 0 to 64 |
| bounciness | Bounciness when landing on the ground. The higher the value, the more the entity bounces. Since 26.2. | 0 | 0 to 1 |
| burning_time | Multiplier for how long the entity burns after being set on fire. | 1 | 0 to 1024 |
| camera_distance | The maximum camera distance in third-person view, multiplied by scale. | 4 | 0 to 32 |
| entity_interaction_range | Entity interaction range, in blocks, for example your attack reach. Player only. | 3 | 0 to 64 |
| explosion_knockback_resistance | Resistance to knockback from explosions. 1 removes this knockback. | 0 | 0 to 1 |
| fall_damage_multiplier | Fall damage multiplier. | 1 | 0 to 100 |
| flying_speed | Flying speed. Only some flying mobs have this attribute. | 0.4 | 0 to 1024 |
| follow_range | The range in blocks within which a mob targets and tracks its target. Mobs only. | 32 | 0 to 2048 |
| friction_modifier | Multiplier for the friction acting on the entity. Since 26.2. | 1 | 0 to 2048 |
| gravity | Gravity, in blocks per tick squared. A negative value pulls upward. | 0.08 | -1 to 1 |
| jump_strength | Jump strength: the initial upward velocity, in blocks per tick. | 0.42 | 0 to 32 |
| knockback_resistance | Resistance to horizontal knockback from attacks and projectiles. 1 removes knockback. Minimum of -2 since 26.2. | 0 | -2 to 1 |
| luck | Luck. A higher value improves the amount and quality of loot from loot tables. | 0 | -1024 to 1024 |
| max_absorption | The maximum absorption, meaning the extra golden hearts. | 0 | 0 to 2048 |
| max_health | Maximum health in points. 20 points is 10 hearts. | 20 | 1 to 1024 |
| mining_efficiency | Increases block breaking speed. Player only. | 0 | 0 to 1024 |
| movement_efficiency | Reduces the slowdown on terrain that hinders movement, such as soul sand. 1 removes the slowdown. | 0 | 0 to 1 |
| movement_speed | Movement speed. Players have a base of 0.1. | 0.7 | 0 to 1024 |
| name_tag_distance | The distance from which you can see the name above an entity. Since 26.2. | 64 | 0 to 512 |
| oxygen_bonus | Lowers the chance of losing air underwater. The chance is 1 / (oxygen_bonus + 1) per tick. | 0 | 0 to 1024 |
| safe_fall_distance | The height in blocks you can fall without taking damage. | 3 | -1024 to 1024 |
| scale | Size multiplier for the entity and its hitbox. | 1 | 0.0625 to 16 |
| sneaking_speed | Speed multiplier while sneaking and crawling. Player only. | 0.3 | 0 to 1 |
| spawn_reinforcements | The chance that a zombie calls in another zombie when it's attacked. | 0 | 0 to 1 |
| step_height | The height in blocks the entity can step up without jumping. | 0.6 | 0 to 10 |
| submerged_mining_speed | Mining speed multiplier underwater. Player only. | 0.2 | 0 to 20 |
| sweeping_damage_ratio | The share of base damage that a sweeping attack deals to the other targets. Player only. | 0 | 0 to 1 |
| tempt_range | The range in blocks from which a mob follows a player holding the food that tempts it. | 10 | 0 to 2048 |
| water_movement_efficiency | Affects movement speed and drag in water. | 0 | 0 to 1 |
| waypoint_receive_range | The maximum distance from which a player sees waypoints on the Locator Bar. Players have a base of 60,000,000. Player only. | 0 | 0 to 60,000,000 |
| waypoint_transmit_range | The distance from which a player shows up as a waypoint on other players' Locator Bar. Players have a base of 60,000,000. Player only. | 0 | 0 to 60,000,000 |
Java 26.2 added five attributes: bounciness, friction_modifier, air_drag_modifier, name_tag_distance and below_name_distance. The same version lowered the minimum of knockback_resistance to -2.
Modifiers and operations
A modifier is a lasting change to an attribute. It has its own ID (for example my_map:speed), a value and an operation. The game applies modifiers in a fixed order: first all add_value, then add_multiplied_base, and finally add_multiplied_total. The result of each stage becomes the base for the next one.
| Operation | How it calculates | Base 3, modifiers 2 and 4 |
|---|---|---|
| add_value | Adds the modifier values to the base. | 3 + 2 + 4 = 9 |
| add_multiplied_base | Multiplies the base by 1 plus the sum of the modifier values. | 3 × (1 + 2 + 4) = 21 |
| add_multiplied_total | Multiplies the result by 1 plus the value, separately for each modifier. | 3 × (1 + 2) × (1 + 4) = 45 |
Usage examples
Tips and tricks
The /attribute command is only available in Java Edition.
Modifiers are applied in this order: first all add_value, then add_multiplied_base, and finally add_multiplied_total.
Since Java 1.21.2, attribute IDs have no prefixes. Instead of minecraft:generic.max_health, you type minecraft:max_health.
Players have a base of 1 attack damage (attack_damage) and a movement speed of 0.1 (movement_speed), even though the default values of these attributes are different.
Frequently asked questions
How do you check an attribute's value in Minecraft?
Type /attribute @s minecraft:max_health get. The game shows the final value, including modifiers. To read just the base value, use base get.
How do you reset an attribute to its default value?
Use base reset, for example /attribute @s minecraft:scale base reset (since Java 1.21.4). To remove a modifier added with the command, use modifier remove with its ID.
Why doesn't minecraft:generic.max_health work?
Since Java 1.21.2, attribute IDs no longer have the generic., player. or zombie. prefixes. Type minecraft:max_health.
Does /attribute work in Bedrock Edition?
No. The /attribute command is only available in Java Edition.