Attribute
Attributes control certain numeric properties of players, mobs, and armor stands. Every entity has a base value for each of its attributes, and modifiers that determine the final value.
List of attributes
[edit | edit source]Each attribute is identified with a namespaced identifier, and has a default, minimum, and maximum value.
Most attributes are present on all living entities, but some attributes only apply to specific entity types. Additionally, some entity types have a base value other than the default.
Air Drag Modifier
[edit | edit source]| ID | air_drag_modifier
|
|---|---|
| Default | 1 |
| Minimum | 0 |
| Maximum | 2048 |
{
"title": "Air Drag Modifier",
"rows": [
{
"field": "<code>air_drag_modifier</code>",
"label": "ID"
},
{
"field": "1",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "2048",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the air drag an entity experiences.[more information needed][upcoming: JE 26.2]
Armor
[edit | edit source]| ID | armor
|
|---|---|
| Default | 0 () |
| Minimum | 0 () |
| Maximum | 30 ( × 15) |
{
"title": "Armor",
"rows": [
{
"field": "<code>armor</code>",
"label": "ID"
},
{
"field": "0 (<span class=\"iconbar pixel-image nowrap\" style=\"--icon-offset:-1px;\" title=\"0 armor points\">(link to File:Empty Armor (icon).png article, displayed as 9px|link=|alt=🛡)</span>)",
"label": "Default"
},
{
"field": "0 (<span class=\"iconbar pixel-image nowrap\" style=\"--icon-offset:-1px;\" title=\"0 armor points\">(link to File:Empty Armor (icon).png article, displayed as 9px|link=|alt=🛡)</span>)",
"label": "Minimum"
},
{
"field": "30 (<span class=\"iconbar pixel-image nowrap\" style=\"--icon-offset:-1px;\" title=\"2 armor point\">(link to File:Armor (icon).png article, displayed as 9px|link=|alt=🛡)</span> × 15)",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the number of armor points an entity has.
| Entity | Base value |
|---|---|
| 8 () | |
| 4 () | |
| 2 () |
Armor Toughness
[edit | edit source]| ID | armor_toughness
|
|---|---|
| Default | 0 |
| Minimum | 0 |
| Maximum | 20 |
{
"title": "Armor Toughness",
"rows": [
{
"field": "<code>armor_toughness</code>",
"label": "ID"
},
{
"field": "0",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "20",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines an entity's armor toughness.
Attack Damage
[edit | edit source]| ID | attack_damage
|
|---|---|
| Default | 2HP |
| Minimum | 0HP |
| Maximum | 2048HP × 1024 |
{
"title": "Attack Damage",
"rows": [
{
"field": "<code>attack_damage</code>",
"label": "ID"
},
{
"field": "2<span class=\"hidden-alt-text\">HP</span><span class=\"nowrap mc-hearts\"><span class=\"iconbar pixel-image nowrap\" style=\"--icon-offset:-1px;\" title=\"1 heart\">(link to File:Heart (icon).png article, displayed as 9px|link=|alt=❤️)</span></span>",
"label": "Default"
},
{
"field": "0<span class=\"hidden-alt-text\">HP</span><span class=\"nowrap mc-hearts\"><span class=\"iconbar pixel-image nowrap\" style=\"--icon-offset:-1px;\" title=\"0 hearts\">(link to File:Empty Heart (icon).png article, displayed as 9px|link=|alt=🖤)</span></span>",
"label": "Minimum"
},
{
"field": "2048<span class=\"hidden-alt-text\">HP</span><span class=\"nowrap mc-hearts\"><span class=\"iconbar pixel-image nowrap\" style=\"--icon-offset:-1px;\" title=\"1 heart\">(link to File:Heart (icon).png article, displayed as 9px|link=|alt=❤️)</span> × 1024</span>",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the damage dealt by an entity's melee attack. Only the entities listed below have this attribute.
| Entity | Base value |
|---|---|
| 50HP × 25 | |
| 30HP × 15 | |
| 15HP × 7.5 | |
| 12HP × 6 | |
| 10HP | |
| 8HP | |
| 7HP | |
| 6HP | |
| 5HP | |
| 4HP | |
| 3HP | |
| 2HP | |
| 1HP | |
| 0.5HP × 0.25 | |
| 6HP + Size | |
| 1HP × Size |
Attack Knockback
[edit | edit source]| ID | attack_knockback
|
|---|---|
| Default | 0 |
| Minimum | 0 |
| Maximum | 5 |
{
"title": "Attack Knockback",
"rows": [
{
"field": "<code>attack_knockback</code>",
"label": "ID"
},
{
"field": "0",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "5",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines additional knockback applied to an entity's melee attack.[more information needed]
| Entity | Base value |
|---|---|
| 1.5 | |
| 1 |
Attack Speed
[edit | edit source]| ID | attack_speed
|
|---|---|
| Default | 4 |
| Minimum | 0 |
| Maximum | 1024 |
{
"title": "Attack Speed",
"rows": [
{
"field": "<code>attack_speed</code>",
"label": "ID"
},
{
"field": "4",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "1024",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the rate at which a player's attack cooldown recharges. Its value is the number of full-strength attacks per second. Only players have this attribute.
Nameplate Score Distance
[edit | edit source]| ID | below_name_distance
|
|---|---|
| Default | 10 |
| Minimum | 0 |
| Maximum | 512 |
{
"title": "Nameplate Score Distance",
"rows": [
{
"field": "<code>below_name_distance</code>",
"label": "ID"
},
{
"field": "10",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "512",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the distance within which a scoreboard objective with a below_name display slot is visible above an entity.[upcoming: JE 26.2]
Block Break Speed
[edit | edit source]| ID | block_break_speed
|
|---|---|
| Default | 1 |
| Minimum | 0 |
| Maximum | 1024 |
{
"title": "Block Break Speed",
"rows": [
{
"field": "<code>block_break_speed</code>",
"label": "ID"
},
{
"field": "1",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "1024",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute multiplies the speed at which a player breaks blocks. Only players have this attribute.
Block Interaction Range
[edit | edit source]| ID | block_interaction_range
|
|---|---|
| Default | 4.5 |
| Minimum | 0 |
| Maximum | 64 |
{
"title": "Block Interaction Range",
"rows": [
{
"field": "<code>block_interaction_range</code>",
"label": "ID"
},
{
"field": "4.5",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "64",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the block interaction range for players. Only players have this attribute.
Bounciness
[edit | edit source]| ID | bounciness
|
|---|---|
| Default | 0 |
| Minimum | 0 |
| Maximum | 1 |
{
"title": "Bounciness",
"rows": [
{
"field": "<code>bounciness</code>",
"label": "ID"
},
{
"field": "0",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "1",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the restitution of motion an entity is given when landing on the ground.[upcoming: JE 26.2]
Burning Time
[edit | edit source]| ID | burning_time
|
|---|---|
| Default | 1 |
| Minimum | 0 |
| Maximum | 1024 |
{
"title": "Burning Time",
"rows": [
{
"field": "<code>burning_time</code>",
"label": "ID"
},
{
"field": "1",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "1024",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute multiplies the duration for which an entity should remain on fire after being ignited.
Camera Distance
[edit | edit source]| ID | camera_distance
|
|---|---|
| Default | 4 |
| Minimum | 0 |
| Maximum | 32 |
{
"title": "Camera Distance",
"rows": [
{
"field": "<code>camera_distance</code>",
"label": "ID"
},
{
"field": "4",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "32",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the distance at which the camera is placed away from the player or spectated entity when in a third-person view. This distance is multiplied by the scale attribute to get a final target camera distance. If the entity being ridden has a larger camera_distance attribute, that distance will be used.
| Entity | Base value |
|---|---|
| 8 | |
| 16 |
Entity Interaction Range
[edit | edit source]| ID | entity_interaction_range
|
|---|---|
| Default | 3 |
| Minimum | 0 |
| Maximum | 64 |
{
"title": "Entity Interaction Range",
"rows": [
{
"field": "<code>entity_interaction_range</code>",
"label": "ID"
},
{
"field": "3",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "64",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the entity interaction range for players.
Explosion Knockback Resistance
[edit | edit source]| ID | explosion_knockback_resistance
|
|---|---|
| Default | 0 |
| Minimum | 0 |
| Maximum | 1 |
{
"title": "Explosion Knockback Resistance",
"rows": [
{
"field": "<code>explosion_knockback_resistance</code>",
"label": "ID"
},
{
"field": "0",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "1",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the proportion of knockback from explosions an entity resists. A value of 1 eliminates the knockback.
Fall Damage Multiplier
[edit | edit source]| ID | fall_damage_multiplier
|
|---|---|
| Default | 1 |
| Minimum | 0 |
| Maximum | 100 |
{
"title": "Fall Damage Multiplier",
"rows": [
{
"field": "<code>fall_damage_multiplier</code>",
"label": "ID"
},
{
"field": "1",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "100",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute multiplies the amount of fall damage an entity receives.
| Entity | Base value |
|---|---|
| 0.5 |
Flying Speed
[edit | edit source]| ID | flying_speed
|
|---|---|
| Default | 0.4 |
| Minimum | 0 |
| Maximum | 1024 |
{
"title": "Flying Speed",
"rows": [
{
"field": "<code>flying_speed</code>",
"label": "ID"
},
{
"field": "0.4",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "1024",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the flying speed of an entity.[more information needed] Only the entities listed below have this attribute.
| Entity | Base value |
|---|---|
| 0.6 | |
| 0.1 | |
| 0.06 | |
| 0.05 | |
| 0.4 |
Mob Follow Range
[edit | edit source]| ID | follow_range
|
|---|---|
| Default | 32 |
| Minimum | 0 |
| Maximum | 2048 |
{
"title": "Mob Follow Range",
"rows": [
{
"field": "<code>follow_range</code>",
"label": "ID"
},
{
"field": "32",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "2048",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the range in blocks within which a mob targets players or other mobs to track. Exiting this range causes the mob to cease following the player/mob. Only mobs have this attribute.
| Entity | Base value |
|---|---|
| 100 | |
| 64 | |
| 48 | |
| 40 | |
| 35 | |
| 32 | |
| 24 | |
| 20 | |
| 18 | |
| 12 | |
| All other mobs | 16 |
Friction Modifier
[edit | edit source]| ID | friction_modifier
|
|---|---|
| Default | 1 |
| Minimum | 0 |
| Maximum | 2048 |
{
"title": "Friction Modifier",
"rows": [
{
"field": "<code>friction_modifier</code>",
"label": "ID"
},
{
"field": "1",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "2048",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the friction experienced by an entity.[more information needed][upcoming: JE 26.2]
Gravity
[edit | edit source]| ID | gravity
|
|---|---|
| Default | 0.08 |
| Minimum | -1 |
| Maximum | 1 |
{
"title": "Gravity",
"rows": [
{
"field": "<code>gravity</code>",
"label": "ID"
},
{
"field": "0.08",
"label": "Default"
},
{
"field": "-1",
"label": "Minimum"
},
{
"field": "1",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the gravity affecting an entity in blocks per tick squared.
Jump Strength
[edit | edit source]| ID | jump_strength
|
|---|---|
| Default | 0.42 |
| Minimum | 0 |
| Maximum | 32 |
{
"title": "Jump Strength",
"rows": [
{
"field": "<code>jump_strength</code>",
"label": "ID"
},
{
"field": "0.42",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "32",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the initial vertical velocity of an entity when they jump, in blocks per tick.
| Entity | Base value |
|---|---|
| Random (0.4–1.0) | |
| 0.5 |
Knockback Resistance
[edit | edit source]| ID | knockback_resistance
|
|---|---|
| Default | 0 |
| Minimum | 0[until: JE 26.2] -2[upcoming: JE 26.2] |
| Maximum | 1 |
{
"title": "Knockback Resistance",
"rows": [
{
"field": "<code>knockback_resistance</code>",
"label": "ID"
},
{
"field": "0",
"label": "Default"
},
{
"field": "0<sup class=\" nowrap Inline-Template \" title=\"\">[<i><span title=\"This statement does not apply to upcoming versions of Minecraft\">until:</span> (link to Java Edition 26.2 article, displayed as JE 26.2)</i>]</sup>(link to Category:Upcoming article, displayed as Category:Upcoming)(link to Category:Java Edition upcoming tag article, displayed as Category:Java Edition upcoming tag)<br>-2<sup class=\" nowrap Inline-Template \" title=\"\">[<i><span title=\"This statement applies only to upcoming versions of Minecraft.\">upcoming:</span> (link to Java Edition 26.2 article, displayed as JE 26.2)</i>]</sup>(link to Category:Upcoming article, displayed as Category:Upcoming)(link to Category:Java Edition upcoming tag article, displayed as Category:Java Edition upcoming tag)",
"label": "Minimum"
},
{
"field": "1",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the proportion of horizontal knockback from attacks and projectiles an entity resists. A value of 1 eliminates the knockback. Vertical knockback is not affected. It does not affect explosions.[1]
| Entity | Base value |
|---|---|
| 1 | |
| 0.75 | |
| 0.6 | |
| 0.6 |
Luck
[edit | edit source]| ID | luck
|
|---|---|
| Default | 0 |
| Minimum | -1024 |
| Maximum | 1024 |
{
"title": "Luck",
"rows": [
{
"field": "<code>luck</code>",
"label": "ID"
},
{
"field": "0",
"label": "Default"
},
{
"field": "-1024",
"label": "Minimum"
},
{
"field": "1024",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute affects the results of loot tables, with a higher attribute value increasing the amount and quality of results.
The number of rolls is increased by the pools "bonus rolls"-value times this attributes value, rounded down, and the weight of each entry is increased by its quality times this attributes value, also rounded down.
Only players have this attribute.
Max Absorption
[edit | edit source]| ID | max_absorption
|
|---|---|
| Default | 0HP |
| Minimum | 0HP |
| Maximum | 2048HP × 1024 |
{
"title": "Max Absorption",
"rows": [
{
"field": "<code>max_absorption</code>",
"label": "ID"
},
{
"field": "0<span class=\"hidden-alt-text\">HP</span><span class=\"nowrap mc-hearts\"><span class=\"iconbar pixel-image nowrap\" style=\"--icon-offset:-1px;\" title=\"0 absorption hearts\">(link to File:Empty Heart (icon).png article, displayed as 9px|link=|alt=🖤)</span></span>",
"label": "Default"
},
{
"field": "0<span class=\"hidden-alt-text\">HP</span><span class=\"nowrap mc-hearts\"><span class=\"iconbar pixel-image nowrap\" style=\"--icon-offset:-1px;\" title=\"0 absorption hearts\">(link to File:Empty Heart (icon).png article, displayed as 9px|link=|alt=🖤)</span></span>",
"label": "Minimum"
},
{
"field": "2048<span class=\"hidden-alt-text\">HP</span><span class=\"nowrap mc-hearts\"><span class=\"iconbar pixel-image nowrap\" style=\"--icon-offset:-1px;\" title=\"1 absorption heart\">(link to File:Absorption Heart (icon).png article, displayed as 9px|link=|alt=❤️)</span> × 1024</span>",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines an entity's maximum absorption.
Max Health
[edit | edit source]| ID | max_health
|
|---|---|
| Default | 20HP × 10 |
| Minimum | 1HP |
| Maximum | 1024HP × 512 |
{
"title": "Max Health",
"rows": [
{
"field": "<code>max_health</code>",
"label": "ID"
},
{
"field": "20<span class=\"hidden-alt-text\">HP</span><span class=\"nowrap mc-hearts\"><span class=\"iconbar pixel-image nowrap\" style=\"--icon-offset:-1px;\" title=\"1 heart\">(link to File:Heart (icon).png article, displayed as 9px|link=|alt=❤️)</span> × 10</span>",
"label": "Default"
},
{
"field": "1<span class=\"hidden-alt-text\">HP</span><span class=\"nowrap mc-hearts\"><span class=\"iconbar pixel-image nowrap\" style=\"--icon-offset:-1px;\" title=\"0.5 hearts\">(link to File:Half Heart (icon).png article, displayed as 9px|link=|alt=💔)</span></span>",
"label": "Minimum"
},
{
"field": "1024<span class=\"hidden-alt-text\">HP</span><span class=\"nowrap mc-hearts\"><span class=\"iconbar pixel-image nowrap\" style=\"--icon-offset:-1px;\" title=\"1 heart\">(link to File:Heart (icon).png article, displayed as 9px|link=|alt=❤️)</span> × 512</span>",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines an entity's maximum health. It determines the highest health they may be healed to.
| Entity | Base value |
|---|---|
| 500HP × 250 | |
| 300HP × 150 | |
| 200HP × 100 | |
| 100HP × 50 | |
| 80HP × 40 | |
| 50HP × 25 | |
| 40HP × 20 | |
| 32HP × 16 | |
| 30HP × 15 | |
| 26HP × 13 | |
| 25HP × 12.5 | |
| 24HP × 12 | |
| 20HP × 10 | |
| 16HP × 8 | |
| 15HP × 7.5 | |
| 14HP × 7 | |
| 12HP × 6 | |
| 10HP | |
| 8HP | |
| 6HP | |
| 4HP | |
| 3HP | |
| 1HP | |
| Random (15HP × 7.5 - 30HP × 15) | |
| 1HP × Size × Size | |
| 4HP × Size |
Mining Efficiency
[edit | edit source]| ID | mining_efficiency
|
|---|---|
| Default | 0 |
| Minimum | 0 |
| Maximum | 1024 |
{
"title": "Mining Efficiency",
"rows": [
{
"field": "<code>mining_efficiency</code>",
"label": "ID"
},
{
"field": "0",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "1024",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute increases the speed at which a player breaks blocks. Only players have this attribute.
Movement Efficiency
[edit | edit source]| ID | movement_efficiency
|
|---|---|
| Default | 0 |
| Minimum | 0 |
| Maximum | 1 |
{
"title": "Movement Efficiency",
"rows": [
{
"field": "<code>movement_efficiency</code>",
"label": "ID"
},
{
"field": "0",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "1",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute is a factor to improve walking on terrain that slows down movement, such as soul sand. A value of 1 removes the slowdown.
Speed
[edit | edit source]| ID | movement_speed
|
|---|---|
| Default | 0.7 |
| Minimum | 0 |
| Maximum | 1024 |
{
"title": "Speed",
"rows": [
{
"field": "<code>movement_speed</code>",
"label": "ID"
},
{
"field": "0.7",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "1024",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the speed at which an entity moves. It represents a multiplier for acceleration per tick. A mob's actual speed in blocks/second is approximately 43 times this value (see Entity#Formulas.)
| Entity | Base value |
|---|---|
| 1.2 | |
| 1.1 | |
| 1 | |
| 0.7 | |
| 0.63 | |
| 0.6 | |
| 0.5 | |
| 0.35 | |
| 0.4 | |
| 0.3 | |
| 0.25 | |
| 0.23 | |
| 0.2 | |
| 0.175 | |
| 0.15 | |
| 0.14 | |
| 0.1 | |
| 0.09 | |
| 0.07 | |
| 0.05 | |
| Random (0.1125 – 0.3375) | |
| Random (0.2135 – 0.2846) | |
| 0.2 + (0.1 × Size) |
Nameplate Distance
[edit | edit source]| ID | nameplate_distance
|
|---|---|
| Default | 64 |
| Minimum | 0 |
| Maximum | 512 |
{
"title": "Nameplate Distance",
"rows": [
{
"field": "<code>nameplate_distance</code>",
"label": "ID"
},
{
"field": "64",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "512",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the distance within which an entity's custom name is visible.[upcoming: JE 26.2]
Oxygen Bonus
[edit | edit source]| ID | oxygen_bonus
|
|---|---|
| Default | 0 |
| Minimum | 0 |
| Maximum | 1024 |
{
"title": "Oxygen Bonus",
"rows": [
{
"field": "<code>oxygen_bonus</code>",
"label": "ID"
},
{
"field": "0",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "1024",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the chance that an entity's remaining air decreases while underwater in any given game tick. The chance is given by 1⁄(oxygen_bonus + 1).
Safe Fall Distance
[edit | edit source]| ID | safe_fall_distance
|
|---|---|
| Default | 3 |
| Minimum | -1024 |
| Maximum | 1024 |
{
"title": "Safe Fall Distance",
"rows": [
{
"field": "<code>safe_fall_distance</code>",
"label": "ID"
},
{
"field": "3",
"label": "Default"
},
{
"field": "-1024",
"label": "Minimum"
},
{
"field": "1024",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the distance in blocks an entity can fall before fall damage starts to accumulate.
| Entity | Base value |
|---|---|
| 6 | |
| 5 |
Scale
[edit | edit source]| ID | scale
|
|---|---|
| Default | 1 |
| Minimum | 0.0625 |
| Maximum | 16 |
{
"title": "Scale",
"rows": [
{
"field": "<code>scale</code>",
"label": "ID"
},
{
"field": "1",
"label": "Default"
},
{
"field": "0.0625",
"label": "Minimum"
},
{
"field": "16",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute multiplies an entity's size and hitbox dimensions.
Sneaking Speed
[edit | edit source]| ID | sneaking_speed
|
|---|---|
| Default | 0.3 |
| Minimum | 0 |
| Maximum | 1 |
{
"title": "Sneaking Speed",
"rows": [
{
"field": "<code>sneaking_speed</code>",
"label": "ID"
},
{
"field": "0.3",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "1",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute multiplies a player's movement speed when sneaking or crawling. Only players have this attribute.
Zombie Reinforcements
[edit | edit source]| ID | spawn_reinforcements
|
|---|---|
| Default | 0 |
| Minimum | 0 |
| Maximum | 1 |
{
"title": "Zombie Reinforcements",
"rows": [
{
"field": "<code>spawn_reinforcements</code>",
"label": "ID"
},
{
"field": "0",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "1",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the chance for a zombie to spawn another zombie when attacked. Only the entities listed below have this attribute.
| Entity | Base value |
|---|---|
| Random (0 – 0.1) | |
| 0[2] |
Step Height
[edit | edit source]| ID | step_height
|
|---|---|
| Default | 0.6 |
| Minimum | 0 |
| Maximum | 10 |
{
"title": "Step Height",
"rows": [
{
"field": "<code>step_height</code>",
"label": "ID"
},
{
"field": "0.6",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "10",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the maximum number of blocks that an entity can step up without jumping. Sneaking prevents drops from heights that are higher than this value.[3]
| Entity | Base value |
|---|---|
| 1.5 | |
| 1.0625 | |
| 1 | |
| 0[4] |
Submerged Mining Speed
[edit | edit source]| ID | submerged_mining_speed
|
|---|---|
| Default | 0.2 |
| Minimum | 0 |
| Maximum | 20 |
{
"title": "Submerged Mining Speed",
"rows": [
{
"field": "<code>submerged_mining_speed</code>",
"label": "ID"
},
{
"field": "0.2",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "20",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute multiplies a player's mining speed when underwater. Only players have this attribute.
Sweeping Damage Ratio
[edit | edit source]| ID | sweeping_damage_ratio
|
|---|---|
| Default | 0 |
| Minimum | 0 |
| Maximum | 1 |
{
"title": "Sweeping Damage Ratio",
"rows": [
{
"field": "<code>sweeping_damage_ratio</code>",
"label": "ID"
},
{
"field": "0",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "1",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the proportion of the base attack damage dealt to secondary targets when a player performs a sweep attack. This is in addition to the base damage of the sweep damage itself. Only players have this attribute.
Mob Tempt Range
[edit | edit source]| ID | tempt_range
|
|---|---|
| Default | 10 |
| Minimum | 0 |
| Maximum | 2024 |
{
"title": "Mob Tempt Range",
"rows": [
{
"field": "<code>tempt_range</code>",
"label": "ID"
},
{
"field": "10",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "2024",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the range in blocks in which a mob can be tempted, following a player holding a specific item.
| Entity | Base value |
|---|---|
| 16 | |
| 10 | |
| 8 |
Water Movement Efficiency
[edit | edit source]| ID | water_movement_efficiency
|
|---|---|
| Default | 0 |
| Minimum | 0 |
| Maximum | 1 |
{
"title": "Water Movement Efficiency",
"rows": [
{
"field": "<code>water_movement_efficiency</code>",
"label": "ID"
},
{
"field": "0",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "1",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines movement speed and drag when submerged.[more information needed]
Waypoint Receive Range
[edit | edit source]| ID | waypoint_receive_range
|
|---|---|
| Default | 0 |
| Minimum | 0 |
| Maximum | 60,000,000 |
{
"title": "Waypoint Receive Range",
"rows": [
{
"field": "<code>waypoint_receive_range</code>",
"label": "ID"
},
{
"field": "0",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "60,000,000",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the maximum distance from a player to a waypoint at which the waypoint is displayed on the locator bar. Only players have this attribute.
| Entity | Base value |
|---|---|
| 60,000,000 |
Waypoint Transmit Range
[edit | edit source]| ID | waypoint_transmit_range
|
|---|---|
| Default | 0 |
| Minimum | 0 |
| Maximum | 60,000,000 |
{
"title": "Waypoint Transmit Range",
"rows": [
{
"field": "<code>waypoint_transmit_range</code>",
"label": "ID"
},
{
"field": "0",
"label": "Default"
},
{
"field": "0",
"label": "Minimum"
},
{
"field": "60,000,000",
"label": "Maximum"
}
],
"invimages": [],
"images": []
}
This attribute determines the distance at which an entity displays as a waypoint on the locator bar.
| Entity | Base value |
|---|---|
| 60,000,000 |
Modifiers
[edit | edit source]Attribute modifiers are persistent increases or decreases to an attribute's base value by preset operations.
Each modifier has a namespaced identifier to uniquely identify it. Modifiers affect exactly one attribute, increasing or decreasing its value depending on the modifier's operation and value. The resulting value after modification is capped by the attribute's minimum and maximum limits.
Operations
[edit | edit source]A modifier may perform one of three possible operations:
| Operation | Description |
|---|---|
| add_value | Adds all of the modifiers' amounts to the base attribute.
For example, applying two add_value modifiers with amounts of 2 and 4, to attribute base of 3:
|
| add_multiplied_base | Multiplies the base attribute by (1 + sum of modifiers' amounts).
For example, applying two add_multiplied_base modifiers with amounts of 2 and 4, to attribute base of 3:
|
| add_multiplied_total | Multiplies the base attribute by (1 + modifiers' amounts) for every modifier.
For example, applying two add_multiplied_total modifiers with amounts of 2 and 4, to attribute base of 3:
|
If multiple modifiers are applied to an attribute, the game first executes all add_value modifiers, then all add_multiplied_base modifiers, and finally all add_multiplied_total modifiers. The Total value is always carried as the Base for the next set of modifiers.
The final value is clamped to fit the attribute's minimum and maximum value range.
- ↑ Simplified, the calculation used in the game's code is like:
Applying modifiers
[edit | edit source]Various systems in the game add and remove modifiers.
Commands
[edit | edit source]The /attribute command can add or remove specific modifiers, including custom ones.
Items
[edit | edit source]The attribute_modifiers item component defines modifiers that are automatically added to an entity when the item is equipped in a certain slot, and removed when it is removed.
All vanilla weapons and armor use this component to add and remove modifiers with the following IDs:
| Modifier ID | Attribute | Items |
|---|---|---|
minecraft:base_attack_damage
|
attack_damage
|
|
minecraft:base_attack_speed
|
attack_speed
|
|
minecraft:armor.helmet
|
armorarmor_toughnessknockback_resistance
|
|
minecraft:armor.chestplate
|
armorarmor_toughnessknockback_resistance
|
|
minecraft:armor.leggings
|
armorarmor_toughnessknockback_resistance
|
|
minecraft:armor.boots
|
armorarmor_toughnessknockback_resistance
|
|
minecraft:armor.body
|
armorarmor_toughnessknockback_resistance
|
|
minecraft:waypoint_transmit_range_hide
|
waypoint_transmit_range
|
Enchantments
[edit | edit source]Enchantment attribute effects define modifiers that are automatically added to an entity when the enchanted item is equipped in a certain slot, and removed when it is removed.
Some vanilla enchantments use this effect to add and remove modifiers with the following IDs. The listed IDs are appended with / followed by the name of the slot the enchantment is active in.
| Modifier ID | Attribute | Enchantment |
|---|---|---|
minecraft:enchantment.aqua_affinity
|
submerged_mining_speed
|
Aqua Affinity |
minecraft:enchantment.blast_protection
|
explosion_knockback_resistance
|
Blast Protection |
minecraft:enchantment.depth_strider
|
water_movement_efficiency
|
Depth Strider |
minecraft:enchantment.efficiency
|
mining_efficiency
|
Efficiency |
minecraft:enchantment.fire_protection
|
burning_time
|
Fire Protection |
minecraft:enchantment.respiration
|
oxygen_bonus
|
Respiration |
minecraft:enchantment.soul_speed
|
movement_speedmovement_efficiency
|
Soul Speed |
minecraft:enchantment.sweeping_edge
|
sweeping_damage_ratio
|
Sweeping Edge |
minecraft:enchantment.swift_sneak
|
sneaking_speed
|
Swift Sneak |
Effects
[edit | edit source]Some status effects apply modifiers when the effect is applied, and remove them when the effect runs out.
| Modifier ID | Attribute | Effect |
|---|---|---|
minecraft:effect.speed
|
movement_speed
|
|
minecraft:effect.slowness
|
movement_speed
|
|
minecraft:effect.haste
|
attack_speed
|
|
minecraft:effect.mining_fatigue
|
attack_speed
|
|
minecraft:effect.strength
|
attack_damage
|
|
minecraft:effect.weakness
|
attack_damage
|
|
minecraft:effect.jump_boost
|
safe_fall_distance
|
|
minecraft:effect.waypoint_transmit_range_hide
|
waypoint_transmit_range
|
|
minecraft:effect.health_boost
|
max_health
|
|
minecraft:effect.absorption
|
max_absorption
|
|
minecraft:effect.luck
|
luck
|
|
minecraft:effect.unluck
|
luck
|
Sulfur Cube Archetypes
[edit | edit source]Sulfur cube archetype definitions define modifiers that are automatically added to a sulfur cube when one of the specified items is given to it, and removed when it is removed.
The vanilla archetypes add and remove modifiers with the following IDs:
| Modifier ID | Attribute |
|---|---|
minecraft:bouncy_add_knockback_resistanceminecraft:fast_flat_add_knockback_resistanceminecraft:fast_sliding_add_knockback_resistanceminecraft:high_resistance_add_knockback_resistanceminecraft:light_add_knockback_resistanceminecraft:regular_add_knockback_resistanceminecraft:slow_flat_add_knockback_resistanceminecraft:slow_sliding_add_knockback_resistanceminecraft:sticky_add_knockback_resistance
|
knockback_resistance
|
minecraft:bouncy_add_bouncinessminecraft:fast_flat_add_bouncinessminecraft:fast_sliding_add_bouncinessminecraft:high_resistance_add_bouncinessminecraft:light_add_bouncinessminecraft:regular_add_bouncinessminecraft:slow_flat_add_bouncinessminecraft:slow_sliding_add_bouncinessminecraft:sticky_add_bounciness
|
bounciness
|
minecraft:bouncy_mul_friction_modifierminecraft:fast_flat_mul_friction_modifierminecraft:fast_sliding_mul_friction_modifierminecraft:high_resistance_mul_friction_modifierminecraft:light_mul_friction_modifierminecraft:regular_mul_friction_modifierminecraft:slow_flat_mul_friction_modifierminecraft:slow_sliding_mul_friction_modifierminecraft:sticky_mul_friction_modifier
|
friction_modifier
|
minecraft:bouncy_mul_air_drag_modifierminecraft:fast_flat_mul_air_drag_modifierminecraft:fast_sliding_mul_air_drag_modifierminecraft:high_resistance_mul_air_drag_modifierminecraft:light_mul_air_drag_modifierminecraft:regular_mul_air_drag_modifierminecraft:slow_flat_mul_air_drag_modifierminecraft:slow_sliding_mul_air_drag_modifierminecraft:sticky_mul_air_drag_modifier
|
air_drag_modifier
|
Hardcoded
[edit | edit source]Other parts of the game add and remove additional modifiers.
| Modifier ID | Attribute | Details |
|---|---|---|
minecraft:random_spawn_bonus
|
follow_range
|
Applied randomly to all mobs when they spawn. |
minecraft:random_spawn_bonus
|
knockback_resistance
|
Applied randomly to all zombies when they spawn. |
minecraft:zombie_random_spawn_bonus
|
follow_range
|
Applied randomly to some zombies when they spawn. |
minecraft:leader_zombie_bonus
|
spawn_reinforcements_chancemax_health
|
Applied randomly to some zombies to turn them into "leaders". |
minecraft:reinforcement_caller_charge
|
spawn_reinforcements_chance
|
Applied to a zombie when it successfully spawns a reinforcement. |
minecraft:reinforcement_callee_charge
|
spawn_reinforcements_chance
|
Applied to zombie reinforcements when they spawn. |
minecraft:baby
|
movement_speed
|
Applied to zombies and piglins as babies, and removed when they are not babies. |
minecraft:attacking
|
movement_speed
|
Applied to endermen when they acquire a target, and removed when they lose it. Applied to adult zombified piglins when they get angry, and removed when they stop being angry. |
minecraft:covered
|
armor
|
Applied to shulkers when their shell fully closes, and removed when it opens. |
minecraft:creative_mode_block_range
|
block_interaction_range
|
Applied to players when they enter creative mode, and removed when leaving creative mode. |
minecraft:creative_mode_entity_range
|
entity_interaction_range
|
Applied to players when they enter creative mode, and removed when leaving creative mode. |
minecraft:drinking
|
movement_speed
|
Applied to witches when they start drinking a potion, and removed when they finish drinking it. |
minecraft:powder_snow
|
movement_speed
|
Applied to all living entities while inside powder snow, and removed when the frost effect wears off. |
minecraft:sprinting
|
movement_speed
|
Applied to all living entities when they start sprinting, and removed when they stop. |
minecraft:waypoint_transmit_range_crouch
|
waypoint_transmit_range
|
Applied to players when they start sneaking, and removed when they stop. |
minecraft:evil
|
attack_damage
|
Applied to rabbits when they become the killer bunny, and removed when they become a different variant. |
minecraft:suffocating
|
attack_damage
|
Applied to striderss when they become cold outside of lava, and removed when they return to lava. |
History
[edit | edit source]Java Edition
[edit | edit source]| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.6.1 | 13w16a | Added attributes and modifiers. | |||||
| The following attributes existed: "Max Health", "Follow Range", "Knockback Resistance"; furthermore, "Jump Strength" and "Speed" existed as horse-specific attributes. | |||||||
| The only modifiers were both "Random spawn bonus", one used on Zombies to knockback resistance with operation 0, and the other on all mobs to follow range with operation 1. | |||||||
| 13w17a | Added "Spawn Reinforcements Chance" attribute for Zombies. | ||||||
| Added "Zombie reinforcement charge" (to spawn reinforcements charge), "Random zombie-spawn bonus" (to follow range), and "Leader zombie bonus" (to both reinforcements charge and max health). | |||||||
| 13w18a | Replaced "Zombie reinforcement charge" with "Zombie reinforcement caller charge" | ||||||
| 13w21a | Attributes now can be specified in NBT. | ||||||
| Attributes now have IDs and corresponding translation keys. | |||||||
| Modifiers now display on items. | |||||||
| Added "Attack Damage" and made "Speed" generic. | |||||||
| Added "potion.moveSpeed", "potion.moveSlowdown", "potion.damageBoost", and "potion.weakness" modifiers. | |||||||
| Added "Sprinting speed boost", "Fleeing speed bonus", "Attacking speed boost" (for both pigmen and endermen), "Drinking speed penalty", and "Baby speed boost". | |||||||
| Added "Tool modifier" and "Weapon modifier". | |||||||
| 13w23b | Added "potion.healthBoost" modifier. | ||||||
| 1.7.2 | 13w36a | Attributes/modifiers can be added to items or mobs without the use of third-party NBT editing software by adding data tags to the /give and /summon commands. | |||||
| 1.9 | 15w34b | Added attack speed attribute. | |||||
| 15w36d | Added armor attribute. | ||||||
| 15w44b | Added luck attribute. | ||||||
| 1.9.1 | pre1 | Added armorToughness attribute. | |||||
| 1.12 | pre1 | Added flyingSpeed attribute. | |||||
| 1.14 | 18w43a | Added attackKnockback attribute. | |||||
| 1.16 | 20w06a | Knockback resistance is now a scale rather than probability. | |||||
| 20w14a | Items and entities no longer keep unknown attributes. | ||||||
| Names of some attributes have been renamed to meet resource location requirements (i.e., lowercase separated by underscores instead of camel case). | |||||||
Renamed generic.maxHealth to generic.max_health.
| |||||||
Renamed zombie.spawnReinforcements to zombie.spawn_reinforcements.
| |||||||
Renamed horse.jumpStrength to horse.jump_strength.
| |||||||
Renamed generic.followRange to generic.follow_range.
| |||||||
Renamed generic.knockbackResistance to generic.knockback_resistance.
| |||||||
Renamed generic.movementSpeed to generic.movement_speed.
| |||||||
Renamed generic.flyingSpeed to generic.flying_speed.
| |||||||
Renamed generic.attackDamage to generic.attack_damage
| |||||||
Renamed generic.attackKnockback to generic.attack_knockback
| |||||||
Renamed generic.attackSpeed to generic.attack_speed
| |||||||
Renamed generic.armorToughness to generic.armor_toughness. | |||||||
| 20w17a | Added the /attribute command, which can query and change attributes. | ||||||
| 1.18.2 | 22w03a | Knockback resistance no longer gives a 50% chance to ignore all knockback. | |||||
| 1.20.2 | 23w31a | Added the generic.max_absorption attribute. | |||||
| 1.20.5 | 23w51a | Added generic.scale and generic.step_height attributes for all living entities, as well as generic.block_interaction_range and generic.entity_interaction_range attributes for players. | |||||
| 24w03a | Renamed generic.block_interaction_range and generic.entity_interaction_range to player.block_interaction_range and player.entity_interaction_range. | ||||||
| 24w06a | Added generic.gravity, generic.safe_fall_distance, generic.fall_damage_multiplier and player.block_break_speed attributes. | ||||||
Renamed horse.jump_strength to generic.jump_strength. | |||||||
| 1.21 | 24w18a | Added generic.burning_time, generic.explosion_knockback_resistance, player.mining_efficiency, generic.movement_efficiency, generic.oxygen_bonus, player.sneaking_speed, player.submerged_mining_speed, player.sweeping_damage_ratioand generic.water_movement_efficiency attributes. | |||||
generic.attack_knockback attribute now also works for players. | |||||||
| 24w21a | The uuid and name arguments have been replaced with a singular id argument. | ||||||
| 1.21.2 | 24w33a | Added the tempt_range attribute.
| |||||
Removed the generic., player., or zombie. prefixes from all the attributes. Instead of using the resource locations, the argument instead just asks for the name of the attribute. | |||||||
| 1.21.4 | 24w44a | Players can no longer sprint while sneaking or crawling when having the sneaking_speed attribute set to 0.8 or higher.[5] | |||||
| 1.21.6 Experiment | 25w15a | Added waypoint_transmit_range and waypoint_receive_range attributes. | |||||
| 1.21.6 | 25w15a | Added camera_distance attribute. | |||||
| 25w17a | waypoint_transmit_range and waypoint_receive_range are no longer experimental. | ||||||
| Upcoming Java Edition | |||||||
| 26.2 | snap1 | Added bounciness, friction_modifier, and air_drag_modifier attributes. | |||||
The minimum value of minecraft:knockback_resistance is now -2.0. | |||||||
| snap 4 | Added nameplate_distance and below_name_distance attributes. | ||||||
| snap 5 | Renamed nameplate_distance to name_tag_distance. | ||||||
| Java Edition Combat Tests | |||||||
| 1.14.3 | Added generic.attackReach attribute. | ||||||
| 6 | Renamed generic.attackReach to generic.attack_reach. | ||||||
Bedrock Edition
[edit | edit source]| Pocket Edition Alpha | |||||||
|---|---|---|---|---|---|---|---|
| v0.12.1 | build 1 | Added attributes. | |||||
Legacy Console Edition
[edit | edit source]| Legacy Console Edition | |||||||
|---|---|---|---|---|---|---|---|
| Xbox 360 | Xbox One | PS3 | PS4 | PS Vita | Wii U | Switch | |
| TU19 | CU7 | 1.12 | 1.12 | 1.12 | Patch 1 | 1.0.1 | Added attributes. |
| TU36 | CU25 | 1.28 | 1.28 | 1.28 | Patch 7 | Attributes of items are shown above the HUD when switching items in the hotbar if the item has less than 3 enchantments. | |
| TU46 | CU36 | 1.38 | 1.38 | 1.38 | Patch 15 | Added armor and luck attributes. | |
| TU54 | CU44 | 1.52 | 1.52 | 1.52 | Patch 24 | 1.0.4 | Added flying speed attribute.[verify] |
Issues
[edit | edit source]Issues relating to "Attribute" are maintained on the bug tracker. Issues should be reported and viewed there.
References
[edit | edit source]Navigation
[edit | edit source]| General mechanics | |
|---|---|
| Technical mechanics | |
| Survival |
|
| Combat | |
| Environment | |
| Movement | |
| User interface | |
| Visuals | |
| Removed | |
| Unintended | |