VOOZH about

URL: https://minecraft.wiki/w/Attribute

⇱ Attribute – Minecraft Wiki


Attribute

From Minecraft Wiki
Jump to navigation Jump to search
👁 Image
This article is about the entity attribute system. For the command, see Commands/attribute. For item attributes, see Data component format. For the attributes controlling various visual and gameplay features, see environment attribute.
This feature is exclusive to Java Edition.
 

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]
Air Drag Modifier
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]

Armor

[edit | edit source]
Armor
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
👁 Image
Killer Bunny
8 (👁 🛡
👁 🛡
👁 🛡
👁 🛡
)
👁 Image
Wither
4 (👁 🛡
👁 🛡
)
👁 Image
Zombie
👁 Image
Husk
👁 Image
Drowned
👁 Image
Zombie Villager
👁 Image
Zombified Piglin
2 (👁 🛡
)

Armor Toughness

[edit | edit source]
Armor Toughness
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]
Attack Damage
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
👁 Image
Giant
50HP👁 ❤️
× 25
👁 Image
Warden
30HP👁 ❤️
× 15
👁 Image
Iron Golem
15HP👁 ❤️
× 7.5
👁 Image
Ravager
12HP👁 ❤️
× 6
👁 Image
Frog
10HP👁 ❤️
👁 ❤️
👁 ❤️
👁 ❤️
👁 ❤️
👁 Image
Elder Guardian
8HP👁 ❤️
👁 ❤️
👁 ❤️
👁 ❤️
👁 Image
Enderman
👁 Image
Piglin Brute
7HP👁 ❤️
👁 ❤️
👁 ❤️
👁 💔
👁 Image
Blaze
👁 Image
Guardian
👁 Image
Hoglin
👁 Image
Panda
👁 Image
Polar Bear
👁 Image
Zoglin
6HP👁 ❤️
👁 ❤️
👁 ❤️
👁 Image
Piglin
👁 Image
Pillager
👁 Image
Vindicator
👁 Image
Zombified Piglin
5HP👁 ❤️
👁 ❤️
👁 💔
👁 Image
Vex
👁 Image
Wolf
👁 Image
Wither Skeleton
4HP👁 ❤️
👁 ❤️
👁 Image
Cat
👁 Image
Dolphin
👁 Image
Drowned
👁 Image
Husk
👁 Image
Ocelot
👁 Image
Zombie
👁 Image
Zombie Villager
👁 Image
Nautilus
👁 Image
Zombie Nautilus
👁 Image
Parrot
👁 Image
Rabbit
👁 Image
Breeze
👁 Image
Creaking
3HP👁 ❤️
👁 💔
👁 Image
Allay
👁 Image
Axolotl
👁 Image
Bee
👁 Image
Fox
👁 Image
Goat
👁 Image
Endermite
👁 Image
Creeper
👁 Image
Witch
👁 Image
Evoker
👁 Image
Illusioner
👁 Image
Skeleton
👁 Image
Bogged
👁 Image
Parched
👁 Image
Spider
👁 Image
Cave Spider
2HP👁 ❤️
👁 Image
Player
👁 Image
Silverfish
👁 Image
Baby Goat
1HP👁 💔
👁 Image
Baby Hoglin
👁 Image
Baby Zoglin
0.5HP👁 ❤️
× 0.25
👁 Image
Phantom
6HP👁 ❤️
👁 ❤️
👁 ❤️
+ Size
👁 Image
Slime
👁 Image
Magma Cube
1HP👁 💔
× Size

Attack Knockback

[edit | edit source]
Attack Knockback
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
👁 Image
Ravager
👁 Image
Warden
1.5
👁 Image
Hoglin
👁 Image
Zoglin
1

Attack Speed

[edit | edit source]
Attack Speed
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]
Nameplate Score Distance
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.

Block Break Speed

[edit | edit source]
Block Break Speed
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]
Block Interaction Range
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]
Bounciness
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.

Burning Time

[edit | edit source]
Burning Time
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]
Camera Distance
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 maximum 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. The final distance can be reduced by colliding certain blocks.


Entity Base value
👁 Image
Ghast
👁 Image
Happy Ghast
8
👁 Image
Giant
👁 Image
Ender Dragon
16

Entity Interaction Range

[edit | edit source]
Entity Interaction Range
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]
Explosion Knockback Resistance
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]
Fall Damage Multiplier
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
👁 Image
Camel
👁 Image
Donkey
👁 Image
Horse
👁 Image
Llama
👁 Image
Mule
👁 Image
Skeleton Horse
👁 Image
Trader Llama
👁 Image
Zombie Horse
👁 Image
Camel Husk
0.5

Flying Speed

[edit | edit source]
Flying Speed
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
👁 Image
Bee
👁 Image
Wither
0.6
👁 Image
Allay
0.1
👁 Image
Ghast
0.06
👁 Image
Happy Ghast
0.05
👁 Image
Parrot
0.4

Mob Follow Range

[edit | edit source]
Mob Follow Range
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
👁 Image
Ghast
100
👁 Image
Enderman
64
👁 Image
Allay
👁 Image
Bee
👁 Image
Blaze
48
👁 Image
Llama
👁 Image
Wither
40
👁 Image
Zombie
👁 Image
Husk
👁 Image
Drowned
👁 Image
Zombie Villager
👁 Image
Zombified Piglin
35
👁 Image
Fox
👁 Image
Pillager
👁 Image
Ravager
👁 Image
Creaking
32
👁 Image
Breeze
👁 Image
Warden
24
👁 Image
Polar Bear
20
👁 Image
Illusioner
18
👁 Image
Evoker
👁 Image
Vindicator
👁 Image
Piglin Brute
12
All other mobs 16

Friction Modifier

[edit | edit source]
Friction Modifier
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]

Gravity

[edit | edit source]
Gravity
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]
Jump Strength
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
👁 Image
Horse
👁 Image
Skeleton Horse
👁 Image
Zombie Horse
Random
(0.4–1.0)
👁 Image
Donkey
👁 Image
Mule
👁 Image
Llama
👁 Image
Trader Llama
0.5

Knockback Resistance

[edit | edit source]
Knockback Resistance
ID knockback_resistance
Default 0
Minimum -2
Maximum 1
{
 "title": "Knockback Resistance",
 "rows": [
 {
 "field": "<code>knockback_resistance</code>",
 "label": "ID"
 },
 {
 "field": "0",
 "label": "Default"
 },
 {
 "field": "-2",
 "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
👁 Image
Iron Golem
👁 Image
Warden
1
👁 Image
Ravager
0.75
👁 Image
Hoglin
👁 Image
Zoglin
0.6
👁 Image
Nautilus
👁 Image
Zombie Nautilus
0.6
Luck
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]
Max Absorption
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]
Max Health
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
👁 Image
Warden
500HP👁 ❤️
× 250
👁 Image
Wither
300HP👁 ❤️
× 150
👁 Image
Ender Dragon
200HP👁 ❤️
× 100
👁 Image
Iron Golem
👁 Image
Giant
👁 Image
Ravager
100HP👁 ❤️
× 50
👁 Image
Elder Guardian
80HP👁 ❤️
× 40
👁 Image
Piglin Brute
50HP👁 ❤️
× 25
👁 Image
Tamed Wolf
👁 Image
Enderman
👁 Image
Zoglin
👁 Image
Hoglin
40HP👁 ❤️
× 20
👁 Image
Camel
👁 Image
Camel Husk
👁 Image
Illusioner
32HP👁 ❤️
× 16
👁 Image
Polar Bear
👁 Image
Guardian
👁 Image
Shulker
👁 Image
Breeze
👁 Image
Turtle
30HP👁 ❤️
× 15
👁 Image
Witch
26HP👁 ❤️
× 13
👁 Image
Zombie Horse
25HP👁 ❤️
× 12.5
👁 Image
Evoker
👁 Image
Pillager
👁 Image
Vindicator
24HP👁 ❤️
× 12
👁 Image
Happy Ghast
20HP👁 ❤️
× 10
👁 Image
Piglin
👁 Image
Bogged
👁 Image
Parched
👁 Image
Spider
16HP👁 ❤️
× 8
👁 Image
Skeleton Horse
👁 Image
Nautilus
👁 Image
Zombie Nautilus
15HP👁 ❤️
× 7.5
👁 Image
Axolotl
👁 Image
Sniffer
14HP👁 ❤️
× 7
👁 Image
Armadillo
👁 Image
Copper Golem
👁 Image
Cave Spider
12HP👁 ❤️
× 6
👁 Image
Bee
👁 Image
Cow
👁 Image
Mooshroom
👁 Image
Dolphin
👁 Image
Cat
👁 Image
Ocelot
👁 Image
Fox
👁 Image
Frog
👁 Image
Goat
👁 Image
Panda
👁 Image
Pig
👁 Image
Squid
👁 Image
Glow Squid
👁 Image
Ghast
10HP👁 ❤️
👁 ❤️
👁 ❤️
👁 ❤️
👁 ❤️
👁 Image
Sheep
👁 Image
Wolf
👁 Image
Endermite
👁 Image
Silverfish
8HP👁 ❤️
👁 ❤️
👁 ❤️
👁 ❤️
👁 Image
Bat
👁 Image
Tadpole
👁 Image
Parrot
6HP👁 ❤️
👁 ❤️
👁 ❤️
👁 Image
Chicken
👁 Image
Snow Golem
4HP👁 ❤️
👁 ❤️
👁 Image
Cod
👁 Image
Salmon
👁 Image
Tropical Fish
👁 Image
Pufferfish
👁 Image
Rabbit
3HP👁 ❤️
👁 💔
👁 Image
Creaking
1HP👁 💔
👁 Image
Horse
👁 Image
Donkey
👁 Image
Mule
👁 Image
Llama
👁 Image
Trader Llama
Random
(15HP👁 ❤️
× 7.5
- 30HP👁 ❤️
× 15
)
👁 Image
Slime
👁 Image
Magma Cube
1HP👁 💔
× Size × Size
👁 Image
Sulfur Cube
4HP👁 ❤️
👁 ❤️
× Size

Mining Efficiency

[edit | edit source]
Mining Efficiency
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]
Movement Efficiency
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]
Speed
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
👁 Image
Dolphin
1.2
👁 Image
Zombie Nautilus
1.1
👁 Image
Axolotl
👁 Image
Frog
👁 Image
Nautilus
👁 Image
Tadpole
1
👁 Image
Armor Stand
👁 Image
Bat
👁 Image
Cod
👁 Image
Ender Dragon
👁 Image
Ghast
👁 Image
Glow Squid
👁 Image
Phantom
👁 Image
Pufferfish
👁 Image
Salmon
👁 Image
Shulker
👁 Image
Squid
👁 Image
Tropical Fish
👁 Image
Vex
👁 Image
Wandering Trader
0.7
👁 Image
Breeze
0.63
👁 Image
Wither
0.6
👁 Image
Evoker
👁 Image
Giant
👁 Image
Guardian
👁 Image
Illusioner
👁 Image
Villager
0.5
👁 Image
Creaking
0.4
👁 Image
Piglin
👁 Image
Piglin Brute
👁 Image
Pillager
👁 Image
Vindicator
0.35
👁 Image
Bee
👁 Image
Cat
👁 Image
Cave Spider
👁 Image
Elder Guardian
👁 Image
Enderman
👁 Image
Fox
👁 Image
Hoglin
👁 Image
Ocelot
👁 Image
Rabbit
👁 Image
Ravager
👁 Image
Spider
👁 Image
Warden
👁 Image
Wolf
👁 Image
Zoglin
0.3
👁 Image
Chicken
👁 Image
Creeper
👁 Image
Endermite
👁 Image
Iron Golem
👁 Image
Pig
👁 Image
Polar Bear
👁 Image
Silverfish
👁 Image
Skeleton
👁 Image
Stray
👁 Image
Bogged
👁 Image
Parched
👁 Image
Turtle
👁 Image
Witch
👁 Image
Wither Skeleton
0.25
👁 Image
Blaze
👁 Image
Drowned
👁 Image
Husk
👁 Image
Sheep
👁 Image
Zombie
👁 Image
Zombie Villager
👁 Image
Zombified Piglin
0.23
👁 Image
Cow
👁 Image
Goat
👁 Image
Mooshroom
👁 Image
Parrot
👁 Image
Skeleton Horse
👁 Image
Snow Golem
👁 Image
Copper Golem
👁 Image
Magma Cube
0.2
👁 Image
Llama
👁 Image
Strider
👁 Image
Trader Llama
0.175
👁 Image
Panda
0.15
👁 Image
Armadillo
0.14
👁 Image
Allay
👁 Image
Sniffer
👁 Image
Player
0.1
👁 Image
Camel
👁 Image
Camel Husk
0.09
👁 Image
Panda
(lazy)
0.07
👁 Image
Happy Ghast
0.05
👁 Image
Horse
👁 Image
Donkey
👁 Image
Mule
Random (0.1125 – 0.3375)
👁 Image
Zombie Horse
Random (0.2135 – 0.2846)
👁 Image
Slime
👁 Image
Sulfur Cube
0.2 + (0.1 × Size)

Name Tag Distance

[edit | edit source]
Name Tag Distance
ID name_tag_distance
Default 64
Minimum 0
Maximum 512
{
 "title": "Name Tag Distance",
 "rows": [
 {
 "field": "<code>name_tag_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.

Oxygen Bonus

[edit | edit source]
Oxygen Bonus
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]
Safe Fall Distance
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
👁 Image
Camel
👁 Image
Camel Husk
👁 Image
Donkey
👁 Image
Horse
👁 Image
Llama
👁 Image
Mule
👁 Image
Skeleton Horse
👁 Image
Trader Llama
👁 Image
Zombie Horse
6
👁 Image
Fox
5

Scale

[edit | edit source]
Scale
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]
Sneaking Speed
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]
Zombie Reinforcements
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
👁 Image
Zombie
👁 Image
Husk
👁 Image
Drowned
👁 Image
Zombie Villager
Random
(0 – 0.1)
👁 Image
Zombified Piglin
0[2]

Step Height

[edit | edit source]
Step Height
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
👁 Image
Camel
👁 Image
Camel Husk
1.5
👁 Image
Creaking
1.0625
👁 Image
Axolotl
👁 Image
Donkey
👁 Image
Drowned
👁 Image
Enderman
👁 Image
Frog
👁 Image
Horse
👁 Image
Iron Golem
👁 Image
Llama
👁 Image
Mule
👁 Image
Ravager
👁 Image
Skeleton Horse
👁 Image
Trader Llama
👁 Image
Turtle
👁 Image
Zombie Horse
👁 Image
Copper Golem
1
👁 Image
Armor Stand
0[4]

Submerged Mining Speed

[edit | edit source]
Submerged Mining Speed
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]
Sweeping Damage Ratio
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]
Mob Tempt Range
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
👁 Image
Happy Ghast
16
👁 Image
Armadillo
👁 Image
Axolotl
👁 Image
Bee
👁 Image
Chicken
👁 Image
Cow
👁 Image
Mooshroom
👁 Image
Horse
👁 Image
Donkey
👁 Image
Mule
👁 Image
Llama
👁 Image
Trader Llama
👁 Image
Zombie Horse
👁 Image
Skeleton Horse
👁 Image
Cat
👁 Image
Ocelot
👁 Image
Fox
👁 Image
Frog
👁 Image
Tadpole
👁 Image
Goat
👁 Image
Nautilus
👁 Image
Zombie Nautilus
👁 Image
Panda
👁 Image
Parrot
👁 Image
Pig
👁 Image
Polar Bear
👁 Image
Rabbit
👁 Image
Sheep
👁 Image
Sniffer
👁 Image
Turtle
👁 Image
Wolf
👁 Image
Strider
10
👁 Image
Sulfur Cube
8

Water Movement Efficiency

[edit | edit source]
Water Movement Efficiency
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]
Waypoint Receive Range
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
👁 Image
Player
60,000,000

Waypoint Transmit Range

[edit | edit source]
Waypoint Transmit Range
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
👁 Image
Player
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).

[note 1]

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.

  1. 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. Except for players, it is also possible add, remove and custom with /data.

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 👁 Image
Swords
👁 Image
Spears
👁 Image
Trident
👁 Image
Mace
👁 Image
Axes
👁 Image
Pickaxes
👁 Image
Shovels
👁 Image
Hoes
minecraft:base_attack_speed attack_speed 👁 Image
Swords
👁 Image
Spears
👁 Image
Trident
👁 Image
Mace
👁 Image
Axes
👁 Image
Pickaxes
👁 Image
Shovels
👁 Image
Hoes
minecraft:armor.helmet armor
armor_toughness
knockback_resistance
👁 Image
Helmets
minecraft:armor.chestplate armor
armor_toughness
knockback_resistance
👁 Image
Chestplates
minecraft:armor.leggings armor
armor_toughness
knockback_resistance
👁 Image
Leggings
minecraft:armor.boots armor
armor_toughness
knockback_resistance
👁 Image
Boots
minecraft:armor.body armor
armor_toughness
knockback_resistance
👁 Image
Horse Armor
👁 Image
Nautilus Armor
👁 Image
Wolf Armor
minecraft:waypoint_transmit_range_hide waypoint_transmit_range 👁 Image
Carved Pumpkin
👁 Image
Heads

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 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 Level-based value Operation Enchantment
minecraft:enchantment.aqua_affinity submerged_mining_speed

type: minecraft:linear,
base: 4.0,
per_level_above_first: 4.0

add_multiplied_total Aqua Affinity
minecraft:enchantment.blast_protection explosion_knockback_resistance

type: minecraft:linear,
base: 0.15,
per_level_above_first: 0.15

add_value Blast Protection
minecraft:enchantment.depth_strider water_movement_efficiency

type: minecraft:linear,
base: 0.33333334,
per_level_above_first: 0.33333334

add_value Depth Strider
minecraft:enchantment.efficiency mining_efficiency

type: minecraft:levels_squared,
added: 1.0

add_value Efficiency
minecraft:enchantment.fire_protection burning_time type: minecraft:linear,

base: -0.15,
per_level_above_first: -0.15

add_multiplied_base Fire Protection
minecraft:enchantment.respiration oxygen_bonus type: minecraft:linear,

base: 1.0,
per_level_above_first: 1.0

add_value Respiration
minecraft:enchantment.soul_speed movement_speed type: minecraft:linear,

base: 0.0405,
per_level_above_first: 0.0105

add_value Soul Speed
movement_efficiency 1.0 add_value
minecraft:enchantment.sweeping_edge sweeping_damage_ratio add_value Sweeping Edge
minecraft:enchantment.swift_sneak sneaking_speed

type: minecraft:linear,
base: 0.15,
per_level_above_first: 0.15

add_value Swift Sneak

Sulfur cube archetypes

[edit | edit source]
This article is missing information about: explosion_knockback_resistance attribute
 
Please expand the article to include this information. Further details may exist on the talk page.

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.

See sulfur cube archetype for the values.

The vanilla archetypes add and remove modifiers with the following IDs:

Modifier ID Attribute Operation
minecraft:bouncy_add_knockback_resistance
minecraft:fast_flat_add_knockback_resistance
minecraft:fast_sliding_add_knockback_resistance
minecraft:high_resistance_add_knockback_resistance
minecraft:light_add_knockback_resistance
minecraft:regular_add_knockback_resistance
minecraft:slow_flat_add_knockback_resistance
minecraft:slow_sliding_add_knockback_resistance
minecraft:sticky_add_knockback_resistance
knockback_resistance add_value
minecraft:bouncy_add_bounciness
minecraft:fast_flat_add_bounciness
minecraft:fast_sliding_add_bounciness
minecraft:high_resistance_add_bounciness
minecraft:light_add_bounciness
minecraft:regular_add_bounciness
minecraft:slow_flat_add_bounciness
minecraft:slow_sliding_add_bounciness
minecraft:sticky_add_bounciness
bounciness add_value
minecraft:bouncy_mul_friction_modifier
minecraft:fast_flat_mul_friction_modifier
minecraft:fast_sliding_mul_friction_modifier
minecraft:high_resistance_mul_friction_modifier
minecraft:light_mul_friction_modifier
minecraft:regular_mul_friction_modifier
minecraft:slow_flat_mul_friction_modifier
minecraft:slow_sliding_mul_friction_modifier
minecraft:sticky_mul_friction_modifier
friction_modifier add_multiplied_total
minecraft:bouncy_mul_air_drag_modifier
minecraft:fast_flat_mul_air_drag_modifier
minecraft:fast_sliding_mul_air_drag_modifier
minecraft:high_resistance_mul_air_drag_modifier
minecraft:light_mul_air_drag_modifier
minecraft:regular_mul_air_drag_modifier
minecraft:slow_flat_mul_air_drag_modifier
minecraft:slow_sliding_mul_air_drag_modifier
minecraft:sticky_mul_air_drag_modifier
air_drag_modifier add_multiplied_total

Hardcoded

[edit | edit source]

Some other attribute modifiers are hardcoded, not depending on data packs or data components, but rather on the game code. Although it is still possible to change these modifiers with /attribute, it is not possible to prevent them from appearing in specific conditions.

Effects
[edit | edit source]

Some status effects apply modifiers when the effect is applied, and remove them when the effect runs out. The final value of the added attribute is multiplied by effect potency (in other words, multiplied by amplifier + 1).

Modifier ID Attribute Value Operation Effect
minecraft:effect.speed movement_speed 0.2 add_multiplied_total 👁 Image
Speed
minecraft:effect.slowness movement_speed -0.15 add_multiplied_total 👁 Image
Slowness
minecraft:effect.haste attack_speed 0.1 add_multiplied_total 👁 Image
Haste
minecraft:effect.mining_fatigue attack_speed -0.1 add_multiplied_total 👁 Image
Mining Fatigue
minecraft:effect.strength attack_damage 3.0 add_value 👁 Image
Strength
minecraft:effect.weakness attack_damage -4.0 add_value 👁 Image
Weakness
minecraft:effect.jump_boost safe_fall_distance 1.0 add_value 👁 Image
Jump Boost
minecraft:effect.waypoint_transmit_range_hide waypoint_transmit_range -1.0 add_multiplied_total 👁 Image
Invisibility
minecraft:effect.health_boost max_health 4.0 add_value 👁 Image
Health Boost
minecraft:effect.absorption max_absorption 4.0 add_value 👁 Image
Absorption
minecraft:effect.luck luck 1.0 add_value 👁 Image
Luck
minecraft:effect.unluck luck -1.0 add_value 👁 Image
Bad Luck

Other parts of the game add and remove additional modifiers. In this table, every mention of "zombies" represents the class Zombie, that is, the entities: zombie, drowned, husk, zombie villager, and zombified piglin.

Modifier ID Attribute Value Operation Details
minecraft:random_spawn_bonus follow_range triangle(0.0, 0.11485) add_value Applied randomly to all mobs when they spawn.
minecraft:random_spawn_bonus knockback_resistance nextDouble()*0.05 add_value Applied randomly to all zombies when they spawn.
minecraft:zombie_random_spawn_bonus follow_range nextDouble()*1.5*difficultyModifier add_multiplied_total Applied randomly to some zombies when they spawn. Only applies if greater than 1.
minecraft:leader_zombie_bonus spawn_reinforcements_chance nextDouble()*0.25+0.5 add_value Applied randomly to some zombies to turn them into "leaders".
max_health nextDouble()*3.0+1.0 add_multiplied_total
minecraft:reinforcement_caller_charge spawn_reinforcements_chance existingAmount - 0.05 add_value Applied to a zombie when it successfully spawns a reinforcement. The existingAmount is the value of the modifier previously, or 0.0 if it does not exist.
minecraft:reinforcement_callee_charge spawn_reinforcements_chance -0.05 add_value Applied to zombie reinforcements when they spawn.
minecraft:baby movement_speed 👁 Image
Zombie
: 0.5
👁 Image
Piglin
: 0.2
add_multiplied_base Applied to zombies and piglins as babies, and removed when they are not babies.
minecraft:attacking movement_speed 👁 Image
Enderman
: 0.15
👁 Image
Zombified piglin
: 0.05
add_value 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 20.0 add_value Applied to shulkers when their shell fully closes, and removed when it opens.
minecraft:creative_mode_block_range block_interaction_range 0.5 add_value Applied to players when they enter creative mode, and removed when leaving creative mode.
minecraft:creative_mode_entity_range entity_interaction_range 2.0 add_value Applied to players when they enter creative mode, and removed when leaving creative mode.
minecraft:drinking movement_speed -0.25 add_value Applied to witches when they start drinking a potion, and removed when they finish drinking it.
minecraft:powder_snow movement_speed -0.05*getPercentFrozen() add_value Applied to all living entities while inside powder snow, and removed when the frost effect wears off. The getPercentFrozen() is the float min(140,TicksFrozen)/140.
minecraft:sprinting movement_speed 0.3 add_multiplied_total Applied to all living entities when they start sprinting, and removed when they stop.
minecraft:waypoint_transmit_range_crouch waypoint_transmit_range -1.0 add_multiplied_total Applied to players when they start sneaking, and removed when they stop.
minecraft:evil attack_damage 5.0 add_value Applied to rabbits when they become the killer bunny, and removed when they become a different variant.
minecraft:suffocating attack_damage -0.34 add_multiplied_base Applied to striders 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.113w16aAdded 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.
13w17aAdded "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).
13w18aReplaced "Zombie reinforcement charge" with "Zombie reinforcement caller charge"
13w21aAttributes 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".
13w23bAdded "potion.healthBoost" modifier.
1.7.213w36aAttributes/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.915w34bAdded attack speed attribute.
15w36dAdded armor attribute.
15w44bAdded luck attribute.
1.9.1pre1Added armorToughness attribute.
1.12pre1Added flyingSpeed attribute.
1.1418w43aAdded attackKnockback attribute.
1.1620w06aKnockback resistance is now a scale rather than probability.
20w14aItems 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.
20w17aAdded the /attribute command, which can query and change attributes.
1.18.222w03aKnockback resistance no longer gives a 50% chance to ignore all knockback.
1.20.223w31aAdded the generic.max_absorption attribute.
1.20.523w51aAdded 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.
24w03aRenamed generic.block_interaction_range and generic.entity_interaction_range to player.block_interaction_range and player.entity_interaction_range.
24w06aAdded 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.2124w18aAdded 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.
24w21aThe uuid and name arguments have been replaced with a singular id argument.
1.21.224w33aAdded 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.424w44aPlayers 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
Locator Bar
25w15aAdded waypoint_transmit_range and waypoint_receive_range attributes.
1.21.625w15aAdded camera_distance attribute.
25w17awaypoint_transmit_range and waypoint_receive_range are no longer experimental.
26.2snap1Added bounciness, friction_modifier, and air_drag_modifier attributes.
The minimum value of minecraft:knockback_resistance is now -2.0.
snap 4Added nameplate_distance and below_name_distance attributes.
snap 5Renamed nameplate_distance to name_tag_distance.
Java Edition Combat Tests
1.14.3Added generic.attackReach attribute.
6Renamed generic.attackReach to generic.attack_reach.

Bedrock Edition

[edit | edit source]
Pocket Edition Alpha
v0.12.1build 1Added attributes.

Legacy Console Edition

[edit | edit source]
Legacy Console Edition
Xbox 360Xbox OnePS3PS4PS VitaWii USwitch
TU19CU71.121.121.12Patch 11.0.1Added attributes.
TU36CU251.281.281.28Patch 7Attributes of items are shown above the HUD when switching items in the hotbar if the item has less than 3 enchantments.
TU46CU361.381.381.38Patch 15Added armor and luck attributes.
TU54CU441.521.521.52Patch 241.0.4Added 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]
  1. MC-32578
  2. MC-301000
  3. MC-268917
  4. MC-133544 – resolved as "Works As Intended".
  5. MC-278349

Navigation

[edit | edit source]
Retrieved from "https://minecraft.wiki/w/Attribute?oldid=3650643"

Navigation menu