Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Attribute: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{About|the entity attribute system|the command|Commands/attribute|item attributes|Data component format|the attributes controlling various visual and gameplay features|environment attribute}}
{{About|the entity attribute system|the command|Commands/attribute|item attributes|Data component format|the attributes controlling various visual and gameplay features|environment attribute}}
{{MC/Exclusive|java}}
{{exclusive|java}}


An '''attribute''' is a value that determines certain properties of [[Minecraft:mob]]s, armor stands, and players. Attributes also have modifiers that adjust the strength of their effects.
'''Attributes''' control certain numeric properties of [[Minecraft:player]]s, [[Minecraft:mob]]s, and [[Minecraft:armor stand]]s. Every entity has a base value for each of its attributes, and [[#modifiers|modifiers]] that determine the final value.


== Applying attributes ==
== List of attributes ==
Each attribute is identified with a [[Minecraft:namespaced identifier]], and has a default, minimum, and maximum value.


Attributes can be applied directly to living entities using the {{MC/Cmd|attribute}} command. The below command is an example that dramatically increases the luck attribute, leading to the player being able to fish treasures nearly every time:
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.


{{MC/Cmd|long=1|attribute @p minecraft:luck base set 1024 }}
{{-}}{{anchor|air_drag_modifier}}
=== Air Drag Modifier ===
{{Infobox attribute
| title = Air Drag Modifier
| id = air_drag_modifier
| default = 1
| min = 0
| max = 2048
}}


After it's modified, it can then be reset to the default value (which is 0.0 for {{MC/Attr|minecraft:luck}} attribute):
This attribute determines the air drag an entity experiences.{{info needed}}{{upcoming|java 26.2}}


{{MC/Cmd|long=1|attribute @p minecraft:luck base reset}}
{{-}}{{anchor|armor}}
 
Additionally, attribute values can be specified when summoning a mob. For example, the following command summons a zombie that follows players when they are 100 blocks or fewer from it instead of the usual 35:
 
{{cmd|long=1|summon zombie ~ ~ ~ {attributes:[{id:"follow_range", base:100.0d}]} }}
 
=== Item modifiers ===
 
Attributes can also be applied as attribute modifiers on items by using data components. When applied to an item, a modifier adjusts the corresponding attribute if the item is held or worn.<ref>{{tweet|dinnerbone|337540303647027201|Good news for mapmakers: Items can have attribute modifiers. It's possible to make a bow that slows the holder, helm that buffs health, etc|May 23, 2013}}</ref><ref>{{tweet|dinnerbone|337543314435878913|Equipped as armour or held in hand.|May 23, 2013}}</ref> Attribute modifiers can be added to items by adding data tags to the item. Each attribute modifier has a unique identifier, which is a resource location to identify the modifier.
 
The following command gives the player a netherite sword that deals {{hp|20}} extra damage:
 
{{cmd|long=1|give @s netherite_sword[attribute_modifiers{{=}}[{type:"attack_damage", amount:20.0, operation:"add_value", id:"example:custom_damage", slot:"mainhand"}]] }}
 
== Attributes ==
{{MC/Expand section|Add all content from the infoboxes to the attribute descriptions. Add more details about how each attribute works to the attribute descriptions.}}
A single attribute controls some property of an entity, described by its ''name''; it has a ''base'' value, set within hard-coded minimum and maximum limits, and if undefined, it's specified by the default value. The base value may be multiplied or added by a set of ''modifiers''; these affect the attribute's ''base'', but the calculated value is always capped by the minimum and maximum.
 
Attribute modifiers have namespaced identifiers. If two modifiers have the same ID and affect the same attribute, then they do not stack; instead, only the one most recently added takes effect, overriding previous modifiers.
 
These attributes are found on all living and undead entities, including players.
 
{{MC/-}}{{MC/Anchor|armor}}
=== Armor ===
=== Armor ===
{{Infobox attribute
{{Infobox attribute
| title = Armor
| id = armor
| id = armor
| template = armor
| template = armor
Line 44: Line 32:
}}
}}


This attribute defines the armor defense points.
This attribute determines the number of [[Minecraft:armor points]] an entity has.
{| class=wikitable
{| class=wikitable
! Entity !! Default value
! Entity !! Base value
|-
| {{MC/Entitylink|Killer Bunny}}
| {{MC/Armor|8}}
|-
|-
| {{MC/Entitylink|Wither}}
| {{EntityLink|Killer Bunny}}
| {{MC/Armor|4}}
| {{armor|8}}
|-
|-
| {{MC/Entitylink|Zombie}}<br>{{MC/Entitylink|Husk}}<br>{{MC/Entitylink|Drowned}}<br>{{MC/Entitylink|Zombie Villager}}<br>{{MC/Entitylink|Zombified Piglin}}
| {{EntityLink|Wither}}
| {{MC/Armor|2}}
| {{armor|4}}
|-
|-
| ''All other entities''
| {{EntityLink|Zombie}} {{EntityLink|Husk}} {{EntityLink|Drowned}} {{EntityLink|Zombie Villager}} {{EntityLink|Zombified Piglin}}
| {{MC/Armor|0}}
| {{armor|2}}
|}
|}


{{MC/-}}{{MC/Anchor|armor_toughness}}
{{-}}{{anchor|armor_toughness}}
=== Armor toughness ===
=== Armor Toughness ===
{{Infobox attribute
{{Infobox attribute
| title = Armor Toughness
| id = armor_toughness
| id = armor_toughness
| default = 0
| default = 0
Line 70: Line 56:
}}
}}


This attribute defines armor toughness.
This attribute determines an entity's [[Minecraft:armor toughness]].
{{MC/-}}{{MC/Anchor|attack_damage}}
{{-}}{{anchor|attack_damage}}


=== Attack damage ===
=== Attack Damage ===
{{Infobox attribute
{{Infobox attribute
| title = Attack Damage
| id = attack_damage
| id = attack_damage
| template = hp
| template = hp
Line 82: Line 69:
}}
}}


This attribute defines the damage dealt by attacks, in half-hearts.
This attribute determines the [[Minecraft:damage]] dealt by an entity's [[Minecraft:melee attack]]. Only the entities listed below have this attribute.


{| class=wikitable
{| class=wikitable
! Entity !! Default value
! Entity !! Base value
|-
|-
| {{MC/Entitylink|Giant}} || {{hp|50}}
| {{EntityLink|Giant}} || {{hp|50}}
|-
|-
| {{MC/Entitylink|Warden}} || {{hp|30}}
| {{EntityLink|Warden}} || {{hp|30}}
|-
|-
|{{MC/Entitylink|Iron Golem}} || {{hp|15}}
|{{EntityLink|Iron Golem}} || {{hp|15}}
|-
|-
| {{MC/Entitylink|Ravager}} || {{hp|12}}
| {{EntityLink|Ravager}} || {{hp|12}}
|-
|-
| {{MC/Entitylink|Frog}} || {{hp|10}}
| {{EntityLink|Frog}} || {{hp|10}}
|-
|-
| {{MC/Entitylink|Elder Guardian}} || {{hp|8}}
| {{EntityLink|Elder Guardian}} || {{hp|8}}
|-
|-
| {{MC/Entitylink|Enderman}}<br>{{MC/Entitylink|Piglin Brute}} || {{hp|7}}
| {{EntityLink|Enderman}} {{EntityLink|Piglin Brute}} || {{hp|7}}
|-
|-
| {{MC/Entitylink|Blaze}}<br>{{MC/Entitylink|Guardian}}<br>{{MC/Entitylink|Hoglin}}<br>{{MC/Entitylink|Panda}}<br>{{MC/Entitylink|Phantom}}<br>{{MC/Entitylink|Polar Bear}}<br>{{MC/Entitylink|Zoglin}}
| {{EntityLink|Blaze}} {{EntityLink|Guardian}} {{EntityLink|Hoglin}} {{EntityLink|Panda}} {{EntityLink|Polar Bear}} {{EntityLink|Zoglin}}
| {{hp|6}}
| {{hp|6}}
|-
|-
| {{MC/Entitylink|Piglin}}<br>{{MC/Entitylink|Pillager}}<br>{{MC/Entitylink|Vindicator}}<br>{{MC/Entitylink|Zombified Piglin}}
| {{EntityLink|Piglin}} {{EntityLink|Pillager}} {{EntityLink|Vindicator}} {{EntityLink|Zombified Piglin}}
| {{hp|5}}
| {{hp|5}}
|-
|-
| {{MC/Entitylink|Vex}} || {{hp|4}}
| {{EntityLink|Vex}} {{EntityLink|Wolf}} {{EntityLink|Wither Skeleton}} || {{hp|4}}
|-
|-
| {{MC/Entitylink|Cat}}<br>{{MC/Entitylink|Dolphin}}<br>{{MC/Entitylink|Drowned}}<br>{{MC/Entitylink|Husk}}<br>{{MC/Entitylink|Ocelot}}<br>{{MC/Entitylink|Zombie}}<br>{{MC/Entitylink|Zombie Villager}}
| {{EntityLink|Cat}} {{EntityLink|Dolphin}} {{EntityLink|Drowned}} {{EntityLink|Husk}} {{EntityLink|Ocelot}} {{EntityLink|Zombie}} {{EntityLink|Zombie Villager}} {{EntityLink|Nautilus}} {{EntityLink|Zombie Nautilus}} {{EntityLink|Parrot}} {{EntityLink|Rabbit}} {{EntityLink|Breeze}} {{EntityLink|Creaking}}
| {{hp|3}}
| {{hp|3}}
|-
|-
| {{MC/Entitylink|Silverfish}}<br>{{MC/Entitylink|Player}}
| {{EntityLink|Allay}} {{EntityLink|Axolotl}} {{EntityLink|Bee}} {{EntityLink|Fox}} {{EntityLink|Goat}} {{EntityLink|Endermite}} {{EntityLink|Creeper}} {{EntityLink|Witch}} {{EntityLink|Evoker}} {{EntityLink|Illusioner}} {{EntityLink|Skeleton}} {{EntityLink|Bogged}} {{EntityLink|Parched}} {{EntityLink|Spider}} {{EntityLink|Cave Spider}}
| {{hp|2}}
|-
| {{EntityLink|Player}} {{EntityLink|Silverfish}} {{EntityLink|Baby Goat}}
| {{hp|1}}
| {{hp|1}}
|-
|-
| {{MC/Entitylink|Snow Golem}}
| {{EntityLink|Baby Hoglin}} {{EntityLink|Baby Zoglin}}
| {{hp|0}}
| {{hp|0.5}}
|-
|-
| ''Passive mobs''
| {{EntityLink|Phantom}}
|    N/A
| {{hp|6}} + ''Size''
|-
|-
| ''All other entities''
| {{EntityLink|Slime}} {{EntityLink|Magma Cube}}
| {{hp|2}}
| {{hp|1}} × ''Size''
|}
|}


{{MC/-}}{{MC/Anchor|attack_knockback}}
{{-}}{{anchor|attack_knockback}}


=== Attack knockback ===
=== Attack Knockback ===
{{Infobox attribute
{{Infobox attribute
| title = Attack Knockback
| id = attack_knockback
| id = attack_knockback
| default = 0
| default = 0
Line 135: Line 126:
}}
}}


This attribute defines the knockback applied to attacks.{{MC/Info needed|in which unit?}} It applies only to mobs with physical attacks and players.
This attribute determines additional [[Minecraft:knockback]] applied to an entity's [[Minecraft:melee attack]].{{info needed|in which unit?}}


{| class=wikitable
{| class=wikitable
! Entity !! Default value
! Entity !! Base value
|-
|-
| {{MC/Entitylink|Ravager}}<br>{{MC/Entitylink|Warden}}
| {{EntityLink|Ravager}} {{EntityLink|Warden}}
| 1.5
| 1.5
|-
|-
| {{MC/Entitylink|Hoglin}}<br>{{MC/Entitylink|Zoglin}}
| {{EntityLink|Hoglin}} {{EntityLink|Zoglin}}
| 1
| 1
|-
| {{MC/Entitylink|Player}}<br>''All other entities''
| 0
|}
|}


{{MC/-}}{{MC/Anchor|attack_reach|generic.attack_reach}}
{{-}}{{anchor|attack_speed}}
 
=== Attack Speed ===
=== Attack reach ===
{{Infobox attribute
{{Infobox attribute
| id = generic.attack_reach
| title = Attack Speed
| default = 2.5
| id = attack_speed
| default = 4
| min = 0
| min = 0
| max = 6
| max = 1024
}}
}}
{{MC/In development|java|drop=Java Edition Combat Tests|section=1}}
This attribute determines the rate at which a [[Minecraft:player]]'s [[Minecraft:Melee attack#Attack cooldown|attack cooldown]] recharges. Its value is the number of full-strength attacks per second. Only players have this attribute.


This attribute determines the reach at which players can attack entities. It does not affect the interaction range.
{{-}}{{anchor|below_name_distance}}
 
=== Nameplate Score Distance ===
{{MC/-}}{{MC/Anchor|attack_speed}}
=== Attack speed ===
{{Infobox attribute
{{Infobox attribute
| id = attack_speed
| title = Nameplate Score Distance
| default = 4
| id = below_name_distance
| default = 10
| min = 0
| min = 0
| max = 1024
| max = 512
}}
}}
This attribute determines recharging rate of attack strength. Its value is the number of full-strength attacks per second.
This attribute determines the distance within which a [[Minecraft:scoreboard]] objective with a {{cd|below_name}} display slot is visible above an entity.{{upcoming|java 26.2}}


{{MC/-}}{{MC/Anchor|block_break_speed}}
{{-}}{{anchor|block_break_speed}}
=== Block break speed ===
 
=== Block Break Speed ===
{{Infobox attribute
{{Infobox attribute
| title = Block Break Speed
| id = block_break_speed
| id = block_break_speed
| default = 1
| default = 1
Line 181: Line 170:
| max = 1024
| max = 1024
}}
}}
This attribute determines the speed at which the player can break blocks as a multiplier.
This attribute multiplies the speed at which a [[Minecraft:player]] [[Minecraft:Breaking|breaks blocks]]. Only players have this attribute.


{{MC/-}}{{MC/Anchor|block_interaction_range}}
{{-}}{{anchor|block_interaction_range}}
=== Block interaction range ===
=== Block Interaction Range ===
{{Infobox attribute
{{Infobox attribute
| title = Block Interaction Range
| id = block_interaction_range
| id = block_interaction_range
| default = 4.5
| default = 4.5
Line 191: Line 181:
| max = 64
| max = 64
}}
}}
This attribute determines the block interaction range for players in blocks.
This attribute determines the block [[Minecraft:interaction range]] for players. Only players have this attribute.


In Creative mode, the block interaction range is increased by 0.5 to make some actions easier. This does not affect the base value of the attribute, so the bonus acts as a modifier.
{{-}}{{anchor|bounciness}}
=== Bounciness ===
{{Infobox attribute
| title = Bounciness
| id = bounciness
| default = 0
| min = 0
| max = 1
}}
This attribute determines the restitution of motion an entity is given when landing on the ground.{{upcoming|java 26.2}}


{{MC/-}}{{MC/Anchor|burning_time}}
{{-}}{{anchor|burning_time}}
=== Burning time ===
=== Burning Time ===
{{Infobox attribute
{{Infobox attribute
| title = Burning Time
| id = burning_time
| id = burning_time
| default = 1
| default = 1
Line 203: Line 203:
| max = 1024
| max = 1024
}}
}}
This attribute is a multiplier for how long an entity should remain on fire after being ignited. A value of 0 eliminates the burn time. It has no impact on the burning time increase when staying in fire.
This attribute multiplies the duration for which an entity should remain on [[Minecraft:fire]] after being ignited.


{{MC/-}}{{MC/Anchor|camera_distance}}
{{-}}{{anchor|camera_distance}}
=== Camera distance ===
=== Camera Distance ===
{{Infobox attribute
{{Infobox attribute
| title = Camera Distance
| id = camera_distance
| id = camera_distance
| default = 4
| default = 4
Line 213: Line 214:
| max = 32
| max = 32
}}
}}
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 <code>[[#scale|scale]]</code> attribute to get a final target camera distance. If the entity being ridden has a larger <code>camera_distance</code> attribute, that distance will be used.
This attribute determines the distance at which the camera is placed away from the player or [[Minecraft:Spectator mode#Mob view|spectated]] entity when in a [[Minecraft:third-person view]]. This distance is multiplied by the <code>[[#scale|scale]]</code> attribute to get a final target camera distance. If the entity being ridden has a larger <code>camera_distance</code> attribute, that distance will be used.


{| class=wikitable
{| class=wikitable
! Entity !! Default value
! Entity !! Base value
|-
|-
| {{MC/Entitylink|Ghast}}<br>{{MC/Entitylink|Happy Ghast}}
| {{EntityLink|Ghast}} {{EntityLink|Happy Ghast}}
| 8
| 8
|-
|-
| {{MC/Entitylink|Giant}}<br>{{MC/Entitylink|Ender Dragon}}
| {{EntityLink|Giant}} {{EntityLink|Ender Dragon}}
| 16
| 16
|-
| ''All other entities''{{MC/Verify|Was anything missed?}}
| 4
|}
|}


{{MC/-}}{{MC/Anchor|entity_interaction_range}}
{{-}}{{anchor|entity_interaction_range}}
=== Entity interaction range ===
=== Entity Interaction Range ===
{{Infobox attribute
{{Infobox attribute
| title = Entity Interaction Range
| id = entity_interaction_range
| id = entity_interaction_range
| default = 3
| default = 3
Line 236: Line 235:
| max = 64
| max = 64
}}
}}
This attribute determines the entity interaction range for players in blocks.
This attribute determines the entity [[Minecraft:interaction range]] for players.
 
In Creative mode, the entity interaction range is increased by 2 to make some actions easier. This does not affect the base value of the attribute, so the bonus acts as a modifier.


{{MC/-}}{{MC/Anchor|explosion_knockback_resistance}}
{{-}}{{anchor|explosion_knockback_resistance}}
=== Explosion knockback resistance ===
=== Explosion Knockback Resistance ===
{{Infobox attribute
{{Infobox attribute
| title = Explosion Knockback Resistance
| id = explosion_knockback_resistance
| id = explosion_knockback_resistance
| default = 0
| default = 0
Line 248: Line 246:
| max = 1
| max = 1
}}
}}
This attribute defines what percentage of knockback from explosions an entity resists. A value of 1 eliminates the knockback.
This attribute determines the proportion of knockback from [[Minecraft:explosion]]s an entity resists. A value of 1 eliminates the knockback.


{{MC/-}}{{MC/Anchor|fall_damage_multiplier}}
{{-}}{{anchor|fall_damage_multiplier}}
=== Fall damage multiplier ===
=== Fall Damage Multiplier ===
{{Infobox attribute
{{Infobox attribute
| title = Fall Damage Multiplier
| id = fall_damage_multiplier
| id = fall_damage_multiplier
| default = 1
| default = 1
Line 258: Line 257:
| max = 100
| max = 100
}}
}}
This attribute determines the amount of fall damage an entity takes as a multiplier.
This attribute multiplies the amount of [[Minecraft:fall damage]] an entity receives.


{| class=wikitable
{| class=wikitable
! Entity !! Default value
! Entity !! Base value
|-
|-
| {{MC/Entitylink|Camel}}<br>{{MC/Entitylink|Donkey}}<br>{{MC/Entitylink|Horse}}<br>{{MC/Entitylink|Llama}}<br>{{MC/Entitylink|Mule}}<br>{{MC/Entitylink|Skeleton Horse}}<br>{{MC/Entitylink|Trader Llama}}<br>{{MC/Entitylink|Zombie Horse}}
| {{EntityLink|Camel}} {{EntityLink|Donkey}} {{EntityLink|Horse}} {{EntityLink|Llama}} {{EntityLink|Mule}} {{EntityLink|Skeleton Horse}} {{EntityLink|Trader Llama}} {{EntityLink|Zombie Horse}} {{EntityLink|Camel Husk}}
| 0.5
| 0.5
|-
| ''All other entities'' || 1
|}
|}


{{MC/-}}{{MC/Anchor|flying_speed}}
{{-}}{{anchor|flying_speed}}
=== Flying speed ===
=== Flying Speed ===
{{Infobox attribute
{{Infobox attribute
| title = Flying Speed
| id = flying_speed
| id = flying_speed
| default = 0.4
| default = 0.4
Line 277: Line 275:
| max = 1024
| max = 1024
}}
}}
This attribute is a flight speed modifier in some unknown metric.{{MC/Info needed}}
This attribute determines the flying speed of an entity.{{info needed}} Only the entities listed below have this attribute.


{| class=wikitable
{| class=wikitable
! Entity !! Default value
! Entity !! Base value
|-
|-
| {{MC/Entitylink|Bee}}<br>{{MC/Entitylink|Wither}}
| {{EntityLink|Bee}} {{EntityLink|Wither}}
| 0.6
| 0.6
|-
|-
| {{MC/Entitylink|Allay}} || 0.1
| {{EntityLink|Allay}} || 0.1
|-
|-
| {{MC/Entitylink|Happy Ghast}} || 0.05
| {{EntityLink|Ghast}} || 0.06
|-
|-
| ''All other entities'' || 0.4
| {{EntityLink|Happy Ghast}} || 0.05
|-
| {{EntityLink|Parrot}} || 0.4
|}
|}


{{MC/-}}{{MC/Anchor|follow_range}}
{{-}}{{anchor|follow_range}}
=== Follow range ===
=== Mob Follow Range ===
{{Infobox attribute
{{Infobox attribute
| title = Mob Follow Range
| id = follow_range
| id = follow_range
| default = 32
| default = 32
Line 300: Line 301:
| max = 2048
| max = 2048
}}
}}
This attribute determines the range in blocks within which a mob with this attribute targets players or other mobs to track. Exiting this range causes the mob to cease following the player/mob.
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.


{| class=wikitable
{| class=wikitable
! Entity !! Default value
! Entity !! Base value
|-
|-
| {{MC/Entitylink|Ghast}} || 100
| {{EntityLink|Ghast}} || 100
|-
|-
| {{MC/Entitylink|Enderman}} || 64
| {{EntityLink|Enderman}} || 64
|-
|-
| {{MC/Entitylink|Allay}}<br>{{MC/Entitylink|Bee}}<br>{{MC/Entitylink|Blaze}}<br>{{MC/Entitylink|Villager}}
| {{EntityLink|Allay}} {{EntityLink|Bee}} {{EntityLink|Blaze}} {{EntityLink|Villager}}
| 48
| 48
|-
|-
| {{MC/Entitylink|Llama}}<br>{{MC/Entitylink|Wither}}
| {{EntityLink|Llama}} {{EntityLink|Wither}}
| 40
| 40
|-
|-
| {{MC/Entitylink|Zombie}}<br>{{MC/Entitylink|Husk}}<br>{{MC/Entitylink|Drowned}}<br>{{MC/Entitylink|Zombie Villager}}<br>{{MC/Entitylink|Zombified Piglin}}
| {{EntityLink|Zombie}} {{EntityLink|Husk}} {{EntityLink|Drowned}} {{EntityLink|Zombie Villager}} {{EntityLink|Zombified Piglin}}
| 35
| 35
|-
|-
| {{MC/Entitylink|Fox}}<br>{{MC/Entitylink|Pillager}}<br>{{MC/Entitylink|Ravager}}
| {{EntityLink|Fox}} {{EntityLink|Pillager}} {{EntityLink|Ravager}} {{EntityLink|Creaking}}
| 32
| 32
|-
|-
| {{MC/Entitylink|Breeze}} || 24
| {{EntityLink|Breeze}} {{EntityLink|Warden}} || 24
|-
|-
| {{MC/Entitylink|Polar Bear}} || 20
| {{EntityLink|Polar Bear}} || 20
|-
|-
| {{MC/Entitylink|Illusioner}} || 18
| {{EntityLink|Illusioner}} || 18
|-
|-
| {{MC/Entitylink|Evoker}}<br>{{MC/Entitylink|Vindicator}}
| {{EntityLink|Evoker}} {{EntityLink|Vindicator}} {{EntityLink|Piglin Brute}}
| 12
| 12
|-
|-
| ''All other entities'' || 16
| ''All other mobs'' || 16
|}
|}


{{MC/-}}{{MC/Anchor|gravity}}
{{-}}{{anchor|friction_modifier}}
=== Friction Modifier ===
{{Infobox attribute
| title = Friction Modifier
| id = friction_modifier
| default = 1
| min = 0
| max = 2048
}}
This attribute determines the friction experienced by an entity.{{info needed}}{{upcoming|java 26.2}}
 
{{-}}{{anchor|gravity}}
=== Gravity ===
=== Gravity ===
{{Infobox attribute
{{Infobox attribute
| title = Gravity
| id = gravity
| id = gravity
| default = 0.08
| default = 0.08
Line 343: Line 356:
This attribute determines the gravity affecting an entity in blocks per tick squared.
This attribute determines the gravity affecting an entity in blocks per tick squared.


{{MC/-}}{{MC/Anchor|jump_strength}}
{{-}}{{anchor|jump_strength}}
=== Jump strength ===
=== Jump Strength ===
{{Infobox attribute
{{Infobox attribute
| title = Jump Strength
| id = jump_strength
| id = jump_strength
| default = 0.42{{note|Actual value is 0.41999998688697815}}
| default = 0.42
| min = 0
| min = 0
| max = 32
| max = 32
| notes = {{notelist}}
}}
}}
This attribute determines the initial vertical velocity of an entity when they jump, in blocks per tick.
This attribute determines the initial vertical velocity of an entity when they jump, in blocks per tick.


{| class=wikitable
{| class=wikitable
! Entity !! Default value
! Entity !! Base value
|-
|-
| {{MC/Entitylink|Horse}}<br>{{MC/Entitylink|Skeleton Horse}}<br>{{MC/Entitylink|Zombie Horse}}
| {{EntityLink|Horse}} {{EntityLink|Skeleton Horse}} {{EntityLink|Zombie Horse}}
| Random<br>(0.4–1.0)
| Random<br>(0.4–1.0)
|-
|-
| {{MC/Entitylink|Donkey}}<br>{{MC/Entitylink|Mule}}<br>{{MC/Entitylink|Llama}}<br>{{MC/Entitylink|Trader Llama}}
| {{EntityLink|Donkey}} {{EntityLink|Mule}} {{EntityLink|Llama}} {{EntityLink|Trader Llama}}
| 0.5
| 0.5
|-
| ''All other entities'' || 0.42
|}
|}


{{MC/-}}{{MC/Anchor|knockback_resistance}}
{{-}}{{anchor|knockback_resistance}}
=== Knockback resistance ===
=== Knockback Resistance ===
{{Infobox attribute
{{Infobox attribute
| title = Knockback Resistance
| id = knockback_resistance
| id = knockback_resistance
| default = 0
| default = 0
| min = 0
| min = 0{{until|JE 26.2}}<br>-2{{upcoming|JE 26.2}}
| max = 1
| max = 1
}}
}}


This attribute determines the scale of horizontal knockback resisted from attacks and projectiles. Vertical knockback is not affected. It does not affect explosions.<ref>{{bug|MC-32578}}</ref> The resistance functions as a percentage from 0.0 (0% resistance) to 1.0 (100% resistance) (e.g. 0.4 is 40% resistance, meaning the attributed mob takes 60% of usual knockback). Iron golems and wardens suffer zero knockback from attacks or projectiles.
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 [[Minecraft:explosion]]s.<ref>{{bug|MC-32578}}</ref>


{| class=wikitable
{| class=wikitable
! Entity !! Default value
! Entity !! Base value
|-
|-
| {{MC/Entitylink|Iron Golem}}<br>{{MC/Entitylink|Warden}}
| {{EntityLink|Iron Golem}} {{EntityLink|Warden}}
| 1
| 1
|-
|-
| {{MC/Entitylink|Ravager}} || 0.75
| {{EntityLink|Ravager}} || 0.75
|-
|-
| {{MC/Entitylink|Hoglin}}<br>{{MC/Entitylink|Zoglin}}
| {{EntityLink|Hoglin}} {{EntityLink|Zoglin}}
| 0.6
| 0.6
|-
|-
| ''All other entities'' || 0
| {{EntityLink|Nautilus}} {{EntityLink|Zombie Nautilus}}
| 0.6
|}
|}


{{MC/-}}{{MC/Anchor|luck}}
{{-}}{{anchor|luck}}
 
=== Luck ===
=== Luck ===
{{Infobox attribute
{{Infobox attribute
| title = Luck
| id = luck
| id = luck
| default = 0
| default = 0
Line 399: Line 414:
| max = 1024
| max = 1024
}}
}}
This attribute affects the results of loot tables using the <code>quality</code> or <code>bonus_rolls</code> tag (e.g. when opening chests or chest minecarts, fishing, and killing mobs).


{{MC/-}}{{MC/Anchor|max_absorption}}
This attribute affects the results of [[Minecraft:loot table]]s, with a higher attribute value increasing the amount and quality of results.
=== Max absorption ===
 
The number of rolls is increased by the [[Minecraft:Loot table#Pool|pools]] "bonus rolls"-value times this attributes value, rounded down, and the weight of each [[Minecraft:Loot table#Entry|entry]] is increased by its quality times this attributes value, also rounded down.
 
Only players have this attribute.
 
{{-}}{{anchor|max_absorption}}
 
=== Max Absorption ===
{{Infobox attribute
{{Infobox attribute
| title = Max Absorption
| id = max_absorption
| id = max_absorption
| default = {{hp|0|absorption=1}}
| default = {{hp|0|absorption=1}}
Line 409: Line 431:
| max = {{hp|2048|absorption=1}}
| max = {{hp|2048|absorption=1}}
}}
}}
This attribute is the maximum absorption of this entity (in half-hearts); it determines the highest health they may gain by the Absorption effect.
This attribute determines an entity's maximum [[Minecraft:absorption]].


{{MC/-}}{{MC/Anchor|max_health}}
{{-}}{{anchor|max_health}}
=== Max health ===
=== Max Health ===
{{Infobox attribute
{{Infobox attribute
| title = Max Health
| id = max_health
| id = max_health
| template = hp
| template = hp
Line 420: Line 443:
| max = 1024
| max = 1024
}}
}}
This attribute is the maximum health of the entity in half-hearts. It determines the highest health they may be healed to. If the player is using this to summon a mob with high health, use this and the <code>Health</code> tag; for example: <code>{Health:200.0f}</code>.{{MC/Verify}}
This attribute determines an entity's maximum [[Minecraft:health]]. It determines the highest health they may be healed to.


{| class=wikitable
{| class=wikitable
! Entity !! Default value
! Entity !! Base value
|-
| {{EntityLink|Warden}}
| {{hp|500}}
|-
| {{EntityLink|Wither}}
| {{hp|300}}
|-
| {{EntityLink|Ender Dragon}}
| {{hp|200}}
|-
| {{EntityLink|Iron Golem}} {{EntityLink|Giant}} {{EntityLink|Ravager}}
| {{hp|100}}
|-
| {{EntityLink|Elder Guardian}}
| {{hp|80}}
|-
| {{EntityLink|Piglin Brute}}
| {{hp|50}}
|-
| {{EntityLink|Tamed Wolf}} {{EntityLink|Enderman}} {{EntityLink|Zoglin}} {{EntityLink|Hoglin}}
| {{hp|40}}
|-
| {{EntityLink|Camel}} {{EntityLink|Camel Husk}} {{EntityLink|Illusioner}}
| {{hp|32}}
|-
| {{EntityLink|Polar Bear}} {{EntityLink|Guardian}} {{EntityLink|Shulker}} {{EntityLink|Breeze}} {{EntityLink|Turtle}}
| {{hp|30}}
|-
| {{EntityLink|Witch}}
| {{hp|26}}
|-
| {{EntityLink|Zombie Horse}}
| {{hp|25}}
|-
| {{EntityLink|Evoker}} {{EntityLink|Pillager}} {{EntityLink|Vindicator}}
| {{hp|24}}
|-
| {{EntityLink|Happy Ghast}}
| {{hp|20}}
|-
| {{EntityLink|Piglin}} {{EntityLink|Bogged}} {{EntityLink|Parched}} {{EntityLink|Spider}}
| {{hp|16}}
|-
| {{EntityLink|Skeleton Horse}} {{EntityLink|Nautilus}} {{EntityLink|Zombie Nautilus}}
| {{hp|15}}
|-
| {{EntityLink|Axolotl}} {{EntityLink|Sniffer}}
| {{hp|14}}
|-
| {{EntityLink|Armadillo}} {{EntityLink|Copper Golem}} {{EntityLink|Cave Spider}}
| {{hp|12}}
|-
| {{EntityLink|Bee}} {{EntityLink|Cow}} {{EntityLink|Mooshroom}} {{EntityLink|Dolphin}} {{EntityLink|Cat}} {{EntityLink|Ocelot}} {{EntityLink|Fox}} {{EntityLink|Frog}} {{EntityLink|Goat}} {{EntityLink|Panda}} {{EntityLink|Pig}} {{EntityLink|Squid}} {{EntityLink|Glow Squid}} {{EntityLink|Ghast}}
| {{hp|10}}
|-
| {{EntityLink|Sheep}} {{EntityLink|Wolf}} {{EntityLink|Endermite}} {{EntityLink|Silverfish}}
| {{hp|8}}
|-
| {{EntityLink|Bat}} {{EntityLink|Tadpole}} {{EntityLink|Parrot}}
| {{hp|6}}
|-
| {{EntityLink|Chicken}} {{EntityLink|Snow Golem}}
| {{hp|4}}
|-
| {{EntityLink|Cod}} {{EntityLink|Salmon}} {{EntityLink|Tropical Fish}} {{EntityLink|Pufferfish}} {{EntityLink|Rabbit}}
| {{hp|3}}
|-
| {{EntityLink|Creaking}}
| {{hp|1}}
|-
| {{EntityLink|Horse}} {{EntityLink|Donkey}} {{EntityLink|Mule}} {{EntityLink|Llama}} {{EntityLink|Trader Llama}}
| Random<br>({{hp|15}} - {{hp|30}})
|-
| {{EntityLink|Slime}} {{EntityLink|Magma Cube}}
| {{hp|1}} × ''Size'' × ''Size''
|-
|-
| ''Any entity''
| {{EntityLink|Sulfur Cube}}
| The maximum health of the entity.<br>See {{slink|Health|Entities' health}} for a full list.
| {{hp|4}} × ''Size''
|}
|}


{{MC/-}}{{MC/Anchor|mining_efficiency}}
{{-}}{{anchor|mining_efficiency}}
=== Mining efficiency ===
=== Mining Efficiency ===
{{Infobox attribute
{{Infobox attribute
| title = Mining Efficiency
| id = mining_efficiency
| id = mining_efficiency
| default = 0
| default = 0
Line 437: Line 536:
| max = 1024
| max = 1024
}}
}}
This attribute is a factor to speed up the mining of blocks when using the right tool.
This attribute increases the speed at which a [[Minecraft:player]] [[Minecraft:Breaking|breaks blocks]]. Only players have this attribute.


{{MC/-}}{{MC/Anchor|movement_efficiency}}
{{-}}{{anchor|movement_efficiency}}
=== Movement efficiency ===
=== Movement Efficiency ===
{{Infobox attribute
{{Infobox attribute
| title = Movement Efficiency
| id = movement_efficiency
| id = movement_efficiency
| default = 0
| default = 0
Line 447: Line 547:
| max = 1
| max = 1
}}
}}
This attribute is a factor to improve walking on terrain that slows down movement. A value of 1 removes the slowdown.
This attribute is a factor to improve walking on terrain that slows down movement, such as [[Minecraft:soul sand]]. A value of 1 removes the slowdown.


{{MC/-}}{{MC/Anchor|movement_speed}}
{{-}}{{anchor|movement_speed}}
=== Movement speed ===
=== Speed ===
{{Infobox attribute
{{Infobox attribute
| title = Speed
| id = movement_speed
| id = movement_speed
| default = 0.7
| default = 0.7
Line 457: Line 558:
| max = 1024
| max = 1024
}}
}}
Movement speed is the speed at which entities can move, but this is not the actual speed value in blocks/second. The mob's actual speed in blocks/second is a bit over 20 times this value, but is affected by various conditions, such as the behavior it's following (e.g. idling, attacking or fleeing), being ridden (if a horse), sprinting, being led by a leash, and being under the effect of a Speed or Slowness potion. Baby mobs also have an additional speed multiplier on top of the base value.
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 [[Minecraft:Entity#Formulas]].)


{| class=wikitable
{| class=wikitable
! Entity !! Default value
! Entity !! Base value
|-
| {{MC/Entitylink|Horse}}<br>{{MC/Entitylink|Donkey}} (bred)<br>{{MC/Entitylink|Mule}} (bred)
| Random<br>(0.1125 – 0.3375)
|-
| {{MC/Entitylink|Zombie Horse}} ({{MC/JE}})
| Random<br>(0.2135 – 0.2846)
|-
| {{MC/Entitylink|Zombie Horse}} ({{MC/BE}})
| Random<br>(0.205 – 0.275)
|-
|-
| {{MC/Entitylink|Dolphin}} || 1.2
| {{EntityLink|Dolphin}} || 1.2
|-
|-
| {{MC/Entitylink|Zombie Nautilus}}
| {{EntityLink|Zombie Nautilus}}
| 1.1
| 1.1
|-
|-
| {{MC/Entitylink|Axolotl}}<br>{{MC/Entitylink|Frog}}<br>{{MC/Entitylink|Nautilus}}<br>{{MC/Entitylink|Tadpole}}
| {{EntityLink|Axolotl}} {{EntityLink|Frog}} {{EntityLink|Nautilus}} {{EntityLink|Tadpole}}
| 1
| 1
|-
|-
| {{MC/Entitylink|Armor Stand}}<br>{{MC/Entitylink|Bat}}<br>{{MC/Entitylink|Cod}}<br>{{MC/Entitylink|Ender Dragon}}<br>{{MC/Entitylink|Ghast}}<br>{{MC/Entitylink|Glow Squid}}<br>{{MC/Entitylink|Phantom}}<br>{{MC/Entitylink|Pufferfish}}<br>{{MC/Entitylink|Salmon}}<br>{{MC/Entitylink|Shulker}}<br>{{MC/Entitylink|Squid}}<br>{{MC/Entitylink|Tropical Fish}}<br>{{MC/Entitylink|Vex}}<br>{{MC/Entitylink|Wandering Trader}}
| {{EntityLink|Armor Stand}} {{EntityLink|Bat}} {{EntityLink|Cod}} {{EntityLink|Ender Dragon}} {{EntityLink|Ghast}} {{EntityLink|Glow Squid}} {{EntityLink|Phantom}} {{EntityLink|Pufferfish}} {{EntityLink|Salmon}} {{EntityLink|Shulker}} {{EntityLink|Squid}} {{EntityLink|Tropical Fish}} {{EntityLink|Vex}} {{EntityLink|Wandering Trader}}
| 0.7
| 0.7
|-
|-
| {{MC/Entitylink|Breeze}}<br>{{MC/Entitylink|Wither}}
| {{EntityLink|Breeze}}
| 0.63
|-
| {{EntityLink|Wither}}
| 0.6
| 0.6
|-
|-
| {{MC/Entitylink|Evoker}}<br>{{MC/Entitylink|Giant}}<br>{{MC/Entitylink|Guardian}}<br>{{MC/Entitylink|Illusioner}}<br>{{MC/Entitylink|Villager}}
| {{EntityLink|Evoker}} {{EntityLink|Giant}} {{EntityLink|Guardian}} {{EntityLink|Illusioner}} {{EntityLink|Villager}}
| 0.5
| 0.5
|-
|-
| {{MC/Entitylink|Piglin}}<br>{{MC/Entitylink|Piglin Brute}}<br>{{MC/Entitylink|Pillager}}<br>{{MC/Entitylink|Vindicator}}
| {{EntityLink|Piglin}} {{EntityLink|Piglin Brute}} {{EntityLink|Pillager}} {{EntityLink|Vindicator}}
| 0.35
| 0.35
|-
|-
| {{MC/Entitylink|Magma Cube}}<br>{{MC/Entitylink|Slime}}<br>{{MC/Entitylink|Sulfur Cube}}
| {{EntityLink|Creaking}}
| 0.3 + 0.1 × Size
| 0.4
|-
|-
| {{MC/Entitylink|Bee}}<br>{{MC/Entitylink|Cat}}<br>{{MC/Entitylink|Cave Spider}}<br>{{MC/Entitylink|Creaking}}<br>{{MC/Entitylink|Elder Guardian}}<br>{{MC/Entitylink|Enderman}}<br>{{MC/Entitylink|Fox}}<br>{{MC/Entitylink|Hoglin}}<br>{{MC/Entitylink|Ocelot}}<br>{{MC/Entitylink|Rabbit}}<br>{{MC/Entitylink|Ravager}}<br>{{MC/Entitylink|Spider}}<br>{{MC/Entitylink|Warden}}<br>{{MC/Entitylink|Wolf}}<br>{{MC/Entitylink|Zoglin}}
| {{EntityLink|Bee}} {{EntityLink|Cat}} {{EntityLink|Cave Spider}} {{EntityLink|Elder Guardian}} {{EntityLink|Enderman}} {{EntityLink|Fox}} {{EntityLink|Hoglin}} {{EntityLink|Ocelot}} {{EntityLink|Rabbit}} {{EntityLink|Ravager}} {{EntityLink|Spider}} {{EntityLink|Warden}} {{EntityLink|Wolf}} {{EntityLink|Zoglin}}
| 0.3
| 0.3
|-
|-
| {{MC/Entitylink|Chicken}}<br>{{MC/Entitylink|Creeper}}<br>{{MC/Entitylink|Endermite}}<br>{{MC/Entitylink|Iron Golem}}<br>{{MC/Entitylink|Pig}}<br>{{MC/Entitylink|Polar Bear}}<br>{{MC/Entitylink|Silverfish}}<br>{{MC/Entitylink|Skeleton}}<br>{{MC/Entitylink|Stray}}<br>{{MC/Entitylink|Turtle}}<br>{{MC/Entitylink|Witch}}<br>{{MC/Entitylink|Wither Skeleton}}
| {{EntityLink|Chicken}} {{EntityLink|Creeper}} {{EntityLink|Endermite}} {{EntityLink|Iron Golem}} {{EntityLink|Pig}} {{EntityLink|Polar Bear}} {{EntityLink|Silverfish}} {{EntityLink|Skeleton}} {{EntityLink|Stray}} {{EntityLink|Bogged}} {{EntityLink|Parched}} {{EntityLink|Turtle}} {{EntityLink|Witch}} {{EntityLink|Wither Skeleton}}
| 0.25
| 0.25
|-
|-
| {{MC/Entitylink|Blaze}}<br>{{MC/Entitylink|Drowned}}<br>{{MC/Entitylink|Husk}}<br>{{MC/Entitylink|Sheep}}<br>{{MC/Entitylink|Zombie}}<br>{{MC/Entitylink|Zombie Villager}}<br>{{MC/Entitylink|Zombified Piglin}}
| {{EntityLink|Blaze}} {{EntityLink|Drowned}} {{EntityLink|Husk}} {{EntityLink|Sheep}} {{EntityLink|Zombie}} {{EntityLink|Zombie Villager}} {{EntityLink|Zombified Piglin}}
| 0.23
| 0.23
|-
|-
| {{MC/Entitylink|Cow}}<br>{{MC/Entitylink|Goat}}<br>{{MC/Entitylink|Mooshroom}}<br>{{MC/Entitylink|Parrot}}<br>{{MC/Entitylink|Skeleton Horse}}<br>{{MC/Entitylink|Snow Golem}}
| {{EntityLink|Cow}} {{EntityLink|Goat}} {{EntityLink|Mooshroom}} {{EntityLink|Parrot}} {{EntityLink|Skeleton Horse}} {{EntityLink|Snow Golem}} {{EntityLink|Copper Golem}} {{EntityLink|Magma Cube}}
| 0.2
| 0.2
|-
|-
| {{MC/Entitylink|Donkey}}{{note|Spawned naturally, or via spawn eggs or <code>/summon</code>}}<br>{{MC/Entitylink|Llama}}<br>{{MC/Entitylink|Mule}}{{note|Spawned via spawn eggs or <code>/summon</code>}}<br>{{MC/Entitylink|Strider}}<br>{{MC/Entitylink|Trader Llama}}
| {{EntityLink|Llama}} {{EntityLink|Strider}} {{EntityLink|Trader Llama}}
| 0.175
| 0.175
|-
|-
| {{MC/Entitylink|Panda}} || 0.15
| {{EntityLink|Panda}} || 0.15
|-
|-
| {{MC/Entitylink|Armadillo}} || 0.14
| {{EntityLink|Armadillo}} || 0.14
|-
|-
| {{MC/Entitylink|Allay}}<br>{{MC/Entitylink|Sniffer}}<br>{{MC/Entitylink|Player}}
| {{EntityLink|Allay}} {{EntityLink|Sniffer}} {{EntityLink|Player}}
| 0.1
| 0.1
|-
|-
| {{MC/Entitylink|Camel}} || 0.09
| {{EntityLink|Camel}} {{EntityLink|Camel Husk}} || 0.09
|-
|-
| {{MC/Entitylink|id=lazy-panda|Panda}} (lazy) || 0.07
| {{EntityLink|id=lazy-panda|Panda}} (lazy) || 0.07
|-
|-
| {{MC/Entitylink|Happy Ghast}} || 0.05
| {{EntityLink|Happy Ghast}} || 0.05
|-
| {{EntityLink|Horse}} {{EntityLink|Donkey}} {{EntityLink|Mule}}
| Random (0.1125 – 0.3375)
|-
| {{EntityLink|Zombie Horse}}
| Random (0.2135 – 0.2846)
|-
| {{EntityLink|Slime}} {{EntityLink|Sulfur Cube}}
| 0.2 + (0.1 × ''Size'')
|}
|}
{{notelist}}
{{MC/-}}{{MC/Anchor|oxygen_bonus}}


=== Oxygen bonus ===
{{-}}{{anchor|nameplate_distance}}
=== Name Tag Distance ===
{{Infobox attribute
{{Infobox attribute
| title = Name Tag Distance
| id = name_tag_distance
| default = 64
| min = 0
| max = 512
}}
This attribute determines the distance within which an entity's [[Minecraft:custom name]] is visible.{{upcoming|java 26.2}}
{{-}}{{anchor|oxygen_bonus}}
=== Oxygen Bonus ===
{{Infobox attribute
| title = Oxygen Bonus
| id = oxygen_bonus
| id = oxygen_bonus
| default = 0
| default = 0
Line 532: Line 647:
| max = 1024
| max = 1024
}}
}}
This attribute determines the chance that an entity's <code>Air</code> data tag decreases in any given game tick, while the entity is underwater. The chance is given by {{frac|1|(oxygen_bonus + 1)}}.
This attribute determines the chance that an entity's remaining air decreases while underwater in any given game tick. The chance is given by {{frac|1|(oxygen_bonus + 1)}}.


{{MC/-}}{{MC/Anchor|safe_fall_distance}}
{{-}}{{anchor|safe_fall_distance}}
=== Safe fall distance ===
=== Safe Fall Distance ===
{{Infobox attribute
{{Infobox attribute
| title = Safe Fall Distance
| id = safe_fall_distance
| id = safe_fall_distance
| default = 3
| default = 3
Line 542: Line 658:
| max = 1024
| max = 1024
}}
}}
This attribute determines the number of blocks an entity can fall before fall damage starts to be accumulated. It also determines the minimum amount of blocks the entity has to fall to make fallling particles and sounds.
This attribute determines the distance in blocks an entity can fall before [[Minecraft:fall damage]] starts to accumulate.
 
{| class=wikitable
{| class=wikitable
! Entity !! Default value
! Entity !! Base value
|-
|-
| {{MC/Entitylink|Camel}}<br>{{MC/Entitylink|Donkey}}<br>{{MC/Entitylink|Horse}}<br>{{MC/Entitylink|Llama}}<br>{{MC/Entitylink|Mule}}<br>{{MC/Entitylink|Skeleton Horse}}<br>{{MC/Entitylink|Trader Llama}}<br>{{MC/Entitylink|Zombie Horse}}
| {{EntityLink|Camel}} {{EntityLink|Camel Husk}} {{EntityLink|Donkey}} {{EntityLink|Horse}} {{EntityLink|Llama}} {{EntityLink|Mule}} {{EntityLink|Skeleton Horse}} {{EntityLink|Trader Llama}} {{EntityLink|Zombie Horse}}
| 6
| 6
|-
|-
| {{MC/Entitylink|Fox}}
| {{EntityLink|Fox}}
| 5
| 5
|-
| ''All other entities''
| 3
|}
|}


{{MC/-}}{{MC/Anchor|scale}}
{{-}}{{anchor|scale}}
=== Scale ===
=== Scale ===
{{Infobox attribute
{{Infobox attribute
| title = Scale
| id = scale
| id = scale
| default = 1
| default = 1
Line 564: Line 679:
| max = 16
| max = 16
}}
}}
This attribute multiplies the size of an entity.
This attribute multiplies an entity's size and [[Minecraft:hitbox]] dimensions.
 
{{-}}{{anchor|sneaking_speed}}
=== Sneaking Speed ===
{{Infobox attribute
| title = Sneaking Speed
| id = sneaking_speed
| default = 0.3
| min = 0
| max = 1
}}
This attribute multiplies a player's movement speed when [[Minecraft:sneaking]] or [[Minecraft:crawling]]. Only players have this attribute.


{{MC/-}}{{MC/Anchor|spawn_reinforcements}}
{{-}}{{anchor|spawn_reinforcements}}
=== Spawn reinforcements ===
=== Zombie Reinforcements ===
{{Infobox attribute
{{Infobox attribute
| title = Zombie Reinforcements
| id = spawn_reinforcements
| id = spawn_reinforcements
| default = 0
| default = 0
Line 574: Line 701:
| max = 1
| max = 1
}}
}}
This attribute determines the chance for a zombie to spawn another zombie when attacked.
This attribute determines the chance for a [[Minecraft:zombie]] to spawn another zombie when attacked. Only the entities listed below have this attribute.


{| class=wikitable
{| class=wikitable
! Entity !! Default value
! Entity !! Base value
|-
|-
| {{MC/Entitylink|Zombie}}<br>{{MC/Entitylink|Husk}}<br>{{MC/Entitylink|Drowned}}<br>{{MC/Entitylink|Zombie Villager}}
| {{EntityLink|Zombie}} {{EntityLink|Husk}} {{EntityLink|Drowned}} {{EntityLink|Zombie Villager}}
| Random<br>(0–0.1)
| Random<br>(0 – 0.1)
|-
|-
| {{MC/Entitylink|Zombified Piglin}}
| {{EntityLink|Zombified Piglin}}
| 0<ref>{{bug|MC-301000}}</ref>
| 0<ref>{{bug|MC-301000}}</ref>
|}
|}


{{MC/-}}{{MC/Anchor|sneaking_speed}}
{{-}}{{anchor|step_height}}
=== Sneaking speed ===
=== Step Height ===
{{Infobox attribute
| id = sneaking_speed
| default = 0.3
| min = 0
| max = 1
}}
This attribute determines the movement speed factor when sneaking or crawling. A factor of 1 means sneaking or crawling is as fast as walking, a factor of 0 means unable to move while sneaking or crawling.
 
{{MC/-}}{{MC/Anchor|step_height}}
=== Step height ===
{{Infobox attribute
{{Infobox attribute
| title = Step Height
| id = step_height
| id = step_height
| default = 0.6
| default = 0.6
Line 604: Line 722:
| max = 10
| max = 10
}}
}}
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 attribute.<ref>{{bug|MC-268917}}</ref> This happens if the height that the player is above a block is equal or less than the attribute.
This attribute determines the maximum number of blocks that an entity can step up without jumping. [[Minecraft:Sneaking]] prevents drops from heights that are higher than this value.<ref>{{bug|MC-268917}}</ref>


{| class=wikitable
{| class=wikitable
! Entity !! Default value
! Entity !! Base value
|-
|-
| {{MC/Entitylink|Camel}} || 1.5
| {{EntityLink|Camel}} {{EntityLink|Camel Husk}} || 1.5
|-
|-
| {{MC/Entitylink|Axolotl}}<br>{{MC/Entitylink|Donkey}}<br>{{MC/Entitylink|Drowned}}<br>{{MC/Entitylink|Enderman}}<br>{{MC/Entitylink|Frog}}<br>{{MC/Entitylink|Horse}}<br>{{MC/Entitylink|Iron Golem}}<br>{{MC/Entitylink|Llama}}<br>{{MC/Entitylink|Mule}}<br>{{MC/Entitylink|Ravager}}<br>{{MC/Entitylink|Skeleton Horse}}<br>{{MC/Entitylink|Trader Llama}}<br>{{MC/Entitylink|Turtle}}<br>{{MC/Entitylink|Zombie Horse}}
| {{EntityLink|Creaking}} || 1.0625
|-
| {{EntityLink|Axolotl}} {{EntityLink|Donkey}} {{EntityLink|Drowned}} {{EntityLink|Enderman}} {{EntityLink|Frog}} {{EntityLink|Horse}} {{EntityLink|Iron Golem}} {{EntityLink|Llama}} {{EntityLink|Mule}} {{EntityLink|Ravager}} {{EntityLink|Skeleton Horse}} {{EntityLink|Trader Llama}} {{EntityLink|Turtle}} {{EntityLink|Zombie Horse}} {{EntityLink|Copper Golem}}
| 1
| 1
|-
|-
| {{MC/Entitylink|Armor Stand}}
| {{EntityLink|Armor Stand}}
| 0<ref>{{bug|MC-133544|||WAI}}</ref>
| 0<ref>{{bug|MC-133544|||WAI}}</ref>
|-
| ''All other entities'' || 0.6
|}
|}


{{MC/-}}{{MC/Anchor|submerged_mining_speed}}
{{-}}{{anchor|submerged_mining_speed}}


=== Submerged mining speed ===
=== Submerged Mining Speed ===
{{Infobox attribute
{{Infobox attribute
| title = Submerged Mining Speed
| id = submerged_mining_speed
| id = submerged_mining_speed
| default = 0.2
| default = 0.2
Line 629: Line 748:
| max = 20
| max = 20
}}
}}
This attribute determines the mining speed factor when underwater. A factor of 1 means mining as fast as on land, a factor of 0 means unable to mine while submerged. This represents only the submersion factor itself; other factors (such as not touching the ground) also apply.
This attribute multiplies a player's mining speed when underwater. Only players have this attribute.


{{MC/-}}{{MC/Anchor|sweeping_damage_ratio}}
{{-}}{{anchor|sweeping_damage_ratio}}
=== Sweeping damage ratio ===
=== Sweeping Damage Ratio ===
{{Infobox attribute
{{Infobox attribute
| title = Sweeping Damage Ratio
| id = sweeping_damage_ratio
| id = sweeping_damage_ratio
| default = 0
| default = 0
Line 639: Line 759:
| max = 1
| max = 1
}}
}}
This attribute determines how much of the base attack damage gets transferred to secondary targets in a sweep attack. This is in addition to the base attack of the sweep damage itself. A value of 1 means that all of the base attack damage is transferred (sweep damage is attack_damage + 1)
This attribute determines the proportion of the base attack damage dealt to secondary targets when a player performs a [[Minecraft:sweep attack]]. This is in addition to the base damage of the sweep damage itself. Only players have this attribute.


{{MC/-}}{{MC/Anchor|tempt_range}}
{{-}}{{anchor|tempt_range}}
=== Tempt range ===
=== Mob Tempt Range ===
{{Infobox attribute
{{Infobox attribute
| title = Mob Tempt Range
| id = tempt_range
| id = tempt_range
| default = 10
| default = 10
Line 650: Line 771:
}}
}}


This attribute determines the range, in blocks, in which mobs can be tempted. When tempted, mobs follow the player while the player is holding a specific item.
This attribute determines the range in blocks in which a mob can be tempted, following a player holding a specific item.


{|class=wikitable
{|class=wikitable
!Entity !! Default value
!Entity !! Base value
|-
|-
|{{MC/Entitylink|Happy Ghast}} || 16
|{{EntityLink|Happy Ghast}} || 16
|-
|-
|All other [[Minecraft:Animal]] mobs || 10
|{{EntityLink|Armadillo}} {{EntityLink|Axolotl}} {{EntityLink|Bee}} {{EntityLink|Chicken}} {{EntityLink|Cow}} {{EntityLink|Mooshroom}} {{EntityLink|Horse}} {{EntityLink|Donkey}} {{EntityLink|Mule}} {{EntityLink|Llama}} {{EntityLink|Trader Llama}} {{EntityLink|Zombie Horse}} {{EntityLink|Skeleton Horse}} {{EntityLink|Cat}} {{EntityLink|Ocelot}} {{EntityLink|Fox}} {{EntityLink|Frog}} {{EntityLink|Tadpole}} {{EntityLink|Goat}} {{EntityLink|Nautilus}} {{EntityLink|Zombie Nautilus}} {{EntityLink|Panda}} {{EntityLink|Parrot}} {{EntityLink|Pig}} {{EntityLink|Polar Bear}} {{EntityLink|Rabbit}} {{EntityLink|Sheep}} {{EntityLink|Sniffer}} {{EntityLink|Turtle}} {{EntityLink|Wolf}} {{EntityLink|Strider}} || 10
|-
|-
|Non-Animal mobs || N/A
|{{EntityLink|Sulfur Cube}} || 8
|}
|}


{{MC/-}}{{MC/Anchor|water_movement_efficiency}}
{{-}}{{anchor|water_movement_efficiency}}
=== Water movement efficiency ===
=== Water Movement Efficiency ===
{{Infobox attribute
{{Infobox attribute
| title = Water Movement Efficiency
| id = water_movement_efficiency
| id = water_movement_efficiency
| default = 0
| default = 0
Line 670: Line 792:
| max = 1
| max = 1
}}
}}
This attribute is a factor of movement speed when submerged. A higher value lets entities move faster. This represents only the submersion factor itself; other factors (such as sprinting) also apply.
This attribute determines movement speed and drag when submerged.{{info needed}}


{{MC/-}}{{MC/Anchor|waypoint_receive_range}}
{{-}}{{anchor|waypoint_receive_range}}
=== Waypoint receive range ===
=== Waypoint Receive Range ===
{{Infobox attribute
{{Infobox attribute
| title = Waypoint Receive Range
| id = waypoint_receive_range
| id = waypoint_receive_range
| default = 0
| default = 0
Line 680: Line 803:
| max = 60,000,000
| max = 60,000,000
}}
}}
This attribute determines the maximum distance from the player to a waypoint at which the waypoint is displayed on the locator bar. This attribute has no effect on mobs.
This attribute determines the maximum distance from a player to a waypoint at which the waypoint is displayed on the [[Minecraft:locator bar]]. Only players have this attribute.


{| class=wikitable
{| class=wikitable
! Entity !! Default value
! Entity !! Base value
|-
|-
| {{MC/Entitylink|Player}} || 60,000,000
| {{EntityLink|Player}} || 60,000,000
|-
| ''All other entities'' || 0
|}
|}


{{MC/-}}{{MC/Anchor|waypoint_transmit_range}}
{{-}}{{anchor|waypoint_transmit_range}}
=== Waypoint transmit range ===
=== Waypoint Transmit Range ===
{{Infobox attribute
{{Infobox attribute
| title = Waypoint Transmit Range
| id = waypoint_transmit_range
| id = waypoint_transmit_range
| default = 0
| default = 0
Line 698: Line 820:
| max = 60,000,000
| max = 60,000,000
}}
}}
This attribute determines the distance at which an entity displays as a waypoint on the locator bar.
This attribute determines the distance at which an entity displays as a waypoint on the [[Minecraft:locator bar]].


{| class=wikitable
{| class=wikitable
! Entity !! Default value
! Entity !! Base value
|-
| {{MC/Entitylink|Player}} || 60,000,000
|-
|-
| ''All other entities'' || 0
| {{EntityLink|Player}} || 60,000,000
|}
|}


{{MC/-}}
{{-}}


== Modifiers ==
== Modifiers ==


Modifiers increase or decrease the attribute's base value by using certain operations. The resulting value after modification is capped by the attribute's minimum and maximum limits. Similar to attribute names, modifiers have a namespaced identifiers to uniquely identify the modifier.
'''Attribute modifiers''' are persistent increases or decreases to an attribute's base value by preset operations.


However, a modifier's ID does not define the modifier's behavior; instead, it is determined by its ''operation''. Modifiers carry an ''amount'' to their modification. When attribute modifiers are applied to items, the ''type'' parameter is required; this defines which attribute the modifier affects. Modifiers can be added or removed from all living entities using the {{MC/Cmd|attribute}} command, modifying the entity's NBT data, or using item modifiers via data components.
Each modifier has a [[Minecraft: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 ===
=== Operations ===


Modifier operations dictate how it modifies an attribute base value. There are three operations that exist in the game:{{note|{{MC/Cmd|attribute ... modifier add ...}} command shows the literal name of the operations.}}
A modifier may perform one of three possible operations:


{|class="wikitable"
{|class="wikitable"
Line 736: Line 856:
| Multiplies the base attribute by (1 + sum of modifiers' amounts).
| Multiplies the base attribute by (1 + sum of modifiers' amounts).


<math>\text{Total} = \text{Base} \times (1 + \text{Amount}_1 + \text{Amount}_2 + \ldots + \text{Amount}_n)</math>{{note|Algebraically equivalent form. The original formula used in the game's code is like: <math>\text{Total} = \text{Base} + (\text{Base} \times \text{Amount}_1) + (\text{Base} \times \text{Amount}_2) + \ldots + (\text{Base} \times \text{Amount}_n)</math>}}
<math>\text{Total} = \text{Base} \times (1 + \text{Amount}_1 + \text{Amount}_2 + \ldots + \text{Amount}_n)</math>{{note|Simplified, the calculation used in the game's code is like: <math>\text{Total} = \text{Base} + (\text{Base} \times \text{Amount}_1) + (\text{Base} \times \text{Amount}_2) + \ldots + (\text{Base} \times \text{Amount}_n)</math>}}


For example, applying two '''add_multiplied_base''' modifiers with amounts of 2 and 4, to attribute base of 3:
For example, applying two '''add_multiplied_base''' modifiers with amounts of 2 and 4, to attribute base of 3:
Line 752: Line 872:
|}
|}


If multiple attribute modifiers are applied, 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.
If multiple modifiers are applied to an attribute, the game first executes all {{cd|add_value}} modifiers, then  all {{cd|add_multiplied_base}} modifiers, and finally all {{cd|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.


{{notelist}}
<references group="note"/>


=== Vanilla modifiers ===
=== Applying modifiers ===
As stated before, a modifier's ID can be anything, and this does not affect its behavior. The following are known modifier IDs and values used in vanilla ''Minecraft''. Manually setting vanilla modifiers with the correct ID and attribute overrides the default value.
Various systems in the game add and remove modifiers.
 
==== Commands ====
The {{Command|attribute}} command can add or remove specific modifiers, including custom ones. Except for players, it is also possible add, remove and custom with {{cmd|data}}.
 
==== Items ====
The [[Minecraft:Data_component_format#attribute_modifiers|{{cd|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:


{| class="wikitable stikitable sortable collapsible" style="width:100%" data-description="Modifiers"
{| class="wikitable stikitable sortable collapsible" style="width:100%" data-description="Modifiers"
! Modifier ID
! Modifier ID
! Description and Known Values
! Attribute
! Known Attributes Modified
! Items
|-
|{{cd|minecraft:base_attack_damage}}
|{{cd|[[#attack_damage|attack_damage]]}}
|{{ItemLink|Swords}} {{ItemLink|Spears}} {{ItemLink|Trident}} {{ItemLink|Mace}} {{ItemLink|Axes}} {{ItemLink|Pickaxes}} {{ItemLink|Shovels}} {{ItemLink|Hoes}}
|-
|{{cd|minecraft:base_attack_speed}}
|{{cd|[[#attack_speed|attack_speed]]}}
|{{ItemLink|Swords}} {{ItemLink|Spears}} {{ItemLink|Trident}} {{ItemLink|Mace}} {{ItemLink|Axes}} {{ItemLink|Pickaxes}} {{ItemLink|Shovels}} {{ItemLink|Hoes}}
|-
|-
|minecraft:armor.body
|{{cd|minecraft:armor.helmet}}
| Value varies based on the armor of the horse.
|{{cd|[[#armor|armor]]}}<br>{{cd|[[#armor_toughness|armor_toughness]]}}<br>{{cd|[[#knockback_resistance|knockback_resistance]]}}
| armor (Operation {{MC/Cd|add_value}}; [[Minecraft:Horse]]s), generic.armor_toughness (Operation {{MC/Cd|add_value}}; [[Minecraft:Horse]]s)
|{{ItemLink|Helmets}}
|-
|-
|minecraft:armor.body
|{{cd|minecraft:armor.chestplate}}
|Fixed value of 11.0 for wolves wearing [[Minecraft:Wolf Armor|wolf armor]].
|{{cd|[[#armor|armor]]}}<br>{{cd|[[#armor_toughness|armor_toughness]]}}<br>{{cd|[[#knockback_resistance|knockback_resistance]]}}
|armor (Operation {{MC/Cd|add_value}}; Wolves)
|{{ItemLink|Chestplates}}
|-
|-
|minecraft:armor.helmet
|{{cd|minecraft:armor.leggings}}
minecraft:armor.chestplate
|{{cd|[[#armor|armor]]}}<br>{{cd|[[#armor_toughness|armor_toughness]]}}<br>{{cd|[[#knockback_resistance|knockback_resistance]]}}
|{{ItemLink|Leggings}}
|-
|{{cd|minecraft:armor.boots}}
|{{cd|[[#armor|armor]]}}<br>{{cd|[[#armor_toughness|armor_toughness]]}}<br>{{cd|[[#knockback_resistance|knockback_resistance]]}}
|{{ItemLink|Boots}}
|-
|{{cd|minecraft:armor.body}}
|{{cd|[[#armor|armor]]}}<br>{{cd|[[#armor_toughness|armor_toughness]]}}<br>{{cd|[[#knockback_resistance|knockback_resistance]]}}
|{{ItemLink|Horse Armor}} {{ItemLink|Nautilus Armor}} {{ItemLink|Wolf Armor}}
|-
|{{cd|minecraft:waypoint_transmit_range_hide}}
|{{cd|[[#waypoint_transmit_range|waypoint_transmit_range]]}}
|{{BlockLink|Carved Pumpkin}} {{BlockLink|Heads}}
|}


minecraft:armor.leggings
==== Enchantments ====
Enchantment [[Minecraft:Enchantment_definition#Attribute_effects|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.


minecraft:armor.boots
Some vanilla enchantments use this effect to add and remove modifiers with the following IDs. The listed IDs are appended with {{cd|/}} followed by the name of the slot the enchantment is active in.
| Value varies based on slot and tier.
 
| armor (Operation {{MC/Cd|add_value}}; boots, leggings, chestplate, helmet, turtle shell)
{| class="wikitable stikitable sortable collapsible" style="width:100%" data-description="Modifiers"
! Modifier ID
! Attribute
! [[Minecraft:Level-based value]]
! Operation
! Enchantment
|-
|{{cd|minecraft:enchantment.aqua_affinity}}
|{{cd|[[#submerged_mining_speed|submerged_mining_speed]]}}
|
type:&#160;{{cd|minecraft:linear}}, <br>
base: 4.0,<br>
per_level_above_first: 4.0
| add_multiplied_total
|[[Minecraft:Aqua Affinity]]
|-
|{{cd|minecraft:enchantment.blast_protection}}
|{{cd|[[#explosion_knockback_resistance|explosion_knockback_resistance]]}}
|
type:&#160;{{cd|minecraft:linear}}, <br>
base: 0.15,<br>
per_level_above_first: 0.15
|add_value
|[[Minecraft:Blast Protection]]
|-
|{{cd|minecraft:enchantment.depth_strider}}
|{{cd|[[#water_movement_efficiency|water_movement_efficiency]]}}
|
type:&#160;{{cd|minecraft:linear}}, <br>
base: 0.33333334,<br>
per_level_above_first: 0.33333334
|add_value
|[[Minecraft:Depth Strider]]
|-
|{{cd|minecraft:enchantment.efficiency}}
|{{cd|[[#mining_efficiency|mining_efficiency]]}}
|
type:&#160;{{cd|minecraft:levels_squared}}, <br>
added: 1.0
|add_value
|[[Minecraft:Efficiency]]
|-
|{{cd|minecraft:enchantment.fire_protection}}
|{{cd|[[#burning_time|burning_time]]}}
|type:&#160;{{cd|minecraft:linear}}, <br>
base: -0.15,<br>
per_level_above_first: -0.15
| add_multiplied_base
|[[Minecraft:Fire Protection]]
|-
|{{cd|minecraft:enchantment.respiration}}
|{{cd|[[#oxygen_bonus|oxygen_bonus]]}}
|type:&#160;{{cd|minecraft:linear}}, <br>
base: 1.0,<br>
per_level_above_first: 1.0
|add_value
|[[Minecraft:Respiration]]
|-
| rowspan="2"  |{{cd|minecraft:enchantment.soul_speed}}
|{{cd|[[#movement_speed|movement_speed]]}}
|type:&#160;{{cd|minecraft:linear}}, <br>
base: 0.0405,<br>
per_level_above_first: 0.0105
|add_value
| rowspan="2" |[[Minecraft:Soul Speed]]
|-
| {{cd|[[#movement_efficiency|movement_efficiency]]}}
|1.0
|add_value
|-
|-
|minecraft:armor.helmet
|{{cd|minecraft:enchantment.sweeping_edge}}
minecraft:armor.chestplate
|{{cd|[[#sweeping_damage_ratio|sweeping_damage_ratio]]}}
|
{{Collapse|title= type: {{cd|minecraft:fraction}}| content=
denominator: {
:type: {{cd|minecraft:linear}}<Br>
:base: 2.0,<Br>
:per_level_above_first: 1.0<Br>
},<Br>
numerator: {
:type: {{cd|minecraft:linear}},<Br>
:base: 1.0,<Br>
:per_level_above_first: 1.0<Br>
}
}}
|add_value
|[[Minecraft:Sweeping Edge]]
|-
|{{cd|minecraft:enchantment.swift_sneak}}
|{{cd|[[#sneaking_speed|sneaking_speed]]}}
|
type:&#160;{{cd|minecraft:linear}}, <br>
base: 0.15,<br>
per_level_above_first: 0.15
|add_value
|[[Minecraft:Swift Sneak]]
|}


minecraft:armor.leggings
==== Effects ====
Some [[Minecraft:status effect]]s 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 [[Minecraft:effect potency]] (in other words, multiplied by {{cd|amplifier + 1}}).


minecraft:armor.boots
{| class="wikitable stikitable sortable collapsible" style="width:100%" data-description="Modifiers"
| Value varies based on tier.
! Modifier ID
| armor_toughness (Operation {{MC/Cd|add_value}}; boots, leggings, chestplate, helmet, turtle shell)
! Attribute
! Value
! Operation
! Effect
|-
|{{cd|minecraft:effect.speed}}
|{{cd|[[#movement_speed|movement_speed]]}}
| 0.2
| add_multiplied_total
|{{EffectLink|Speed}}
|-
|{{cd|minecraft:effect.slowness}}
|{{cd|[[#movement_speed|movement_speed]]}}
| -0.15
| add_multiplied_total
|{{EffectLink|Slowness}}
|-
|{{cd|minecraft:effect.haste}}
|{{cd|[[#attack_speed|attack_speed]]}}
| 0.1
| add_multiplied_total
|{{EffectLink|Haste}}
|-
|{{cd|minecraft:effect.mining_fatigue}}
|{{cd|[[#attack_speed|attack_speed]]}}
| -0.1
| add_multiplied_total
|{{EffectLink|Mining Fatigue}}
|-
|{{cd|minecraft:effect.strength}}
|{{cd|[[#attack_damage|attack_damage]]}}
| 3.0
| add_value
|{{EffectLink|Strength}}
|-
|{{cd|minecraft:effect.weakness}}
|{{cd|[[#attack_damage|attack_damage]]}}
| -4.0
| add_value
|{{EffectLink|Weakness}}
|-
|{{cd|minecraft:effect.jump_boost}}
|{{cd|[[#safe_fall_distance|safe_fall_distance]]}}
| 1.0
| add_value
|{{EffectLink|Jump Boost}}
|-
|-
|minecraft:armor.helmet
|{{cd|minecraft:effect.waypoint_transmit_range_hide}}
minecraft:armor.chestplate
|{{cd|[[#waypoint_transmit_range|waypoint_transmit_range]]}}
 
| -1.0
minecraft:armor.leggings
| add_multiplied_total
 
|{{EffectLink|Invisibility}}
minecraft:armor.boots
| Applies knockback resistance similarily to netherite armor. A piece of netherite armor is equivalent to {{MC/Cd|add_value}} with amount 0.1.
| knockback_resistance (Operation {{MC/Cd|add_value}}; boots, leggings, chestplate, helmet)
|-
|-
|minecraft:attacking
|{{cd|minecraft:effect.health_boost}}
| Fixed value of 0.15 for Endermen and 0.05 for Zombified Piglins; exists only when attacking.
|{{cd|[[#max_health|max_health]]}}
| movement_speed (Operation {{MC/Cd|add_value}}; Endermen, Zombified Piglins)
| 4.0
| add_value
|{{EffectLink|Health Boost}}
|-
|-
|minecraft:base_attack_damage
|{{cd|minecraft:effect.absorption}}
|Value varies based on tool/weapon and tier.
|{{cd|[[#max_absorption|max_absorption]]}}
|attack_damage (Operation {{MC/Cd|add_value}}; tridents, shovels, pickaxes, axes, hoes, maces)
| 4.0
| add_value
|{{EffectLink|Absorption}}
|-
|-
|minecraft:base_attack_speed
|{{cd|minecraft:effect.luck}}
|Value varies based on tool/weapon and tier.
|{{cd|[[#luck|luck]]}}
|attack_speed (Operation {{MC/Cd|add_value}}; tridents, shovels, pickaxes, axes, hoes, maces)
| 1.0
| add_value
|{{EffectLink|Luck}}
|-
|-
|minecraft:baby
|{{cd|minecraft:effect.unluck}}
| Fixed value of 0.5 for Zombies and 0.2 for Piglins; exists only for their respective baby variants.
|{{cd|[[#luck|luck]]}}
| movement_speed (Operation {{MC/Cd|add_multiplied_base}}; Baby Zombies. Baby Villagers)
| -1.0
| add_value
|{{EffectLink|Bad Luck}}
|}
 
==== Sulfur Cube Archetypes ====
{{Missing information|{{cd|explosion_knockback_resistance}} attribute}}
[[Minecraft:Sulfur cube archetype definition]]s define modifiers that are automatically added to a [[Minecraft:sulfur cube]] when one of the specified items is given to it, and removed when it is removed.
 
See [[Minecraft:sulfur cube archetype]] for the values.<!--The actual values are slightly different-->
 
The vanilla archetypes add and remove modifiers with the following IDs:
 
{| class="wikitable stikitable sortable collapsible" style="width:100%" data-description="Modifiers"
! Modifier ID
! Attribute
! Operation
|-
|-
|minecraft:covered
|{{cd|minecraft:bouncy_add_knockback_resistance}}<br>{{cd|minecraft:fast_flat_add_knockback_resistance}}<br>{{cd|minecraft:fast_sliding_add_knockback_resistance}}<br>{{cd|minecraft:high_resistance_add_knockback_resistance}}<br>{{cd|minecraft:light_add_knockback_resistance}}<br>{{cd|minecraft:regular_add_knockback_resistance}}<br>{{cd|minecraft:slow_flat_add_knockback_resistance}}<br>{{cd|minecraft:slow_sliding_add_knockback_resistance}}<br>{{cd|minecraft:sticky_add_knockback_resistance}}
| Fixed value of 20.0 for Shulkers. Exists only when fully closed.
|{{cd|[[#knockback_resistance|knockback_resistance]]}}
| armor (Operation {{MC/Cd|add_value}}; Shulkers)
| add_value
|-
|-
|minecraft:creative_mode_block_range
|{{cd|minecraft:bouncy_add_bounciness}}<br>{{cd|minecraft:fast_flat_add_bounciness}}<br>{{cd|minecraft:fast_sliding_add_bounciness}}<br>{{cd|minecraft:high_resistance_add_bounciness}}<br>{{cd|minecraft:light_add_bounciness}}<br>{{cd|minecraft:regular_add_bounciness}}<br>{{cd|minecraft:slow_flat_add_bounciness}}<br>{{cd|minecraft:slow_sliding_add_bounciness}}<br>{{cd|minecraft:sticky_add_bounciness}}
| Fixed value of 0.5 while player is in Creative Mode.
|{{cd|[[#bounciness|bounciness]]}}
| block_interaction_range (Operation {{MC/Cd|add_value}}; Player)
| add_value
|-
|-
|minecraft:creative_mode_entity_range
|{{cd|minecraft:bouncy_mul_friction_modifier}}<br>{{cd|minecraft:fast_flat_mul_friction_modifier}}<br>{{cd|minecraft:fast_sliding_mul_friction_modifier}}<br>{{cd|minecraft:high_resistance_mul_friction_modifier}}<br>{{cd|minecraft:light_mul_friction_modifier}}<br>{{cd|minecraft:regular_mul_friction_modifier}}<br>{{cd|minecraft:slow_flat_mul_friction_modifier}}<br>{{cd|minecraft:slow_sliding_mul_friction_modifier}}<br>{{cd|minecraft:sticky_mul_friction_modifier}}
| Fixed value of 2.0 while player is in Creative Mode.
|{{cd|[[#friction_modifier|friction_modifier]]}}
| entity_interaction_range (Operation {{MC/Cd|add_value}}; Player)
| add_multiplied_total
|-
|-
|minecraft:drinking
|{{cd|minecraft:bouncy_mul_air_drag_modifier}}<br>{{cd|minecraft:fast_flat_mul_air_drag_modifier}}<br>{{cd|minecraft:fast_sliding_mul_air_drag_modifier}}<br>{{cd|minecraft:high_resistance_mul_air_drag_modifier}}<br>{{cd|minecraft:light_mul_air_drag_modifier}}<br>{{cd|minecraft:regular_mul_air_drag_modifier}}<br>{{cd|minecraft:slow_flat_mul_air_drag_modifier}}<br>{{cd|minecraft:slow_sliding_mul_air_drag_modifier}}<br>{{cd|minecraft:sticky_mul_air_drag_modifier}}
| Fixed value of -0.25 for Witches when drinking a potion.
|{{cd|[[#air_drag_modifier|air_drag_modifier]]}}
| movement_speed (Operation {{MC/Cd|add_value}}; [[Minecraft:Witch]]es)
| add_multiplied_total
|}
 
==== Hardcoded ====
Other parts of the game add and remove additional modifiers. In this table, every mention of "zombies" represents the class {{jcp| net.minecraft.world.entity.monster.zombie.Zombie}}, that is, the entities: [[Minecraft:zombie]], [[Minecraft:drowned]], [[Minecraft:husk]], [[Minecraft:zombie villager]], and [[Minecraft:zombified piglin]].
 
{| class="wikitable stikitable sortable collapsible" style="width:100%" data-description="Modifiers"
! Modifier ID
! Attribute
! Value
! Operation
! Details
|-
|-
|minecraft:effect.speed
|{{cd|minecraft:random_spawn_bonus}}
| Fixed value of 0.2 when under the Speed effect, multiplied by the effect's ''level'' (amplifier + 1).
|{{cd|[[#follow_range|follow_range]]}}
| movement_speed (Operation {{MC/Cd|add_multiplied_total}}; All living entities)
| {{cd|triangle(0.0, 0.11485)}}
| add_value
|Applied randomly to all mobs when they spawn.
|-
|-
|minecraft:effect.slowness
|{{cd|minecraft:random_spawn_bonus}}
| Fixed value of -0.15 when under the Slowness effect, multiplied by the effect's level.
|{{cd|[[#knockback_resistance|knockback_resistance]]}}
| movement_speed (Operation {{MC/Cd|add_multiplied_total}}; All living entities)
|{{cd|nextDouble()*0.05}}
| add_value
|Applied randomly to all [[Minecraft:zombie]]s when they spawn.
|-
|-
|minecraft:effect.haste
|{{cd|minecraft:zombie_random_spawn_bonus}}
| Fixed value of 0.1 when under the Haste effect, multiplied by the effect's level.
|{{cd|[[#follow_range|follow_range]]}}
| attack_speed (Operation {{MC/Cd|add_multiplied_total}}; All living entities)
|{{cd|nextDouble()*1.5*[[Minecraft:Difficulty#Clamped_regional_difficulty|difficultyModifier]]}}
| add_multiplied_total
|Applied randomly to some [[Minecraft:zombie]]s when they spawn. Only applies if greater than 1.
|-
|-
|minecraft:effect.mining_fatigue
| rowspan="2"  |{{cd|minecraft:leader_zombie_bonus}}
| Fixed value of -0.1 when under the Mining fatigue effect, multiplied by the effect's level.
|{{cd|[[#spawn_reinforcements_chance|spawn_reinforcements_chance]]}}
| attack_speed (Operation {{MC/Cd|add_multiplied_total}}; All living entities)
| {{cd|nextDouble()*0.25+0.5}}
| add_value
| rowspan="2"  |Applied randomly to some [[Minecraft:zombie]]s to turn them into "[[Minecraft:Zombie#Leader|leaders]]".
|-
|-
|minecraft:effect.strength
|{{cd|[[#max_health|max_health]]}}
| Fixed value of 3.0 when under the Strength effect, multiplied by the effect's level.
| {{cd|nextDouble()*3.0+1.0}}
| attack_damage (Operation {{MC/Cd|add_value}}; All living entities)
|add_multiplied_total
|-
|-
|minecraft:effect.weakness
|{{cd|minecraft:reinforcement_caller_charge}}
| Fixed value of -4.0 when under the Weakness effect, multiplied by the effect's level.
|{{cd|[[#spawn_reinforcements_chance|spawn_reinforcements_chance]]}}
| attack_damage (Operation {{MC/Cd|add_value}}; All living entities)
| {{cd|existingAmount - 0.05}}
| add_value
| Applied to a [[Minecraft:zombie]] when it successfully spawns a reinforcement. The {{cd|existingAmount}} is the value of the modifier previously, or {{cd|0.0}} if it does not exist.
|-
|-
|minecraft:effect.health_boost
|{{cd|minecraft:reinforcement_callee_charge}}
| Fixed value of 4.0 when under the Health Boost effect, multiplied by the effect's level.
|{{cd|[[#spawn_reinforcements_chance|spawn_reinforcements_chance]]}}
| max_health (Operation {{MC/Cd|add_value}}; All living entities)
| -0.05
| add_value
|Applied to [[Minecraft:zombie]] reinforcements when they spawn.
|-
|-
|minecraft:effect.luck
|{{cd|minecraft:baby}}
| Fixed value of 1.0 when under the Luck effect, multiplied by the effect's level.
| |{{cd|[[#movement_speed|movement_speed]]}}
| luck (Operation {{MC/Cd|add_value}}; All living entities)
| {{EntityLink|Zombie}}: 0.5 <Br> {{EntityLink|Piglin}}: 0.2
| add_multiplied_base
|Applied to [[Minecraft:zombie]]s and [[Minecraft:piglin]]s as babies, and removed when they are not babies.
|-
|-
|minecraft:effect.unluck
|{{cd|minecraft:attacking}}
| Fixed value of -1.0 when under the Unluck effect, multiplied by the effect's level.
|{{cd|[[#movement_speed|movement_speed]]}}
| luck (Operation {{MC/Cd|add_value}}; All living entities)
| {{EntityLink|Enderman}}: 0.15 <Br> {{EntityLink|Zombified piglin}}: 0.05
| add_value
|Applied to [[Minecraft:endermen]] when they acquire a target, and removed when they lose it.<br>Applied to adult [[Minecraft:zombified piglin]]s when they get angry, and removed when they stop being angry.
|-
|-
|minecraft:effect.jump_boost
|{{cd|minecraft:covered}}
| Fixed value of 0.1 when under the Jump boost effect, multiplied by the effect's level.
|{{cd|[[#armor|armor]]}}
| jump_strength (Operation {{MC/Cd|add_value}}; All living entities)
|20.0
|add_value
|Applied to [[Minecraft:shulker]]s when their shell fully closes, and removed when it opens.
|-
|-
|minecraft:leader_zombie_bonus
|{{cd|minecraft:creative_mode_block_range}}
| Has a (small) random chance of being generated on a zombie when spawned. For Spawn Reinforcements Chance, random number between 0.5 and 0.75. For max_health, random number between 1.0 and 4.0.
|{{cd|[[#block_interaction_range|block_interaction_range]]}}
| spawn_reinforcements (Operation {{MC/Cd|add_value}}; [[Minecraft:Zombie]]s), max_health (Operation {{MC/Cd|add_multiplied_total}}; [[Minecraft:Zombie]]s)
|0.5
|add_value
|Applied to [[Minecraft:player]]s when they enter [[Minecraft:creative mode]], and removed when leaving creative mode.
|-
|-
|minecraft:powder_snow
|{{cd|minecraft:creative_mode_entity_range}}
| Value varies from 0 to -0.05 based on ticks spent in powder snow.
|{{cd|[[#entity_interaction_range|entity_interaction_range]]}}
| movement_speed (Operation {{MC/Cd|add_value}}; all living entities)
|2.0
|add_value
|Applied to [[Minecraft:player]]s when they enter [[Minecraft:creative mode]], and removed when leaving creative mode.
|-
|-
|minecraft:random_spawn_bonus
|{{cd|minecraft:drinking}}
|Generated upon spawning. For follow range, a random number between &plusmn; 0.11485 is chosen, following a triangular distribution. For knockback resistance, a value between 0.0 and 0.05 is chosen.
|{{cd|[[#movement_speed|movement_speed]]}}
| follow_range (Operation {{MC/Cd|add_multiplied_base}}; all mobs), Knockback Resistance (Operation {{MC/Cd|add_value}}; [[Minecraft:Zombie]]s only)
| -0.25
|add_value
|Applied to [[Minecraft:witch]]es when they start drinking a [[Minecraft:potion]], and removed when they finish drinking it.
|-
|-
|minecraft:reinforcement_caller_charge
|{{cd|minecraft:powder_snow}}
| Fixed value of -0.05 created each time a zombie spawns another zombie as reinforcement.
|{{cd|[[#movement_speed|movement_speed]]}}
| spawn_reinforcements (Operation {{MC/Cd|add_value}}; [[Minecraft:Zombie]]s)
| {{cd|-0.05*getPercentFrozen()}}
| add_value
|Applied to all [[Minecraft:living entities]] while inside [[Minecraft:powder snow]], and removed when the frost effect wears off. The {{cd|getPercentFrozen()}} is the float {{cd|min(140,[[Minecraft:Entity_format#Entity_format|TicksFrozen]])/140}}.
|-
|-
|minecraft:reinforcement_callee_charge
|{{cd|minecraft:sprinting}}
| Fixed value of -0.05 created for each zombie spawned as a reinforcement.
|{{cd|[[#movement_speed|movement_speed]]}}
| spawn_reinforcements (Operation {{MC/Cd|add_value}}; [[Minecraft:Zombie]]s)
| 0.3
| add_multiplied_total
|Applied to all living entities when they start [[Minecraft:sprinting]], and removed when they stop.
|-
|-
|minecraft:sprinting
|{{cd|minecraft:waypoint_transmit_range_crouch}}
| Fixed value of 0.3 used by all mobs (including players) when sprinting.
|{{cd|[[#waypoint_transmit_range|waypoint_transmit_range]]}}
| movement_speed (Operation {{MC/Cd|add_multiplied_total}}; all living entities)
| -1.0
| add_multiplied_total
|Applied to [[Minecraft:player]]s when they start [[Minecraft:sneaking]], and removed when they stop.
|-
|-
|minecraft:zombie_random_spawn_bonus
|{{cd|minecraft:evil}}
| Generated upon spawning; a random number between 0.0 and 1.5.
|{{cd|[[#attack_damage|attack_damage]]}}
| follow_range (Operation {{MC/Cd|add_multiplied_total}}; [[Minecraft:Zombie]]s)
| 5.0
| add_value
|Applied to [[Minecraft:rabbit]]s when they become [[Minecraft:Rabbit#The Killer Bunny|the killer bunny]], and removed when they become a different variant.
|-
|-
|None/unknown
|{{cd|minecraft:suffocating}}
| Unknown; created when the client reads attribute data sent by the server.
|{{cd|[[#attack_damage|attack_damage]]}}
| varies
| -0.34
| add_multiplied_base
|Applied to [[Minecraft:strider]]s when they become cold outside of [[Minecraft:lava]], and removed when they return to lava.
|}
|}


Line 907: Line 1,263:
=== ''Java Edition'' ===
=== ''Java Edition'' ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|java}}
|{{HistoryLine|java}}
|{{MC/HistoryLine||1.6.1|dev=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.}}
|{{HistoryLine||1.6.1|dev=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.}}
|{{MC/HistoryLine|||dev=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).}}
|{{HistoryLine|||dev=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).}}
|{{MC/HistoryLine|||dev=13w18a|Replaced "Zombie reinforcement charge" with "Zombie reinforcement caller charge"}}
|{{HistoryLine|||dev=13w18a|Replaced "Zombie reinforcement charge" with "Zombie reinforcement caller charge"}}
|{{MC/HistoryLine|||dev=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".}}
|{{HistoryLine|||dev=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".}}
|{{MC/HistoryLine|||dev=13w23b|Added "potion.healthBoost" modifier.}}
|{{HistoryLine|||dev=13w23b|Added "potion.healthBoost" modifier.}}
|{{HistoryLine||1.7.2|dev=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 {{MC/Cmd|give}} and {{MC/Cmd|summon}} commands.}}
|{{HistoryLine||1.7.2|dev=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 {{cmd|give}} and {{cmd|summon}} commands.}}
|{{MC/HistoryLine||1.9|dev=15w34b|Added attack speed attribute.}}
|{{HistoryLine||1.9|dev=15w34b|Added attack speed attribute.}}
|{{MC/HistoryLine|||dev=15w36d|Added armor attribute.}}
|{{HistoryLine|||dev=15w36d|Added armor attribute.}}
|{{MC/HistoryLine|||dev=15w44b|Added luck attribute.}}
|{{HistoryLine|||dev=15w44b|Added luck attribute.}}
|{{MC/HistoryLine||1.9.1|dev=pre1|Added armorToughness attribute.}}
|{{HistoryLine||1.9.1|dev=pre1|Added armorToughness attribute.}}
|{{MC/HistoryLine||1.12|dev=pre1|Added flyingSpeed attribute.}}
|{{HistoryLine||1.12|dev=pre1|Added flyingSpeed attribute.}}
|{{MC/HistoryLine||1.14|dev=18w43a|Added attackKnockback attribute.}}
|{{HistoryLine||1.14|dev=18w43a|Added attackKnockback attribute.}}
|{{MC/HistoryLine||1.16|dev=20w06a|Knockback resistance is now a scale rather than probability.}}
|{{HistoryLine||1.16|dev=20w06a|Knockback resistance is now a scale rather than probability.}}
|{{HistoryLine|||dev=20w14a|Items and entities no longer keep unknown attributes.
|{{HistoryLine|||dev=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).
|Names of some attributes have been renamed to meet [[Minecraft:resource location]] requirements (i.e., lowercase separated by underscores instead of camel case).
|Renamed {{MC/Cd|generic.maxHealth|d=to|generic.max_health}}.
|Renamed {{cd|generic.maxHealth|d=to|generic.max_health}}.
|Renamed {{MC/Cd|zombie.spawnReinforcements|d=to|zombie.spawn_reinforcements}}.
|Renamed {{cd|zombie.spawnReinforcements|d=to|zombie.spawn_reinforcements}}.
|Renamed {{MC/Cd|horse.jumpStrength|d=to|horse.jump_strength}}.
|Renamed {{cd|horse.jumpStrength|d=to|horse.jump_strength}}.
|Renamed {{MC/Cd|generic.followRange|d=to|generic.follow_range}}.
|Renamed {{cd|generic.followRange|d=to|generic.follow_range}}.
|Renamed {{MC/Cd|generic.knockbackResistance|d=to|generic.knockback_resistance}}.
|Renamed {{cd|generic.knockbackResistance|d=to|generic.knockback_resistance}}.
|Renamed {{MC/Cd|generic.movementSpeed|d=to|generic.movement_speed}}.
|Renamed {{cd|generic.movementSpeed|d=to|generic.movement_speed}}.
|Renamed {{MC/Cd|generic.flyingSpeed|d=to|generic.flying_speed}}.
|Renamed {{cd|generic.flyingSpeed|d=to|generic.flying_speed}}.
|Renamed {{MC/Cd|generic.attackDamage|d=to|generic.attack_damage}}
|Renamed {{cd|generic.attackDamage|d=to|generic.attack_damage}}
|Renamed {{MC/Cd|generic.attackKnockback|d=to|generic.attack_knockback}}
|Renamed {{cd|generic.attackKnockback|d=to|generic.attack_knockback}}
|Renamed {{MC/Cd|generic.attackSpeed|d=to|generic.attack_speed}}
|Renamed {{cd|generic.attackSpeed|d=to|generic.attack_speed}}
|Renamed {{MC/Cd|generic.armorToughness|d=to|generic.armor_toughness}}.}}
|Renamed {{cd|generic.armorToughness|d=to|generic.armor_toughness}}.}}
|{{HistoryLine|||dev=20w17a|Added the {{MC/Cmd|attribute}} command, which can query and change attributes.}}
|{{HistoryLine|||dev=20w17a|Added the {{cmd|attribute}} command, which can query and change attributes.}}
|{{MC/HistoryLine||1.18.2|dev=22w03a|Knockback resistance no longer gives a 50% chance to ignore all knockback.}}
|{{HistoryLine||1.18.2|dev=22w03a|Knockback resistance no longer gives a 50% chance to ignore all knockback.}}
|{{HistoryLine||1.20.2|dev=23w31a|Added the {{MC/Cd|generic.max_absorption}} attribute.}}
|{{HistoryLine||1.20.2|dev=23w31a|Added the {{cd|generic.max_absorption}} attribute.}}
|{{HistoryLine||1.20.5|dev=23w51a|Added {{MC/Cd|generic.scale}} and {{MC/Cd|generic.step_height}} attributes for all living entities, as well as {{MC/Cd|generic.block_interaction_range}} and {{MC/Cd|generic.entity_interaction_range}} attributes for players.}}
|{{HistoryLine||1.20.5|dev=23w51a|Added {{cd|generic.scale}} and {{cd|generic.step_height}} attributes for all living entities, as well as {{cd|generic.block_interaction_range}} and {{cd|generic.entity_interaction_range}} attributes for players.}}
|{{HistoryLine|||dev=24w03a|Renamed {{MC/Cd|generic.block_interaction_range}} and {{MC/Cd|generic.entity_interaction_range}} to {{MC/Cd|player.block_interaction_range}} and {{MC/Cd|player.entity_interaction_range}}.}}
|{{HistoryLine|||dev=24w03a|Renamed {{cd|generic.block_interaction_range}} and {{cd|generic.entity_interaction_range}} to {{cd|player.block_interaction_range}} and {{cd|player.entity_interaction_range}}.}}
|{{HistoryLine|||dev=24w06a|Added {{MC/Cd|generic.gravity}}, {{MC/Cd|generic.safe_fall_distance}}, {{MC/Cd|generic.fall_damage_multiplier}} and {{MC/Cd|player.block_break_speed}} attributes.|Renamed {{MC/Cd|horse.jump_strength}} to {{MC/Cd|generic.jump_strength}}.}}
|{{HistoryLine|||dev=24w06a|Added {{cd|generic.gravity}}, {{cd|generic.safe_fall_distance}}, {{cd|generic.fall_damage_multiplier}} and {{cd|player.block_break_speed}} attributes.|Renamed {{cd|horse.jump_strength}} to {{cd|generic.jump_strength}}.}}
|{{HistoryLine||1.21|dev=24w18a|Added {{MC/Cd|generic.burning_time}}, {{MC/Cd|generic.explosion_knockback_resistance}}, {{MC/Cd|player.mining_efficiency}}, {{MC/Cd|generic.movement_efficiency}}, {{MC/Cd|generic.oxygen_bonus}}, {{MC/Cd|player.sneaking_speed}}, {{MC/Cd|player.submerged_mining_speed}}, {{MC/Cd|player.sweeping_damage_ratio}}and {{MC/Cd|generic.water_movement_efficiency}} attributes.|{{MC/Cd|generic.attack_knockback}} attribute now also works for players.}}
|{{HistoryLine||1.21|dev=24w18a|Added {{cd|generic.burning_time}}, {{cd|generic.explosion_knockback_resistance}}, {{cd|player.mining_efficiency}}, {{cd|generic.movement_efficiency}}, {{cd|generic.oxygen_bonus}}, {{cd|player.sneaking_speed}}, {{cd|player.submerged_mining_speed}}, {{cd|player.sweeping_damage_ratio}}and {{cd|generic.water_movement_efficiency}} attributes.|{{cd|generic.attack_knockback}} attribute now also works for players.}}
|{{HistoryLine|||dev=24w21a|The {{MC/Cd|uuid}} and {{MC/Cd|name}} arguments have been replaced with a singular {{MC/Cd|id}} argument.}}
|{{HistoryLine|||dev=24w21a|The {{cd|uuid}} and {{cd|name}} arguments have been replaced with a singular {{cd|id}} argument.}}
|{{HistoryLine||1.21.2|dev=24w33a|Added the {{MC/Cd|tempt_range}} attribute.
|{{HistoryLine||1.21.2|dev=24w33a|Added the {{cd|tempt_range}} attribute.
|Removed the {{MC/Cd|generic.}}, {{MC/Cd|player.}}, or {{MC/Cd|zombie.}} prefixes from all the attributes. Instead of using the resource locations, the argument instead just asks for the name of the attribute.}}
|Removed the {{cd|generic.}}, {{cd|player.}}, or {{cd|zombie.}} prefixes from all the attributes. Instead of using the resource locations, the argument instead just asks for the name of the attribute.}}
|{{HistoryLine||1.21.4|dev=24w44a|Players can no longer sprint while sneaking or crawling when having the {{MC/Cd|sneaking_speed}} attribute set to 0.8 or higher.<ref>{{bug|MC-278349}}</ref>}}
|{{HistoryLine||1.21.4|dev=24w44a|Players can no longer sprint while sneaking or crawling when having the {{cd|sneaking_speed}} attribute set to 0.8 or higher.<ref>{{bug|MC-278349}}</ref>}}
|{{HistoryLine||1.21.6|exp=Locator Bar|dev=25w15a|Added {{MC/Cd|waypoint_transmit_range}} and {{MC/Cd|waypoint_receive_range}} attributes.}}
|{{HistoryLine||1.21.6|exp=Locator Bar|dev=25w15a|Added {{cd|waypoint_transmit_range}} and {{cd|waypoint_receive_range}} attributes.}}
|{{HistoryLine||1.21.6|dev=25w15a|Added {{MC/Cd|camera_distance}} attribute.}}
|{{HistoryLine||1.21.6|dev=25w15a|Added {{cd|camera_distance}} attribute.}}
|{{HistoryLine|||dev=25w17a|{{MC/Cd|waypoint_transmit_range}} and {{MC/Cd|waypoint_receive_range}} are no longer experimental.}}
|{{HistoryLine|||dev=25w17a|{{cd|waypoint_transmit_range}} and {{cd|waypoint_receive_range}} are no longer experimental.}}
|{{MC/HistoryLine|java upcoming}}
|{{HistoryLine|java upcoming}}
|{{HistoryLine||26.2|dev=snap 1|Added {{MC/Cd|bounciness}}, {{MC/Cd|friction_modifier}}, and {{MC/Cd|air_drag_modifier}} attributes.}}
|{{HistoryLine||26.2|dev=snap1|Added {{cd|bounciness}}, {{cd|friction_modifier}}, and {{cd|air_drag_modifier}} attributes.|The minimum value of {{cd|minecraft:knockback_resistance}} is now {{cd|-2.0}}.}}
|{{MC/HistoryLine|combat java}}
|{{HistoryLine|||dev=snap 4|Added {{cd|nameplate_distance}} and {{cd|below_name_distance}} attributes.}}
|{{HistoryLine||1.14.3|Added {{MC/Cd|generic.attackReach}} attribute.}}
|{{HistoryLine|||dev=snap 5|Renamed {{cd|nameplate_distance}} to {{cd|name_tag_distance}}.}}
|{{HistoryLine||6|Renamed {{MC/Cd|generic.attackReach|d=to|generic.attack_reach}}.}}
|{{HistoryLine|combat java}}
|{{HistoryLine||1.14.3|Added {{cd|generic.attackReach}} attribute.}}
|{{HistoryLine||6|Renamed {{cd|generic.attackReach|d=to|generic.attack_reach}}.}}
}}
}}


=== ''Bedrock Edition'' ===
=== ''Bedrock Edition'' ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|pocket alpha}}
|{{HistoryLine|pocket alpha}}
|{{MC/HistoryLine||v0.12.1|dev=build 1|Added attributes.}}
|{{HistoryLine||v0.12.1|dev=build 1|Added attributes.}}
}}
}}


=== Legacy Console Edition ===
=== Legacy Console Edition ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|console}}
|{{HistoryLine|console}}
|{{MC/HistoryLine||xbox=TU19|xbone=CU7|ps3=1.12|psvita=1.12|ps4=1.12|wiiu=Patch 1|switch=1.0.1|Added attributes.}}
|{{HistoryLine||xbox=TU19|xbone=CU7|ps3=1.12|psvita=1.12|ps4=1.12|wiiu=Patch 1|switch=1.0.1|Added attributes.}}
|{{MC/HistoryLine||xbox=TU36|xbone=CU25|ps3=1.28|psvita=1.28|ps4=1.28|wiiu=Patch 7|switch=1.0.1|Attributes of items are shown above the HUD when switching items in the hotbar if the item has less than 3 enchantments.}}
|{{HistoryLine||xbox=TU36|xbone=CU25|ps3=1.28|psvita=1.28|ps4=1.28|wiiu=Patch 7|switch=1.0.1|Attributes of items are shown above the [[Minecraft:HUD]] when switching items in the hotbar if the item has less than 3 enchantments.}}
|{{MC/HistoryLine||xbox=TU46|xbone=CU36|ps3=1.38|psvita=1.38|ps4=1.38|wiiu=Patch 15|switch=1.0.1|Added armor and luck attributes.}}
|{{HistoryLine||xbox=TU46|xbone=CU36|ps3=1.38|psvita=1.38|ps4=1.38|wiiu=Patch 15|switch=1.0.1|Added armor and luck attributes.}}
|{{HistoryLine||xbox=TU54|xbone=CU44|ps3=1.52|psvita=1.52|ps4=1.52|wiiu=Patch 24|switch=1.0.4|Added flying speed attribute.{{MC/Verify|May be possible to use through modding/world editing.}}}}
|{{HistoryLine||xbox=TU54|xbone=CU44|ps3=1.52|psvita=1.52|ps4=1.52|wiiu=Patch 24|switch=1.0.4|Added flying speed attribute.{{verify|May be possible to use through modding/world editing.}}}}
}}
}}


==Issues==
==Issues==
{{MC/Issue list|projects=MC}}
{{issue list|projects=MC}}


== References ==
== References ==
{{MC/Reflist}}
{{reflist}}


== Navigation ==
== Navigation ==
{{MC/Navbox gameplay}}
{{Navbox gameplay}}


de:Attribut
[[Minecraft:de:Attribut]]
es:Atributo
[[Minecraft:es:Atributo]]
fr:Attribut
[[Minecraft:fr:Attribut]]
ja:属性
[[Minecraft:ja:属性]]
ko:속성
[[Minecraft:ko:속성]]
pl:Atrybuty
[[Minecraft:pl:Atrybuty]]
pt:Atributo
[[Minecraft:pt:Atributo]]
zh:属性
[[Minecraft:zh:属性]]

Latest revision as of 11:01, 6 June 2026

Template:Exclusive

Attributes control certain numeric properties of Minecraft:players, Minecraft:mobs, and Minecraft:armor stands. Every entity has a base value for each of its attributes, and modifiers that determine the final value.

List of attributes

Each attribute is identified with a Minecraft: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.


Template:Anchor

Air Drag Modifier

Template:Infobox attribute

This attribute determines the air drag an entity experiences.Template:Info neededTemplate:Upcoming


Template:Anchor

Armor

Template:Infobox attribute

This attribute determines the number of Minecraft:armor points an entity has.

Entity Base value
Template:EntityLink Template:Armor
Template:EntityLink Template:Armor
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:Armor


Template:Anchor

Armor Toughness

Template:Infobox attribute

This attribute determines an entity's Minecraft:armor toughness.
Template:Anchor

Attack Damage

Template:Infobox attribute

This attribute determines the Minecraft:damage dealt by an entity's Minecraft:melee attack. Only the entities listed below have this attribute.

Entity Base value
Template:EntityLink Template:Hp
Template:EntityLink Template:Hp
Template:EntityLink Template:Hp
Template:EntityLink Template:Hp
Template:EntityLink Template:Hp
Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:Hp + Size
Template:EntityLink Template:EntityLink Template:Hp × Size


Template:Anchor

Attack Knockback

Template:Infobox attribute

This attribute determines additional Minecraft:knockback applied to an entity's Minecraft:melee attack.Template:Info needed

Entity Base value
Template:EntityLink Template:EntityLink 1.5
Template:EntityLink Template:EntityLink 1


Template:Anchor

Attack Speed

Template:Infobox attribute This attribute determines the rate at which a Minecraft:player's attack cooldown recharges. Its value is the number of full-strength attacks per second. Only players have this attribute.


Template:Anchor

Nameplate Score Distance

Template:Infobox attribute This attribute determines the distance within which a Minecraft:scoreboard objective with a Template:Cd display slot is visible above an entity.Template:Upcoming


Template:Anchor

Block Break Speed

Template:Infobox attribute This attribute multiplies the speed at which a Minecraft:player breaks blocks. Only players have this attribute.


Template:Anchor

Block Interaction Range

Template:Infobox attribute This attribute determines the block Minecraft:interaction range for players. Only players have this attribute.


Template:Anchor

Bounciness

Template:Infobox attribute This attribute determines the restitution of motion an entity is given when landing on the ground.Template:Upcoming


Template:Anchor

Burning Time

Template:Infobox attribute This attribute multiplies the duration for which an entity should remain on Minecraft:fire after being ignited.


Template:Anchor

Camera Distance

Template:Infobox attribute This attribute determines the distance at which the camera is placed away from the player or spectated entity when in a Minecraft: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
Template:EntityLink Template:EntityLink 8
Template:EntityLink Template:EntityLink 16


Template:Anchor

Entity Interaction Range

Template:Infobox attribute This attribute determines the entity Minecraft:interaction range for players.


Template:Anchor

Explosion Knockback Resistance

Template:Infobox attribute This attribute determines the proportion of knockback from Minecraft:explosions an entity resists. A value of 1 eliminates the knockback.


Template:Anchor

Fall Damage Multiplier

Template:Infobox attribute This attribute multiplies the amount of Minecraft:fall damage an entity receives.

Entity Base value
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink 0.5


Template:Anchor

Flying Speed

Template:Infobox attribute This attribute determines the flying speed of an entity.Template:Info needed Only the entities listed below have this attribute.

Entity Base value
Template:EntityLink Template:EntityLink 0.6
Template:EntityLink 0.1
Template:EntityLink 0.06
Template:EntityLink 0.05
Template:EntityLink 0.4


Template:Anchor

Mob Follow Range

Template:Infobox attribute 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
Template:EntityLink 100
Template:EntityLink 64
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink 48
Template:EntityLink Template:EntityLink 40
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink 35
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink 32
Template:EntityLink Template:EntityLink 24
Template:EntityLink 20
Template:EntityLink 18
Template:EntityLink Template:EntityLink Template:EntityLink 12
All other mobs 16


Template:Anchor

Friction Modifier

Template:Infobox attribute This attribute determines the friction experienced by an entity.Template:Info neededTemplate:Upcoming


Template:Anchor

Gravity

Template:Infobox attribute This attribute determines the gravity affecting an entity in blocks per tick squared.


Template:Anchor

Jump Strength

Template:Infobox attribute This attribute determines the initial vertical velocity of an entity when they jump, in blocks per tick.

Entity Base value
Template:EntityLink Template:EntityLink Template:EntityLink Random
(0.4–1.0)
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink 0.5


Template:Anchor

Knockback Resistance

Template:Infobox attribute

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 Minecraft:explosions.<ref>Template:Bug</ref>

Entity Base value
Template:EntityLink Template:EntityLink 1
Template:EntityLink 0.75
Template:EntityLink Template:EntityLink 0.6
Template:EntityLink Template:EntityLink 0.6


Template:Anchor

Luck

Template:Infobox attribute

This attribute affects the results of Minecraft: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.


Template:Anchor

Max Absorption

Template:Infobox attribute This attribute determines an entity's maximum Minecraft:absorption.


Template:Anchor

Max Health

Template:Infobox attribute This attribute determines an entity's maximum Minecraft:health. It determines the highest health they may be healed to.

Entity Base value
Template:EntityLink Template:Hp
Template:EntityLink Template:Hp
Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:Hp
Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:Hp
Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:Hp
Template:EntityLink Template:Hp
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Random
(Template:Hp - Template:Hp)
Template:EntityLink Template:EntityLink Template:Hp × Size × Size
Template:EntityLink Template:Hp × Size


Template:Anchor

Mining Efficiency

Template:Infobox attribute This attribute increases the speed at which a Minecraft:player breaks blocks. Only players have this attribute.


Template:Anchor

Movement Efficiency

Template:Infobox attribute This attribute is a factor to improve walking on terrain that slows down movement, such as Minecraft:soul sand. A value of 1 removes the slowdown.


Template:Anchor

Speed

Template:Infobox attribute 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 Minecraft:Entity#Formulas.)

Entity Base value
Template:EntityLink 1.2
Template:EntityLink 1.1
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink 1
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink 0.7
Template:EntityLink 0.63
Template:EntityLink 0.6
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink 0.5
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink 0.35
Template:EntityLink 0.4
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink 0.3
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink 0.25
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink 0.23
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink 0.2
Template:EntityLink Template:EntityLink Template:EntityLink 0.175
Template:EntityLink 0.15
Template:EntityLink 0.14
Template:EntityLink Template:EntityLink Template:EntityLink 0.1
Template:EntityLink Template:EntityLink 0.09
Template:EntityLink (lazy) 0.07
Template:EntityLink 0.05
Template:EntityLink Template:EntityLink Template:EntityLink Random (0.1125 – 0.3375)
Template:EntityLink Random (0.2135 – 0.2846)
Template:EntityLink Template:EntityLink 0.2 + (0.1 × Size)


Template:Anchor

Name Tag Distance

Template:Infobox attribute This attribute determines the distance within which an entity's Minecraft:custom name is visible.Template:Upcoming


Template:Anchor

Oxygen Bonus

Template:Infobox attribute This attribute determines the chance that an entity's remaining air decreases while underwater in any given game tick. The chance is given by Template:Frac.


Template:Anchor

Safe Fall Distance

Template:Infobox attribute This attribute determines the distance in blocks an entity can fall before Minecraft:fall damage starts to accumulate.

Entity Base value
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink 6
Template:EntityLink 5


Template:Anchor

Scale

Template:Infobox attribute This attribute multiplies an entity's size and Minecraft:hitbox dimensions.


Template:Anchor

Sneaking Speed

Template:Infobox attribute This attribute multiplies a player's movement speed when Minecraft:sneaking or Minecraft:crawling. Only players have this attribute.


Template:Anchor

Zombie Reinforcements

Template:Infobox attribute This attribute determines the chance for a Minecraft:zombie to spawn another zombie when attacked. Only the entities listed below have this attribute.

Entity Base value
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Random
(0 – 0.1)
Template:EntityLink 0<ref>Template:Bug</ref>


Template:Anchor

Step Height

Template:Infobox attribute This attribute determines the maximum number of blocks that an entity can step up without jumping. Minecraft:Sneaking prevents drops from heights that are higher than this value.<ref>Template:Bug</ref>

Entity Base value
Template:EntityLink Template:EntityLink 1.5
Template:EntityLink 1.0625
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink 1
Template:EntityLink 0<ref>Template:Bug</ref>


Template:Anchor

Submerged Mining Speed

Template:Infobox attribute This attribute multiplies a player's mining speed when underwater. Only players have this attribute.


Template:Anchor

Sweeping Damage Ratio

Template:Infobox attribute This attribute determines the proportion of the base attack damage dealt to secondary targets when a player performs a Minecraft:sweep attack. This is in addition to the base damage of the sweep damage itself. Only players have this attribute.


Template:Anchor

Mob Tempt Range

Template:Infobox attribute

This attribute determines the range in blocks in which a mob can be tempted, following a player holding a specific item.

Entity Base value
Template:EntityLink 16
Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink 10
Template:EntityLink 8


Template:Anchor

Water Movement Efficiency

Template:Infobox attribute This attribute determines movement speed and drag when submerged.Template:Info needed


Template:Anchor

Waypoint Receive Range

Template:Infobox attribute This attribute determines the maximum distance from a player to a waypoint at which the waypoint is displayed on the Minecraft:locator bar. Only players have this attribute.

Entity Base value
Template:EntityLink 60,000,000


Template:Anchor

Waypoint Transmit Range

Template:Infobox attribute This attribute determines the distance at which an entity displays as a waypoint on the Minecraft:locator bar.

Entity Base value
Template:EntityLink 60,000,000


Modifiers

Attribute modifiers are persistent increases or decreases to an attribute's base value by preset operations.

Each modifier has a Minecraft: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

A modifier may perform one of three possible operations:

Operation Description
add_value Adds all of the modifiers' amounts to the base attribute.

<math>\text{Total} = \text{Base} + \text{Amount}_1 + \text{Amount}_2 + \ldots + \text{Amount}_n</math>

For example, applying two add_value modifiers with amounts of 2 and 4, to attribute base of 3:

<math>\text{Total} = 3 + 2 + 4 = 9</math>

add_multiplied_base Multiplies the base attribute by (1 + sum of modifiers' amounts).

<math>\text{Total} = \text{Base} \times (1 + \text{Amount}_1 + \text{Amount}_2 + \ldots + \text{Amount}_n)</math>Template:Note

For example, applying two add_multiplied_base modifiers with amounts of 2 and 4, to attribute base of 3:

<math>\text{Total} = 3 \times (1 + 2 + 4) = 3 \times 7 = 21</math>

add_multiplied_total Multiplies the base attribute by (1 + modifiers' amounts) for every modifier.

<math>\text{Total} = \text{Base} \times (1 + \text{Amount}_1) \times (1 + \text{Amount}_2) \times \ldots \times (1 + \text{Amount}_n)</math>

For example, applying two add_multiplied_total modifiers with amounts of 2 and 4, to attribute base of 3:

<math>\text{Total} = 3 \times (1 + 2) \times (1 + 4) = 3 \times 3 \times 5 = 45</math>

If multiple modifiers are applied to an attribute, the game first executes all Template:Cd modifiers, then all Template:Cd modifiers, and finally all Template:Cd 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.

<references group="note"/>

Applying modifiers

Various systems in the game add and remove modifiers.

Commands

The Template:Command command can add or remove specific modifiers, including custom ones. Except for players, it is also possible add, remove and custom with Template:Cmd.

Items

The [[Minecraft:Data_component_format#attribute_modifiers|Template:Cd 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
Template:Cd Template:Cd Template:ItemLink Template:ItemLink Template:ItemLink Template:ItemLink Template:ItemLink Template:ItemLink Template:ItemLink Template:ItemLink
Template:Cd Template:Cd Template:ItemLink Template:ItemLink Template:ItemLink Template:ItemLink Template:ItemLink Template:ItemLink Template:ItemLink Template:ItemLink
Template:Cd Template:Cd
Template:Cd
Template:Cd
Template:ItemLink
Template:Cd Template:Cd
Template:Cd
Template:Cd
Template:ItemLink
Template:Cd Template:Cd
Template:Cd
Template:Cd
Template:ItemLink
Template:Cd Template:Cd
Template:Cd
Template:Cd
Template:ItemLink
Template:Cd Template:Cd
Template:Cd
Template:Cd
Template:ItemLink Template:ItemLink Template:ItemLink
Template:Cd Template:Cd Template:BlockLink Template:BlockLink

Enchantments

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 Template:Cd followed by the name of the slot the enchantment is active in.

Modifier ID Attribute Minecraft:Level-based value Operation Enchantment
Template:Cd Template:Cd

type: Template:Cd,
base: 4.0,
per_level_above_first: 4.0

add_multiplied_total Minecraft:Aqua Affinity
Template:Cd Template:Cd

type: Template:Cd,
base: 0.15,
per_level_above_first: 0.15

add_value Minecraft:Blast Protection
Template:Cd Template:Cd

type: Template:Cd,
base: 0.33333334,
per_level_above_first: 0.33333334

add_value Minecraft:Depth Strider
Template:Cd Template:Cd

type: Template:Cd,
added: 1.0

add_value Minecraft:Efficiency
Template:Cd Template:Cd type: Template:Cd,

base: -0.15,
per_level_above_first: -0.15

add_multiplied_base Minecraft:Fire Protection
Template:Cd Template:Cd type: Template:Cd,

base: 1.0,
per_level_above_first: 1.0

add_value Minecraft:Respiration
Template:Cd Template:Cd type: Template:Cd,

base: 0.0405,
per_level_above_first: 0.0105

add_value Minecraft:Soul Speed
Template:Cd 1.0 add_value
Template:Cd Template:Cd

Template:Collapse

add_value Minecraft:Sweeping Edge
Template:Cd Template:Cd

type: Template:Cd,
base: 0.15,
per_level_above_first: 0.15

add_value Minecraft:Swift Sneak

Effects

Some Minecraft: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 Minecraft:effect potency (in other words, multiplied by Template:Cd).

Modifier ID Attribute Value Operation Effect
Template:Cd Template:Cd 0.2 add_multiplied_total Template:EffectLink
Template:Cd Template:Cd -0.15 add_multiplied_total Template:EffectLink
Template:Cd Template:Cd 0.1 add_multiplied_total Template:EffectLink
Template:Cd Template:Cd -0.1 add_multiplied_total Template:EffectLink
Template:Cd Template:Cd 3.0 add_value Template:EffectLink
Template:Cd Template:Cd -4.0 add_value Template:EffectLink
Template:Cd Template:Cd 1.0 add_value Template:EffectLink
Template:Cd Template:Cd -1.0 add_multiplied_total Template:EffectLink
Template:Cd Template:Cd 4.0 add_value Template:EffectLink
Template:Cd Template:Cd 4.0 add_value Template:EffectLink
Template:Cd Template:Cd 1.0 add_value Template:EffectLink
Template:Cd Template:Cd -1.0 add_value Template:EffectLink

Sulfur Cube Archetypes

Template:Missing information Minecraft:Sulfur cube archetype definitions define modifiers that are automatically added to a Minecraft:sulfur cube when one of the specified items is given to it, and removed when it is removed.

See Minecraft:sulfur cube archetype for the values.

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

Modifier ID Attribute Operation
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd add_value
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd add_value
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd add_multiplied_total
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd
Template:Cd add_multiplied_total

Hardcoded

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

Modifier ID Attribute Value Operation Details
Template:Cd Template:Cd Template:Cd add_value Applied randomly to all mobs when they spawn.
Template:Cd Template:Cd Template:Cd add_value Applied randomly to all Minecraft:zombies when they spawn.
Template:Cd Template:Cd Template:Cd add_multiplied_total Applied randomly to some Minecraft:zombies when they spawn. Only applies if greater than 1.
Template:Cd Template:Cd Template:Cd add_value Applied randomly to some Minecraft:zombies to turn them into "leaders".
Template:Cd Template:Cd add_multiplied_total
Template:Cd Template:Cd Template:Cd add_value Applied to a Minecraft:zombie when it successfully spawns a reinforcement. The Template:Cd is the value of the modifier previously, or Template:Cd if it does not exist.
Template:Cd Template:Cd -0.05 add_value Applied to Minecraft:zombie reinforcements when they spawn.
Template:Cd Template:Cd Template:EntityLink: 0.5
Template:EntityLink: 0.2
add_multiplied_base Applied to Minecraft:zombies and Minecraft:piglins as babies, and removed when they are not babies.
Template:Cd Template:Cd Template:EntityLink: 0.15
Template:EntityLink: 0.05
add_value Applied to Minecraft:endermen when they acquire a target, and removed when they lose it.
Applied to adult Minecraft:zombified piglins when they get angry, and removed when they stop being angry.
Template:Cd Template:Cd 20.0 add_value Applied to Minecraft:shulkers when their shell fully closes, and removed when it opens.
Template:Cd Template:Cd 0.5 add_value Applied to Minecraft:players when they enter Minecraft:creative mode, and removed when leaving creative mode.
Template:Cd Template:Cd 2.0 add_value Applied to Minecraft:players when they enter Minecraft:creative mode, and removed when leaving creative mode.
Template:Cd Template:Cd -0.25 add_value Applied to Minecraft:witches when they start drinking a Minecraft:potion, and removed when they finish drinking it.
Template:Cd Template:Cd Template:Cd add_value Applied to all Minecraft:living entities while inside Minecraft:powder snow, and removed when the frost effect wears off. The Template:Cd is the float Template:Cd.
Template:Cd Template:Cd 0.3 add_multiplied_total Applied to all living entities when they start Minecraft:sprinting, and removed when they stop.
Template:Cd Template:Cd -1.0 add_multiplied_total Applied to Minecraft:players when they start Minecraft:sneaking, and removed when they stop.
Template:Cd Template:Cd 5.0 add_value Applied to Minecraft:rabbits when they become the killer bunny, and removed when they become a different variant.
Template:Cd Template:Cd -0.34 add_multiplied_base Applied to Minecraft:striders when they become cold outside of Minecraft:lava, and removed when they return to lava.

History

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

Legacy Console Edition

Template:HistoryTable

Issues

Template:Issue list

References

Template:Reflist

Navigation

Template:Navbox gameplay

Minecraft:de:Attribut Minecraft:es:Atributo Minecraft:fr:Attribut Minecraft:ja:属性 Minecraft:ko:속성 Minecraft:pl:Atrybuty Minecraft:pt:Atributo Minecraft:zh:属性