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)
Sync: new page from Minecraft
 
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
(One intermediate revision 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}}
{{exclusive|java}}
{{MC/Exclusive|java}}


An '''attribute''' is a value that determines certain properties of [[Minecraft:mob]]s, [[Minecraft:armor stand]]s, and [[Minecraft:player]]s. Attributes also have modifiers that adjust the strength of their effects.
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.


== Applying attributes ==
== Applying attributes ==


Attributes can be applied directly to living entities using the {{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:
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:


{{cmd|long=1|attribute @p minecraft:luck base set 1024 }}
{{MC/Cmd|long=1|attribute @p minecraft:luck base set 1024 }}


After it's modified, it can then be reset to the default value (which is 0.0 for {{attr|minecraft:luck}} attribute):
After it's modified, it can then be reset to the default value (which is 0.0 for {{MC/Attr|minecraft:luck}} attribute):


{{cmd|long=1|attribute @p minecraft:luck base reset}}
{{MC/Cmd|long=1|attribute @p minecraft:luck base reset}}


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:
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:
Line 20: Line 20:
=== Item modifiers ===
=== Item modifiers ===


Attributes can also be applied as attribute modifiers on items by using [[Minecraft: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 [[Minecraft:resource location]] to identify the modifier.
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:
The following command gives the player a netherite sword that deals {{hp|20}} extra damage:
Line 27: Line 27:


== Attributes ==
== Attributes ==
{{expand section|Add all content from the infoboxes to the attribute descriptions. Add more details about how each attribute works to the attribute descriptions.}}
{{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 [[Minecraft: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.
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 [[Minecraft:namespaced identifier]]s. 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.
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.
These attributes are found on all living and undead entities, including players.


{{-}}{{anchor|armor}}
{{MC/-}}{{MC/Anchor|armor}}
=== Armor ===
=== Armor ===
{{Infobox attribute
{{Infobox attribute
Line 44: Line 44:
}}
}}


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


{{-}}{{anchor|armor_toughness}}
{{MC/-}}{{MC/Anchor|armor_toughness}}
=== Armor toughness ===
=== Armor toughness ===
{{Infobox attribute
{{Infobox attribute
Line 70: Line 70:
}}
}}


This attribute defines [[Minecraft:armor toughness]].
This attribute defines armor toughness.
{{-}}{{anchor|attack_damage}}
{{MC/-}}{{MC/Anchor|attack_damage}}


=== Attack damage ===
=== Attack damage ===
Line 87: Line 87:
! Entity !! Default value
! Entity !! Default value
|-
|-
| {{EntityLink|Giant}} || {{hp|50}}
| {{MC/Entitylink|Giant}} || {{hp|50}}
|-
|-
| {{EntityLink|Warden}} || {{hp|30}}
| {{MC/Entitylink|Warden}} || {{hp|30}}
|-
|-
|{{EntityLink|Iron Golem}} || {{hp|15}}
|{{MC/Entitylink|Iron Golem}} || {{hp|15}}
|-
|-
| {{EntityLink|Ravager}} || {{hp|12}}
| {{MC/Entitylink|Ravager}} || {{hp|12}}
|-
|-
| {{EntityLink|Frog}} || {{hp|10}}
| {{MC/Entitylink|Frog}} || {{hp|10}}
|-
|-
| {{EntityLink|Elder Guardian}} || {{hp|8}}
| {{MC/Entitylink|Elder Guardian}} || {{hp|8}}
|-
|-
| {{EntityLink|Enderman}}<br>{{EntityLink|Piglin Brute}} || {{hp|7}}
| {{MC/Entitylink|Enderman}}<br>{{MC/Entitylink|Piglin Brute}} || {{hp|7}}
|-
|-
| {{EntityLink|Blaze}}<br>{{EntityLink|Guardian}}<br>{{EntityLink|Hoglin}}<br>{{EntityLink|Panda}}<br>{{EntityLink|Phantom}}<br>{{EntityLink|Polar Bear}}<br>{{EntityLink|Zoglin}}
| {{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}}
| {{hp|6}}
| {{hp|6}}
|-
|-
| {{EntityLink|Piglin}}<br>{{EntityLink|Pillager}}<br>{{EntityLink|Vindicator}}<br>{{EntityLink|Zombified Piglin}}
| {{MC/Entitylink|Piglin}}<br>{{MC/Entitylink|Pillager}}<br>{{MC/Entitylink|Vindicator}}<br>{{MC/Entitylink|Zombified Piglin}}
| {{hp|5}}
| {{hp|5}}
|-
|-
| {{EntityLink|Vex}} || {{hp|4}}
| {{MC/Entitylink|Vex}} || {{hp|4}}
|-
|-
| {{EntityLink|Cat}}<br>{{EntityLink|Dolphin}}<br>{{EntityLink|Drowned}}<br>{{EntityLink|Husk}}<br>{{EntityLink|Ocelot}}<br>{{EntityLink|Zombie}}<br>{{EntityLink|Zombie Villager}}
| {{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}}
| {{hp|3}}
| {{hp|3}}
|-
|-
| {{EntityLink|Silverfish}}<br>{{EntityLink|Player}}
| {{MC/Entitylink|Silverfish}}<br>{{MC/Entitylink|Player}}
| {{hp|1}}
| {{hp|1}}
|-
|-
| {{EntityLink|Snow Golem}}
| {{MC/Entitylink|Snow Golem}}
| {{hp|0}}
| {{hp|0}}
|-
|-
Line 125: Line 125:
|}
|}


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


=== Attack knockback ===
=== Attack knockback ===
Line 135: Line 135:
}}
}}


This attribute defines the knockback applied to attacks.{{info needed|in which unit?}} It applies only to mobs with physical attacks and players.
This attribute defines the knockback applied to attacks.{{MC/Info needed|in which unit?}} It applies only to mobs with physical attacks and players.


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


{{-}}{{anchor|attack_reach|generic.attack_reach}}
{{MC/-}}{{MC/Anchor|attack_reach|generic.attack_reach}}


=== Attack reach ===
=== Attack reach ===
Line 159: Line 159:
| max = 6
| max = 6
}}
}}
{{in development|java|drop=Java Edition Combat Tests|section=1}}
{{MC/In development|java|drop=Java Edition Combat Tests|section=1}}


This attribute determines the reach at which players can attack entities. It does not affect the interaction range.
This attribute determines the reach at which players can attack entities. It does not affect the interaction range.


{{-}}{{anchor|attack_speed}}
{{MC/-}}{{MC/Anchor|attack_speed}}
=== Attack speed ===
=== Attack speed ===
{{Infobox attribute
{{Infobox attribute
Line 173: Line 173:
This attribute determines recharging rate of attack strength. Its value is the number of full-strength attacks per second.
This attribute determines recharging rate of attack strength. Its value is the number of full-strength attacks per second.


{{-}}{{anchor|block_break_speed}}
{{MC/-}}{{MC/Anchor|block_break_speed}}
=== Block break speed ===
=== Block break speed ===
{{Infobox attribute
{{Infobox attribute
Line 183: Line 183:
This attribute determines the speed at which the player can break blocks as a multiplier.
This attribute determines the speed at which the player can break blocks as a multiplier.


{{-}}{{anchor|block_interaction_range}}
{{MC/-}}{{MC/Anchor|block_interaction_range}}
=== Block interaction range ===
=== Block interaction range ===
{{Infobox attribute
{{Infobox attribute
Line 191: Line 191:
| max = 64
| max = 64
}}
}}
This attribute determines the block [[Minecraft:interaction range]] for players in blocks.
This attribute determines the block interaction range for players in blocks.


In [[Minecraft: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.
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|burning_time}}
{{MC/-}}{{MC/Anchor|burning_time}}
=== Burning time ===
=== Burning time ===
{{Infobox attribute
{{Infobox attribute
Line 205: Line 205:
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 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.


{{-}}{{anchor|camera_distance}}
{{MC/-}}{{MC/Anchor|camera_distance}}
=== Camera distance ===
=== Camera distance ===
{{Infobox attribute
{{Infobox attribute
Line 218: Line 218:
! Entity !! Default value
! Entity !! Default value
|-
|-
| {{EntityLink|Ghast}}<br>{{EntityLink|Happy Ghast}}
| {{MC/Entitylink|Ghast}}<br>{{MC/Entitylink|Happy Ghast}}
| 8
| 8
|-
|-
| {{EntityLink|Giant}}<br>{{EntityLink|Ender Dragon}}
| {{MC/Entitylink|Giant}}<br>{{MC/Entitylink|Ender Dragon}}
| 16
| 16
|-
|-
| ''All other entities''{{verify|Was anything missed?}}
| ''All other entities''{{MC/Verify|Was anything missed?}}
| 4
| 4
|}
|}


{{-}}{{anchor|entity_interaction_range}}
{{MC/-}}{{MC/Anchor|entity_interaction_range}}
=== Entity interaction range ===
=== Entity interaction range ===
{{Infobox attribute
{{Infobox attribute
Line 236: Line 236:
| max = 64
| max = 64
}}
}}
This attribute determines the entity [[Minecraft:interaction range]] for players in blocks.
This attribute determines the entity interaction range for players in blocks.


In [[Minecraft: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.
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.


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


{{-}}{{anchor|fall_damage_multiplier}}
{{MC/-}}{{MC/Anchor|fall_damage_multiplier}}
=== Fall damage multiplier ===
=== Fall damage multiplier ===
{{Infobox attribute
{{Infobox attribute
Line 258: Line 258:
| max = 100
| max = 100
}}
}}
This attribute determines the amount of [[Minecraft:fall damage]] an entity takes as a multiplier.
This attribute determines the amount of fall damage an entity takes as a multiplier.


{| class=wikitable
{| class=wikitable
! Entity !! Default value
! Entity !! Default value
|-
|-
| {{EntityLink|Camel}}<br>{{EntityLink|Donkey}}<br>{{EntityLink|Horse}}<br>{{EntityLink|Llama}}<br>{{EntityLink|Mule}}<br>{{EntityLink|Skeleton Horse}}<br>{{EntityLink|Trader Llama}}<br>{{EntityLink|Zombie Horse}}
| {{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}}
| 0.5
| 0.5
|-
|-
Line 269: Line 269:
|}
|}


{{-}}{{anchor|flying_speed}}
{{MC/-}}{{MC/Anchor|flying_speed}}
=== Flying speed ===
=== Flying speed ===
{{Infobox attribute
{{Infobox attribute
Line 277: Line 277:
| max = 1024
| max = 1024
}}
}}
This attribute is a flight speed modifier in some unknown metric.{{info needed}}
This attribute is a flight speed modifier in some unknown metric.{{MC/Info needed}}


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


{{-}}{{anchor|follow_range}}
{{MC/-}}{{MC/Anchor|follow_range}}
=== Follow range ===
=== Follow range ===
{{Infobox attribute
{{Infobox attribute
Line 305: Line 305:
! Entity !! Default value
! Entity !! Default value
|-
|-
| {{EntityLink|Ghast}} || 100
| {{MC/Entitylink|Ghast}} || 100
|-
|-
| {{EntityLink|Enderman}} || 64
| {{MC/Entitylink|Enderman}} || 64
|-
|-
| {{EntityLink|Allay}}<br>{{EntityLink|Bee}}<br>{{EntityLink|Blaze}}<br>{{EntityLink|Villager}}
| {{MC/Entitylink|Allay}}<br>{{MC/Entitylink|Bee}}<br>{{MC/Entitylink|Blaze}}<br>{{MC/Entitylink|Villager}}
| 48
| 48
|-
|-
| {{EntityLink|Llama}}<br>{{EntityLink|Wither}}
| {{MC/Entitylink|Llama}}<br>{{MC/Entitylink|Wither}}
| 40
| 40
|-
|-
| {{EntityLink|Zombie}}<br>{{EntityLink|Husk}}<br>{{EntityLink|Drowned}}<br>{{EntityLink|Zombie Villager}}<br>{{EntityLink|Zombified Piglin}}
| {{MC/Entitylink|Zombie}}<br>{{MC/Entitylink|Husk}}<br>{{MC/Entitylink|Drowned}}<br>{{MC/Entitylink|Zombie Villager}}<br>{{MC/Entitylink|Zombified Piglin}}
| 35
| 35
|-
|-
| {{EntityLink|Fox}}<br>{{EntityLink|Pillager}}<br>{{EntityLink|Ravager}}
| {{MC/Entitylink|Fox}}<br>{{MC/Entitylink|Pillager}}<br>{{MC/Entitylink|Ravager}}
| 32
| 32
|-
|-
| {{EntityLink|Breeze}} || 24
| {{MC/Entitylink|Breeze}} || 24
|-
|-
| {{EntityLink|Polar Bear}} || 20
| {{MC/Entitylink|Polar Bear}} || 20
|-
|-
| {{EntityLink|Illusioner}} || 18
| {{MC/Entitylink|Illusioner}} || 18
|-
|-
| {{EntityLink|Evoker}}<br>{{EntityLink|Vindicator}}
| {{MC/Entitylink|Evoker}}<br>{{MC/Entitylink|Vindicator}}
| 12
| 12
|-
|-
Line 333: Line 333:
|}
|}


{{-}}{{anchor|gravity}}
{{MC/-}}{{MC/Anchor|gravity}}
=== Gravity ===
=== Gravity ===
{{Infobox attribute
{{Infobox attribute
Line 343: Line 343:
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.


{{-}}{{anchor|jump_strength}}
{{MC/-}}{{MC/Anchor|jump_strength}}
=== Jump strength ===
=== Jump strength ===
{{Infobox attribute
{{Infobox attribute
Line 357: Line 357:
! Entity !! Default value
! Entity !! Default value
|-
|-
| {{EntityLink|Horse}}<br>{{EntityLink|Skeleton Horse}}<br>{{EntityLink|Zombie Horse}}
| {{MC/Entitylink|Horse}}<br>{{MC/Entitylink|Skeleton Horse}}<br>{{MC/Entitylink|Zombie Horse}}
| Random<br>(0.4–1.0)
| Random<br>(0.4–1.0)
|-
|-
| {{EntityLink|Donkey}}<br>{{EntityLink|Mule}}<br>{{EntityLink|Llama}}<br>{{EntityLink|Trader Llama}}
| {{MC/Entitylink|Donkey}}<br>{{MC/Entitylink|Mule}}<br>{{MC/Entitylink|Llama}}<br>{{MC/Entitylink|Trader Llama}}
| 0.5
| 0.5
|-
|-
Line 366: Line 366:
|}
|}


{{-}}{{anchor|knockback_resistance}}
{{MC/-}}{{MC/Anchor|knockback_resistance}}
=== Knockback resistance ===
=== Knockback resistance ===
{{Infobox attribute
{{Infobox attribute
Line 380: Line 380:
! Entity !! Default value
! Entity !! Default value
|-
|-
| {{EntityLink|Iron Golem}}<br>{{EntityLink|Warden}}
| {{MC/Entitylink|Iron Golem}}<br>{{MC/Entitylink|Warden}}
| 1
| 1
|-
|-
| {{EntityLink|Ravager}} || 0.75
| {{MC/Entitylink|Ravager}} || 0.75
|-
|-
| {{EntityLink|Hoglin}}<br>{{EntityLink|Zoglin}}
| {{MC/Entitylink|Hoglin}}<br>{{MC/Entitylink|Zoglin}}
| 0.6
| 0.6
|-
|-
Line 391: Line 391:
|}
|}


{{-}}{{anchor|luck}}
{{MC/-}}{{MC/Anchor|luck}}
=== Luck ===
=== Luck ===
{{Infobox attribute
{{Infobox attribute
Line 399: Line 399:
| max = 1024
| max = 1024
}}
}}
This attribute affects the results of [[Minecraft: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).
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).


{{-}}{{anchor|max_absorption}}
{{MC/-}}{{MC/Anchor|max_absorption}}
=== Max absorption ===
=== Max absorption ===
{{Infobox attribute
{{Infobox attribute
Line 409: Line 409:
| max = {{hp|2048|absorption=1}}
| max = {{hp|2048|absorption=1}}
}}
}}
This attribute is the maximum [[Minecraft:absorption]] of this entity (in half-hearts); it determines the highest health they may gain by the Absorption effect.
This attribute is the maximum absorption of this entity (in half-hearts); it determines the highest health they may gain by the Absorption effect.


{{-}}{{anchor|max_health}}
{{MC/-}}{{MC/Anchor|max_health}}
=== Max health ===
=== Max health ===
{{Infobox attribute
{{Infobox attribute
Line 420: Line 420:
| max = 1024
| max = 1024
}}
}}
This attribute is the maximum [[Minecraft: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>.{{verify}}
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}}


{| class=wikitable
{| class=wikitable
Line 429: Line 429:
|}
|}


{{-}}{{anchor|mining_efficiency}}
{{MC/-}}{{MC/Anchor|mining_efficiency}}
=== Mining efficiency ===
=== Mining efficiency ===
{{Infobox attribute
{{Infobox attribute
Line 439: Line 439:
This attribute is a factor to speed up the mining of blocks when using the right tool.
This attribute is a factor to speed up the mining of blocks when using the right tool.


{{-}}{{anchor|movement_efficiency}}
{{MC/-}}{{MC/Anchor|movement_efficiency}}
=== Movement efficiency ===
=== Movement efficiency ===
{{Infobox attribute
{{Infobox attribute
Line 449: Line 449:
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. A value of 1 removes the slowdown.


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


=== Oxygen bonus ===
=== Oxygen bonus ===
Line 534: Line 534:
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 <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)}}.


{{-}}{{anchor|safe_fall_distance}}
{{MC/-}}{{MC/Anchor|safe_fall_distance}}
=== Safe fall distance ===
=== Safe fall distance ===
{{Infobox attribute
{{Infobox attribute
Line 546: Line 546:
! Entity !! Default value
! Entity !! Default value
|-
|-
| {{EntityLink|Camel}}<br>{{EntityLink|Donkey}}<br>{{EntityLink|Horse}}<br>{{EntityLink|Llama}}<br>{{EntityLink|Mule}}<br>{{EntityLink|Skeleton Horse}}<br>{{EntityLink|Trader Llama}}<br>{{EntityLink|Zombie Horse}}
| {{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}}
| 6
| 6
|-
|-
| {{EntityLink|Fox}}
| {{MC/Entitylink|Fox}}
| 5
| 5
|-
|-
Line 556: Line 556:
|}
|}


{{-}}{{anchor|scale}}
{{MC/-}}{{MC/Anchor|scale}}
=== Scale ===
=== Scale ===
{{Infobox attribute
{{Infobox attribute
Line 566: Line 566:
This attribute multiplies the size of an entity.
This attribute multiplies the size of an entity.


{{-}}{{anchor|spawn_reinforcements}}
{{MC/-}}{{MC/Anchor|spawn_reinforcements}}
=== Spawn reinforcements ===
=== Spawn reinforcements ===
{{Infobox attribute
{{Infobox attribute
Line 579: Line 579:
! Entity !! Default value
! Entity !! Default value
|-
|-
| {{EntityLink|Zombie}}<br>{{EntityLink|Husk}}<br>{{EntityLink|Drowned}}<br>{{EntityLink|Zombie Villager}}
| {{MC/Entitylink|Zombie}}<br>{{MC/Entitylink|Husk}}<br>{{MC/Entitylink|Drowned}}<br>{{MC/Entitylink|Zombie Villager}}
| Random<br>(0–0.1)
| Random<br>(0–0.1)
|-
|-
| {{EntityLink|Zombified Piglin}}
| {{MC/Entitylink|Zombified Piglin}}
| 0<ref>{{bug|MC-301000}}</ref>
| 0<ref>{{bug|MC-301000}}</ref>
|}
|}


{{-}}{{anchor|sneaking_speed}}
{{MC/-}}{{MC/Anchor|sneaking_speed}}
=== Sneaking speed ===
=== Sneaking speed ===
{{Infobox attribute
{{Infobox attribute
Line 594: Line 594:
| max = 1
| max = 1
}}
}}
This attribute determines the movement speed factor when [[Minecraft:sneaking]] or [[Minecraft: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.
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.


{{-}}{{anchor|step_height}}
{{MC/-}}{{MC/Anchor|step_height}}
=== Step height ===
=== Step height ===
{{Infobox attribute
{{Infobox attribute
Line 604: Line 604:
| max = 10
| max = 10
}}
}}
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 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. 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.


{| class=wikitable
{| class=wikitable
! Entity !! Default value
! Entity !! Default value
|-
|-
| {{EntityLink|Camel}} || 1.5
| {{MC/Entitylink|Camel}} || 1.5
|-
|-
| {{EntityLink|Axolotl}}<br>{{EntityLink|Donkey}}<br>{{EntityLink|Drowned}}<br>{{EntityLink|Enderman}}<br>{{EntityLink|Frog}}<br>{{EntityLink|Horse}}<br>{{EntityLink|Iron Golem}}<br>{{EntityLink|Llama}}<br>{{EntityLink|Mule}}<br>{{EntityLink|Ravager}}<br>{{EntityLink|Skeleton Horse}}<br>{{EntityLink|Trader Llama}}<br>{{EntityLink|Turtle}}<br>{{EntityLink|Zombie Horse}}
| {{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}}
| 1
| 1
|-
|-
| {{EntityLink|Armor Stand}}
| {{MC/Entitylink|Armor Stand}}
| 0<ref>{{bug|MC-133544|||WAI}}</ref>
| 0<ref>{{bug|MC-133544|||WAI}}</ref>
|-
|-
Line 620: Line 620:
|}
|}


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


=== Submerged mining speed ===
=== Submerged mining speed ===
Line 631: Line 631:
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 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.


{{-}}{{anchor|sweeping_damage_ratio}}
{{MC/-}}{{MC/Anchor|sweeping_damage_ratio}}
=== Sweeping damage ratio ===
=== Sweeping damage ratio ===
{{Infobox attribute
{{Infobox attribute
Line 641: Line 641:
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 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)


{{-}}{{anchor|tempt_range}}
{{MC/-}}{{MC/Anchor|tempt_range}}
=== Tempt range ===
=== Tempt range ===
{{Infobox attribute
{{Infobox attribute
Line 655: Line 655:
!Entity !! Default value
!Entity !! Default value
|-
|-
|{{EntityLink|Happy Ghast}} || 16
|{{MC/Entitylink|Happy Ghast}} || 16
|-
|-
|All other [[Minecraft:Animal]] mobs || 10
|All other [[Minecraft:Animal]] mobs || 10
Line 662: Line 662:
|}
|}


{{-}}{{anchor|water_movement_efficiency}}
{{MC/-}}{{MC/Anchor|water_movement_efficiency}}
=== Water movement efficiency ===
=== Water movement efficiency ===
{{Infobox attribute
{{Infobox attribute
Line 672: Line 672:
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 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.


{{-}}{{anchor|waypoint_receive_range}}
{{MC/-}}{{MC/Anchor|waypoint_receive_range}}
=== Waypoint receive range ===
=== Waypoint receive range ===
{{Infobox attribute
{{Infobox attribute
Line 680: Line 680:
| 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 [[Minecraft:locator bar]]. This attribute has no effect on mobs.
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.


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


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


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


{{-}}
{{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 [[Minecraft:namespaced identifier]]s to uniquely identify the modifier.
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.


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 {{Cmd|attribute}} command, modifying the entity's [[Minecraft:Entity format|NBT data]], or using item modifiers via [[Minecraft:data components]].
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.


=== Operations ===
=== Operations ===


Modifier operations dictate how it modifies an attribute base value. There are three operations that exist in the game:{{note|{{cmd|attribute ... modifier add ...}} command shows the literal name of the 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.}}


{|class="wikitable"
{|class="wikitable"
Line 766: Line 766:
|minecraft:armor.body
|minecraft:armor.body
| Value varies based on the armor of the horse.
| Value varies based on the armor of the horse.
| armor (Operation {{cd|add_value}}; [[Minecraft:Horse]]s), generic.armor_toughness (Operation {{cd|add_value}}; [[Minecraft:Horse]]s)
| armor (Operation {{MC/Cd|add_value}}; [[Minecraft:Horse]]s), generic.armor_toughness (Operation {{MC/Cd|add_value}}; [[Minecraft:Horse]]s)
|-
|-
|minecraft:armor.body
|minecraft:armor.body
|Fixed value of 11.0 for wolves wearing [[Minecraft:Wolf Armor|wolf armor]].
|Fixed value of 11.0 for wolves wearing [[Minecraft:Wolf Armor|wolf armor]].
|armor (Operation {{cd|add_value}}; [[Minecraft:Wolve]]s)
|armor (Operation {{MC/Cd|add_value}}; Wolves)
|-
|-
|minecraft:armor.helmet
|minecraft:armor.helmet
Line 779: Line 779:
minecraft:armor.boots
minecraft:armor.boots
| Value varies based on slot and tier.
| Value varies based on slot and tier.
| armor (Operation {{cd|add_value}}; boots, leggings, chestplate, helmet, turtle shell)
| armor (Operation {{MC/Cd|add_value}}; boots, leggings, chestplate, helmet, turtle shell)
|-
|-
|minecraft:armor.helmet
|minecraft:armor.helmet
Line 788: Line 788:
minecraft:armor.boots
minecraft:armor.boots
| Value varies based on tier.
| Value varies based on tier.
| armor_toughness (Operation {{cd|add_value}}; boots, leggings, chestplate, helmet, turtle shell)
| armor_toughness (Operation {{MC/Cd|add_value}}; boots, leggings, chestplate, helmet, turtle shell)
|-
|-
|minecraft:armor.helmet
|minecraft:armor.helmet
Line 796: Line 796:


minecraft:armor.boots
minecraft:armor.boots
| Applies knockback resistance similarily to netherite armor. A piece of netherite armor is equivalent to {{cd|add_value}} with amount 0.1.
| 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 {{cd|add_value}}; boots, leggings, chestplate, helmet)
| knockback_resistance (Operation {{MC/Cd|add_value}}; boots, leggings, chestplate, helmet)
|-
|-
|minecraft:attacking
|minecraft:attacking
| Fixed value of 0.15 for Endermen and 0.05 for Zombified Piglins; exists only when attacking.
| Fixed value of 0.15 for Endermen and 0.05 for Zombified Piglins; exists only when attacking.
| movement_speed (Operation {{cd|add_value}}; [[Minecraft:Endermen]], [[Minecraft:Zombified Piglin]]s)
| movement_speed (Operation {{MC/Cd|add_value}}; Endermen, Zombified Piglins)
|-
|-
|minecraft:base_attack_damage
|minecraft:base_attack_damage
|Value varies based on tool/weapon and tier.
|Value varies based on tool/weapon and tier.
|attack_damage (Operation {{cd|add_value}}; tridents, shovels, pickaxes, axes, hoes, maces)
|attack_damage (Operation {{MC/Cd|add_value}}; tridents, shovels, pickaxes, axes, hoes, maces)
|-
|-
|minecraft:base_attack_speed
|minecraft:base_attack_speed
|Value varies based on tool/weapon and tier.
|Value varies based on tool/weapon and tier.
|attack_speed (Operation {{cd|add_value}}; tridents, shovels, pickaxes, axes, hoes, maces)
|attack_speed (Operation {{MC/Cd|add_value}}; tridents, shovels, pickaxes, axes, hoes, maces)
|-
|-
|minecraft:baby
|minecraft:baby
| Fixed value of 0.5 for Zombies and 0.2 for Piglins; exists only for their respective baby variants.
| Fixed value of 0.5 for Zombies and 0.2 for Piglins; exists only for their respective baby variants.
| movement_speed (Operation {{cd|add_multiplied_base}}; [[Minecraft:Baby Zombie]]s. [[Minecraft:Baby Villager]]s)
| movement_speed (Operation {{MC/Cd|add_multiplied_base}}; Baby Zombies. Baby Villagers)
|-
|-
|minecraft:covered
|minecraft:covered
| Fixed value of 20.0 for Shulkers. Exists only when fully closed.
| Fixed value of 20.0 for Shulkers. Exists only when fully closed.
| armor (Operation {{cd|add_value}}; [[Minecraft:Shulker]]s)
| armor (Operation {{MC/Cd|add_value}}; Shulkers)
|-
|-
|minecraft:creative_mode_block_range
|minecraft:creative_mode_block_range
| Fixed value of 0.5 while player is in Creative Mode.
| Fixed value of 0.5 while player is in Creative Mode.
| block_interaction_range (Operation {{cd|add_value}}; Player)
| block_interaction_range (Operation {{MC/Cd|add_value}}; Player)
|-
|-
|minecraft:creative_mode_entity_range
|minecraft:creative_mode_entity_range
| Fixed value of 2.0 while player is in Creative Mode.
| Fixed value of 2.0 while player is in Creative Mode.
| entity_interaction_range (Operation {{cd|add_value}}; Player)
| entity_interaction_range (Operation {{MC/Cd|add_value}}; Player)
|-
|-
|minecraft:drinking
|minecraft:drinking
| Fixed value of -0.25 for Witches when drinking a potion.
| Fixed value of -0.25 for Witches when drinking a potion.
| movement_speed (Operation {{cd|add_value}}; [[Minecraft:Witch]]es)
| movement_speed (Operation {{MC/Cd|add_value}}; [[Minecraft:Witch]]es)
|-
|-
|minecraft:effect.speed
|minecraft:effect.speed
| Fixed value of 0.2 when under the Speed effect, multiplied by the effect's ''level'' (amplifier + 1).
| Fixed value of 0.2 when under the Speed effect, multiplied by the effect's ''level'' (amplifier + 1).
| movement_speed (Operation {{cd|add_multiplied_total}}; All living entities)
| movement_speed (Operation {{MC/Cd|add_multiplied_total}}; All living entities)
|-
|-
|minecraft:effect.slowness
|minecraft:effect.slowness
| Fixed value of -0.15 when under the Slowness effect, multiplied by the effect's level.
| Fixed value of -0.15 when under the Slowness effect, multiplied by the effect's level.
| movement_speed (Operation {{cd|add_multiplied_total}}; All living entities)
| movement_speed (Operation {{MC/Cd|add_multiplied_total}}; All living entities)
|-
|-
|minecraft:effect.haste
|minecraft:effect.haste
| Fixed value of 0.1 when under the Haste effect, multiplied by the effect's level.
| Fixed value of 0.1 when under the Haste effect, multiplied by the effect's level.
| attack_speed (Operation {{cd|add_multiplied_total}}; All living entities)
| attack_speed (Operation {{MC/Cd|add_multiplied_total}}; All living entities)
|-
|-
|minecraft:effect.mining_fatigue
|minecraft:effect.mining_fatigue
| Fixed value of -0.1 when under the Mining fatigue effect, multiplied by the effect's level.
| Fixed value of -0.1 when under the Mining fatigue effect, multiplied by the effect's level.
| attack_speed (Operation {{cd|add_multiplied_total}}; All living entities)
| attack_speed (Operation {{MC/Cd|add_multiplied_total}}; All living entities)
|-
|-
|minecraft:effect.strength
|minecraft:effect.strength
| Fixed value of 3.0 when under the Strength effect, multiplied by the effect's level.
| Fixed value of 3.0 when under the Strength effect, multiplied by the effect's level.
| attack_damage (Operation {{cd|add_value}}; All living entities)
| attack_damage (Operation {{MC/Cd|add_value}}; All living entities)
|-
|-
|minecraft:effect.weakness
|minecraft:effect.weakness
| Fixed value of -4.0 when under the Weakness effect, multiplied by the effect's level.
| Fixed value of -4.0 when under the Weakness effect, multiplied by the effect's level.
| attack_damage (Operation {{cd|add_value}}; All living entities)
| attack_damage (Operation {{MC/Cd|add_value}}; All living entities)
|-
|-
|minecraft:effect.health_boost
|minecraft:effect.health_boost
| Fixed value of 4.0 when under the Health Boost effect, multiplied by the effect's level.
| Fixed value of 4.0 when under the Health Boost effect, multiplied by the effect's level.
| max_health (Operation {{cd|add_value}}; All living entities)
| max_health (Operation {{MC/Cd|add_value}}; All living entities)
|-
|-
|minecraft:effect.luck
|minecraft:effect.luck
| Fixed value of 1.0 when under the Luck effect, multiplied by the effect's level.
| Fixed value of 1.0 when under the Luck effect, multiplied by the effect's level.
| luck (Operation {{cd|add_value}}; All living entities)
| luck (Operation {{MC/Cd|add_value}}; All living entities)
|-
|-
|minecraft:effect.unluck
|minecraft:effect.unluck
| Fixed value of -1.0 when under the Unluck effect, multiplied by the effect's level.
| Fixed value of -1.0 when under the Unluck effect, multiplied by the effect's level.
| luck (Operation {{cd|add_value}}; All living entities)
| luck (Operation {{MC/Cd|add_value}}; All living entities)
|-
|-
|minecraft:effect.jump_boost
|minecraft:effect.jump_boost
| Fixed value of 0.1 when under the Jump boost effect, multiplied by the effect's level.
| Fixed value of 0.1 when under the Jump boost effect, multiplied by the effect's level.
| jump_strength (Operation {{cd|add_value}}; All living entities)
| jump_strength (Operation {{MC/Cd|add_value}}; All living entities)
|-
|-
|minecraft:leader_zombie_bonus
|minecraft:leader_zombie_bonus
| 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.
| 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.
| spawn_reinforcements (Operation {{cd|add_value}}; [[Minecraft:Zombie]]s), max_health (Operation {{cd|add_multiplied_total}}; [[Minecraft:Zombie]]s)
| spawn_reinforcements (Operation {{MC/Cd|add_value}}; [[Minecraft:Zombie]]s), max_health (Operation {{MC/Cd|add_multiplied_total}}; [[Minecraft:Zombie]]s)
|-
|-
|minecraft:powder_snow
|minecraft:powder_snow
| Value varies from 0 to -0.05 based on ticks spent in powder snow.
| Value varies from 0 to -0.05 based on ticks spent in powder snow.
| movement_speed (Operation {{cd|add_value}}; all living entities)
| movement_speed (Operation {{MC/Cd|add_value}}; all living entities)
|-
|-
|minecraft:random_spawn_bonus
|minecraft:random_spawn_bonus
|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.
|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.
| follow_range (Operation {{cd|add_multiplied_base}}; all mobs), Knockback Resistance (Operation {{cd|add_value}}; [[Minecraft:Zombie]]s only)
| follow_range (Operation {{MC/Cd|add_multiplied_base}}; all mobs), Knockback Resistance (Operation {{MC/Cd|add_value}}; [[Minecraft:Zombie]]s only)
|-
|-
|minecraft:reinforcement_caller_charge
|minecraft:reinforcement_caller_charge
| Fixed value of -0.05 created each time a zombie spawns another zombie as reinforcement.
| Fixed value of -0.05 created each time a zombie spawns another zombie as reinforcement.
| spawn_reinforcements (Operation {{cd|add_value}}; [[Minecraft:Zombie]]s)
| spawn_reinforcements (Operation {{MC/Cd|add_value}}; [[Minecraft:Zombie]]s)
|-
|-
|minecraft:reinforcement_callee_charge
|minecraft:reinforcement_callee_charge
| Fixed value of -0.05 created for each zombie spawned as a reinforcement.
| Fixed value of -0.05 created for each zombie spawned as a reinforcement.
| spawn_reinforcements (Operation {{cd|add_value}}; [[Minecraft:Zombie]]s)
| spawn_reinforcements (Operation {{MC/Cd|add_value}}; [[Minecraft:Zombie]]s)
|-
|-
|minecraft:sprinting
|minecraft:sprinting
| Fixed value of 0.3 used by all mobs (including players) when sprinting.
| Fixed value of 0.3 used by all mobs (including players) when sprinting.
| movement_speed (Operation {{cd|add_multiplied_total}}; all living entities)
| movement_speed (Operation {{MC/Cd|add_multiplied_total}}; all living entities)
|-
|-
|minecraft:zombie_random_spawn_bonus
|minecraft:zombie_random_spawn_bonus
| Generated upon spawning; a random number between 0.0 and 1.5.
| Generated upon spawning; a random number between 0.0 and 1.5.
| follow_range (Operation {{cd|add_multiplied_total}}; [[Minecraft:Zombie]]s)
| follow_range (Operation {{MC/Cd|add_multiplied_total}}; [[Minecraft:Zombie]]s)
|-
|-
|None/unknown
|None/unknown
Line 907: Line 907:
=== ''Java Edition'' ===
=== ''Java Edition'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|java}}
|{{MC/HistoryLine|java}}
|{{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||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|||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=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=13w18a|Replaced "Zombie reinforcement charge" with "Zombie reinforcement caller charge"}}
|{{MC/HistoryLine|||dev=13w18a|Replaced "Zombie reinforcement charge" with "Zombie reinforcement caller charge"}}
|{{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=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=13w23b|Added "potion.healthBoost" modifier.}}
|{{MC/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 {{cmd|give}} and {{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 {{MC/Cmd|give}} and {{MC/Cmd|summon}} commands.}}
|{{HistoryLine||1.9|dev=15w34b|Added attack speed attribute.}}
|{{MC/HistoryLine||1.9|dev=15w34b|Added attack speed attribute.}}
|{{HistoryLine|||dev=15w36d|Added armor attribute.}}
|{{MC/HistoryLine|||dev=15w36d|Added armor attribute.}}
|{{HistoryLine|||dev=15w44b|Added luck attribute.}}
|{{MC/HistoryLine|||dev=15w44b|Added luck attribute.}}
|{{HistoryLine||1.9.1|dev=pre1|Added armorToughness attribute.}}
|{{MC/HistoryLine||1.9.1|dev=pre1|Added armorToughness attribute.}}
|{{HistoryLine||1.12|dev=pre1|Added flyingSpeed attribute.}}
|{{MC/HistoryLine||1.12|dev=pre1|Added flyingSpeed attribute.}}
|{{HistoryLine||1.14|dev=18w43a|Added attackKnockback attribute.}}
|{{MC/HistoryLine||1.14|dev=18w43a|Added attackKnockback attribute.}}
|{{HistoryLine||1.16|dev=20w06a|Knockback resistance is now a scale rather than probability.}}
|{{MC/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 [[Minecraft:resource location]] requirements (i.e., lowercase separated by underscores instead of camel case).
|Names of some attributes have been renamed to meet resource location requirements (i.e., lowercase separated by underscores instead of camel case).
|Renamed {{cd|generic.maxHealth|d=to|generic.max_health}}.
|Renamed {{MC/Cd|generic.maxHealth|d=to|generic.max_health}}.
|Renamed {{cd|zombie.spawnReinforcements|d=to|zombie.spawn_reinforcements}}.
|Renamed {{MC/Cd|zombie.spawnReinforcements|d=to|zombie.spawn_reinforcements}}.
|Renamed {{cd|horse.jumpStrength|d=to|horse.jump_strength}}.
|Renamed {{MC/Cd|horse.jumpStrength|d=to|horse.jump_strength}}.
|Renamed {{cd|generic.followRange|d=to|generic.follow_range}}.
|Renamed {{MC/Cd|generic.followRange|d=to|generic.follow_range}}.
|Renamed {{cd|generic.knockbackResistance|d=to|generic.knockback_resistance}}.
|Renamed {{MC/Cd|generic.knockbackResistance|d=to|generic.knockback_resistance}}.
|Renamed {{cd|generic.movementSpeed|d=to|generic.movement_speed}}.
|Renamed {{MC/Cd|generic.movementSpeed|d=to|generic.movement_speed}}.
|Renamed {{cd|generic.flyingSpeed|d=to|generic.flying_speed}}.
|Renamed {{MC/Cd|generic.flyingSpeed|d=to|generic.flying_speed}}.
|Renamed {{cd|generic.attackDamage|d=to|generic.attack_damage}}
|Renamed {{MC/Cd|generic.attackDamage|d=to|generic.attack_damage}}
|Renamed {{cd|generic.attackKnockback|d=to|generic.attack_knockback}}
|Renamed {{MC/Cd|generic.attackKnockback|d=to|generic.attack_knockback}}
|Renamed {{cd|generic.attackSpeed|d=to|generic.attack_speed}}
|Renamed {{MC/Cd|generic.attackSpeed|d=to|generic.attack_speed}}
|Renamed {{cd|generic.armorToughness|d=to|generic.armor_toughness}}.}}
|Renamed {{MC/Cd|generic.armorToughness|d=to|generic.armor_toughness}}.}}
|{{HistoryLine|||dev=20w17a|Added the {{cmd|attribute}} command, which can query and change attributes.}}
|{{HistoryLine|||dev=20w17a|Added the {{MC/Cmd|attribute}} command, which can query and change attributes.}}
|{{HistoryLine||1.18.2|dev=22w03a|Knockback resistance no longer gives a 50% chance to ignore all knockback.}}
|{{MC/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 {{cd|generic.max_absorption}} attribute.}}
|{{HistoryLine||1.20.2|dev=23w31a|Added the {{MC/Cd|generic.max_absorption}} attribute.}}
|{{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||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|||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=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=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|||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||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||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|||dev=24w21a|The {{cd|uuid}} and {{cd|name}} arguments have been replaced with a singular {{cd|id}} argument.}}
|{{HistoryLine|||dev=24w21a|The {{MC/Cd|uuid}} and {{MC/Cd|name}} arguments have been replaced with a singular {{MC/Cd|id}} argument.}}
|{{HistoryLine||1.21.2|dev=24w33a|Added the {{cd|tempt_range}} attribute.
|{{HistoryLine||1.21.2|dev=24w33a|Added the {{MC/Cd|tempt_range}} 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.}}
|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.}}
|{{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.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.6|exp=Locator Bar|dev=25w15a|Added {{cd|waypoint_transmit_range}} and {{cd|waypoint_receive_range}} attributes.}}
|{{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|dev=25w15a|Added {{cd|camera_distance}} attribute.}}
|{{HistoryLine||1.21.6|dev=25w15a|Added {{MC/Cd|camera_distance}} attribute.}}
|{{HistoryLine|||dev=25w17a|{{cd|waypoint_transmit_range}} and {{cd|waypoint_receive_range}} are no longer experimental.}}
|{{HistoryLine|||dev=25w17a|{{MC/Cd|waypoint_transmit_range}} and {{MC/Cd|waypoint_receive_range}} are no longer experimental.}}
|{{HistoryLine|java upcoming}}
|{{MC/HistoryLine|java upcoming}}
|{{HistoryLine||26.2|dev=snap 1|Added {{cd|bounciness}}, {{cd|friction_modifier}}, and {{cd|air_drag_modifier}} attributes.}}
|{{HistoryLine||26.2|dev=snap 1|Added {{MC/Cd|bounciness}}, {{MC/Cd|friction_modifier}}, and {{MC/Cd|air_drag_modifier}} attributes.}}
|{{HistoryLine|combat java}}
|{{MC/HistoryLine|combat java}}
|{{HistoryLine||1.14.3|Added {{cd|generic.attackReach}} attribute.}}
|{{HistoryLine||1.14.3|Added {{MC/Cd|generic.attackReach}} attribute.}}
|{{HistoryLine||6|Renamed {{cd|generic.attackReach|d=to|generic.attack_reach}}.}}
|{{HistoryLine||6|Renamed {{MC/Cd|generic.attackReach|d=to|generic.attack_reach}}.}}
}}
}}


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


=== Legacy Console Edition ===
=== Legacy Console Edition ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|console}}
|{{MC/HistoryLine|console}}
|{{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=TU19|xbone=CU7|ps3=1.12|psvita=1.12|ps4=1.12|wiiu=Patch 1|switch=1.0.1|Added attributes.}}
|{{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=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=TU46|xbone=CU36|ps3=1.38|psvita=1.38|ps4=1.38|wiiu=Patch 15|switch=1.0.1|Added armor and luck attributes.}}
|{{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=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.}}}}
|{{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.}}}}
}}
}}


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


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


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


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

Latest revision as of 19:02, 9 April 2026

Script error: No such module "Exclusive".

An attribute is a value that determines certain properties of Minecraft:mobs, armor stands, and players. Attributes also have modifiers that adjust the strength of their effects.

Applying attributes

Attributes can be applied directly to living entities using the

  1. REDIRECT Template:Command

Template:Redr 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:

  1. REDIRECT Template:Command

Template:Redr

After it's modified, it can then be reset to the default value (which is 0.0 for

  1. REDIRECT Template:Attribute link

Template:Redr attribute):

  1. REDIRECT Template:Command

Template:Redr

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:

Template:Cmd

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>Template:Tweet</ref><ref>Template:Tweet</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 Template:Hp extra damage:

Template:Cmd

Attributes

Template:Message boxTemplate:Article other 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.

Armor

Template:Infobox attribute

This attribute defines the armor defense points.

Entity Default value
  1. REDIRECT Template:EntityLink
8 (Template:Armorbar)
  1. REDIRECT Template:EntityLink
4 (Template:Armorbar)
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
  5. REDIRECT Template:EntityLink
2 (Template:Armorbar)
All other entities 0 (Template:Armorbar)

Armor toughness

Template:Infobox attribute

This attribute defines armor toughness.

Attack damage

Template:Infobox attribute

This attribute defines the damage dealt by attacks, in half-hearts.

Entity Default value
  1. REDIRECT Template:EntityLink || Template:Hp
  1. REDIRECT Template:EntityLink || Template:Hp
  1. REDIRECT Template:EntityLink || Template:Hp
  1. REDIRECT Template:EntityLink || Template:Hp
  1. REDIRECT Template:EntityLink || Template:Hp
  1. REDIRECT Template:EntityLink || Template:Hp
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink || Template:Hp
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
  5. REDIRECT Template:EntityLink
  6. REDIRECT Template:EntityLink
  7. REDIRECT Template:EntityLink
Template:Hp
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
Template:Hp
  1. REDIRECT Template:EntityLink || Template:Hp
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
  5. REDIRECT Template:EntityLink
  6. REDIRECT Template:EntityLink
  7. REDIRECT Template:EntityLink
Template:Hp
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
Template:Hp
  1. REDIRECT Template:EntityLink
Template:Hp
Passive mobs N/A
All other entities Template:Hp

Attack knockback

Template:Infobox attribute

This attribute defines the knockback applied to attacks.​<more information needed></more information needed> It applies only to mobs with physical attacks and players.

Entity Default value
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
1.5
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
1
  1. REDIRECT Template:EntityLink
    All other entities
0

Attack reach

Template:Infobox attribute Template:Message box Template:Article other

This attribute determines the reach at which players can attack entities. It does not affect the interaction range.

Attack speed

Template:Infobox attribute This attribute determines recharging rate of attack strength. Its value is the number of full-strength attacks per second.

Block break speed

Template:Infobox attribute This attribute determines the speed at which the player can break blocks as a multiplier.

Block interaction range

Template:Infobox attribute This attribute determines the block interaction range for players in blocks.

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.

Burning time

Template:Infobox attribute 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.

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 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 Default value
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
8
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
16
All other entities{{
 #vardefine: verifyedition | 

}}<verify for {{#var:verifyedition}}></verify for {{#var:verifyedition}}>{{

 #vardefine: verifyedition | 

}}

4

Entity interaction range

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

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.

Explosion knockback resistance

Template:Infobox attribute This attribute defines what percentage of knockback from explosions an entity resists. A value of 1 eliminates the knockback.

Fall damage multiplier

Template:Infobox attribute This attribute determines the amount of fall damage an entity takes as a multiplier.

Entity Default value
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
  5. REDIRECT Template:EntityLink
  6. REDIRECT Template:EntityLink
  7. REDIRECT Template:EntityLink
  8. REDIRECT Template:EntityLink
0.5
All other entities 1

Flying speed

Template:Infobox attribute This attribute is a flight speed modifier in some unknown metric.​<more information needed></more information needed>

Entity Default value
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
0.6
  1. REDIRECT Template:EntityLink || 0.1
  1. REDIRECT Template:EntityLink || 0.05
All other entities 0.4

Follow range

Template:Infobox attribute 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.

Entity Default value
  1. REDIRECT Template:EntityLink || 100
  1. REDIRECT Template:EntityLink || 64
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
48
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
40
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
  5. REDIRECT Template:EntityLink
35
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
32
  1. REDIRECT Template:EntityLink || 24
  1. REDIRECT Template:EntityLink || 20
  1. REDIRECT Template:EntityLink || 18
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
12
All other entities 16

Gravity

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

Jump strength

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

Entity Default value
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
Random
(0.4–1.0)
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
0.5
All other entities 0.42

Knockback resistance

Template:Infobox attribute

This attribute determines the scale of horizontal knockback resisted from attacks and projectiles. Vertical knockback is not affected. It does not affect explosions.<ref>Template:Bug</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.

Entity Default value
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
1
  1. REDIRECT Template:EntityLink || 0.75
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
0.6
All other entities 0

Luck

Template:Infobox attribute This attribute affects the results of loot tables using the quality or bonus_rolls tag (e.g. when opening chests or chest minecarts, fishing, and killing mobs).

Max absorption

Template:Infobox attribute This attribute is the maximum absorption of this entity (in half-hearts); it determines the highest health they may gain by the Absorption effect.

Max health

Template:Infobox attribute 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 Health tag; for example: {Health:200.0f}.{{

 #vardefine: verifyedition | 

}}<verify for {{#var:verifyedition}}></verify for {{#var:verifyedition}}>{{

 #vardefine: verifyedition | 

}}

Entity Default value
Any entity The maximum health of the entity.
See Template:Slink for a full list.

Mining efficiency

Template:Infobox attribute This attribute is a factor to speed up the mining of blocks when using the right tool.

Movement efficiency

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

Movement speed

Template:Infobox attribute 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.

Entity Default value
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink (bred)
  3. REDIRECT Template:EntityLink (bred)
Random
(0.1125 – 0.3375)
  1. REDIRECT Template:EntityLink (Java Edition)
Random
(0.2135 – 0.2846)
  1. REDIRECT Template:EntityLink (Bedrock Edition)
Random
(0.205 – 0.275)
  1. REDIRECT Template:EntityLink || 1.2
  1. REDIRECT Template:EntityLink
1.1
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
1
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
  5. REDIRECT Template:EntityLink
  6. REDIRECT Template:EntityLink
  7. REDIRECT Template:EntityLink
  8. REDIRECT Template:EntityLink
  9. REDIRECT Template:EntityLink
  10. REDIRECT Template:EntityLink
  11. REDIRECT Template:EntityLink
  12. REDIRECT Template:EntityLink
  13. REDIRECT Template:EntityLink
  14. REDIRECT Template:EntityLink
0.7
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
0.6
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
  5. REDIRECT Template:EntityLink
0.5
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
0.35
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
0.3 + 0.1 × Size
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
  5. REDIRECT Template:EntityLink
  6. REDIRECT Template:EntityLink
  7. REDIRECT Template:EntityLink
  8. REDIRECT Template:EntityLink
  9. REDIRECT Template:EntityLink
  10. REDIRECT Template:EntityLink
  11. REDIRECT Template:EntityLink
  12. REDIRECT Template:EntityLink
  13. REDIRECT Template:EntityLink
  14. REDIRECT Template:EntityLink
  15. REDIRECT Template:EntityLink
0.3
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
  5. REDIRECT Template:EntityLink
  6. REDIRECT Template:EntityLink
  7. REDIRECT Template:EntityLink
  8. REDIRECT Template:EntityLink
  9. REDIRECT Template:EntityLink
  10. REDIRECT Template:EntityLink
  11. REDIRECT Template:EntityLink
  12. REDIRECT Template:EntityLink
0.25
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
  5. REDIRECT Template:EntityLink
  6. REDIRECT Template:EntityLink
  7. REDIRECT Template:EntityLink
0.23
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
  5. REDIRECT Template:EntityLink
  6. REDIRECT Template:EntityLink
0.2
  1. REDIRECT Template:EntityLinkTemplate:Note
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLinkTemplate:Note
  4. REDIRECT Template:EntityLink
  5. REDIRECT Template:EntityLink
0.175
  1. REDIRECT Template:EntityLink || 0.15
  1. REDIRECT Template:EntityLink || 0.14
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
0.1
  1. REDIRECT Template:EntityLink || 0.09
  1. REDIRECT Template:EntityLink (lazy) || 0.07
  1. REDIRECT Template:EntityLink || 0.05

Template:Notelist

Oxygen bonus

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

Safe fall distance

Template:Infobox attribute 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.

Entity Default value
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
  5. REDIRECT Template:EntityLink
  6. REDIRECT Template:EntityLink
  7. REDIRECT Template:EntityLink
  8. REDIRECT Template:EntityLink
6
  1. REDIRECT Template:EntityLink
5
All other entities 3

Scale

Template:Infobox attribute This attribute multiplies the size of an entity.

Spawn reinforcements

Template:Infobox attribute This attribute determines the chance for a zombie to spawn another zombie when attacked.

Entity Default value
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
Random
(0–0.1)
  1. REDIRECT Template:EntityLink
0<ref>Template:Bug</ref>

Sneaking speed

Template:Infobox attribute 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.

Step height

Template:Infobox attribute 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>Template:Bug</ref> This happens if the height that the player is above a block is equal or less than the attribute.

Entity Default value
  1. REDIRECT Template:EntityLink || 1.5
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
  5. REDIRECT Template:EntityLink
  6. REDIRECT Template:EntityLink
  7. REDIRECT Template:EntityLink
  8. REDIRECT Template:EntityLink
  9. REDIRECT Template:EntityLink
  10. REDIRECT Template:EntityLink
  11. REDIRECT Template:EntityLink
  12. REDIRECT Template:EntityLink
  13. REDIRECT Template:EntityLink
  14. REDIRECT Template:EntityLink
1
  1. REDIRECT Template:EntityLink
0<ref>Template:Bug</ref>
All other entities 0.6

Submerged mining speed

Template:Infobox attribute 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.

Sweeping damage ratio

Template:Infobox attribute 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)

Tempt range

Template:Infobox attribute

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.

Entity Default value
  1. REDIRECT Template:EntityLink || 16
All other Minecraft:Animal mobs 10
Non-Animal mobs N/A

Water movement efficiency

Template:Infobox attribute 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.

Waypoint receive range

Template:Infobox attribute 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.

Entity Default value
  1. REDIRECT Template:EntityLink || 60,000,000
All other entities 0

Waypoint transmit range

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

Entity Default value
  1. REDIRECT Template:EntityLink || 60,000,000
All other entities 0

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.

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

  1. REDIRECT Template:Command

Template:Redr command, modifying the entity's NBT data, or using item modifiers via data components.

Operations

Modifier operations dictate how it modifies an attribute base value. There are three operations that exist in the game:Template:Note

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 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.

Template:Notelist

Vanilla 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.

Modifier ID Description and Known Values Known Attributes Modified
minecraft:armor.body Value varies based on the armor of the horse. armor (Operation
  1. REDIRECT Template:Code

Template:Redr; Minecraft:Horses), generic.armor_toughness (Operation

  1. REDIRECT Template:Code

Template:Redr; Minecraft:Horses)

minecraft:armor.body Fixed value of 11.0 for wolves wearing wolf armor. armor (Operation
  1. REDIRECT Template:Code

Template:Redr; Wolves)

minecraft:armor.helmet

minecraft:armor.chestplate

minecraft:armor.leggings

minecraft:armor.boots

Value varies based on slot and tier. armor (Operation
  1. REDIRECT Template:Code

Template:Redr; boots, leggings, chestplate, helmet, turtle shell)

minecraft:armor.helmet

minecraft:armor.chestplate

minecraft:armor.leggings

minecraft:armor.boots

Value varies based on tier. armor_toughness (Operation
  1. REDIRECT Template:Code

Template:Redr; boots, leggings, chestplate, helmet, turtle shell)

minecraft:armor.helmet

minecraft:armor.chestplate

minecraft:armor.leggings

minecraft:armor.boots

Applies knockback resistance similarily to netherite armor. A piece of netherite armor is equivalent to
  1. REDIRECT Template:Code

Template:Redr with amount 0.1.

knockback_resistance (Operation
  1. REDIRECT Template:Code

Template:Redr; boots, leggings, chestplate, helmet)

minecraft:attacking Fixed value of 0.15 for Endermen and 0.05 for Zombified Piglins; exists only when attacking. movement_speed (Operation
  1. REDIRECT Template:Code

Template:Redr; Endermen, Zombified Piglins)

minecraft:base_attack_damage Value varies based on tool/weapon and tier. attack_damage (Operation
  1. REDIRECT Template:Code

Template:Redr; tridents, shovels, pickaxes, axes, hoes, maces)

minecraft:base_attack_speed Value varies based on tool/weapon and tier. attack_speed (Operation
  1. REDIRECT Template:Code

Template:Redr; tridents, shovels, pickaxes, axes, hoes, maces)

minecraft:baby Fixed value of 0.5 for Zombies and 0.2 for Piglins; exists only for their respective baby variants. movement_speed (Operation
  1. REDIRECT Template:Code

Template:Redr; Baby Zombies. Baby Villagers)

minecraft:covered Fixed value of 20.0 for Shulkers. Exists only when fully closed. armor (Operation
  1. REDIRECT Template:Code

Template:Redr; Shulkers)

minecraft:creative_mode_block_range Fixed value of 0.5 while player is in Creative Mode. block_interaction_range (Operation
  1. REDIRECT Template:Code

Template:Redr; Player)

minecraft:creative_mode_entity_range Fixed value of 2.0 while player is in Creative Mode. entity_interaction_range (Operation
  1. REDIRECT Template:Code

Template:Redr; Player)

minecraft:drinking Fixed value of -0.25 for Witches when drinking a potion. movement_speed (Operation
  1. REDIRECT Template:Code

Template:Redr; Minecraft:Witches)

minecraft:effect.speed Fixed value of 0.2 when under the Speed effect, multiplied by the effect's level (amplifier + 1). movement_speed (Operation
  1. REDIRECT Template:Code

Template:Redr; All living entities)

minecraft:effect.slowness Fixed value of -0.15 when under the Slowness effect, multiplied by the effect's level. movement_speed (Operation
  1. REDIRECT Template:Code

Template:Redr; All living entities)

minecraft:effect.haste Fixed value of 0.1 when under the Haste effect, multiplied by the effect's level. attack_speed (Operation
  1. REDIRECT Template:Code

Template:Redr; All living entities)

minecraft:effect.mining_fatigue Fixed value of -0.1 when under the Mining fatigue effect, multiplied by the effect's level. attack_speed (Operation
  1. REDIRECT Template:Code

Template:Redr; All living entities)

minecraft:effect.strength Fixed value of 3.0 when under the Strength effect, multiplied by the effect's level. attack_damage (Operation
  1. REDIRECT Template:Code

Template:Redr; All living entities)

minecraft:effect.weakness Fixed value of -4.0 when under the Weakness effect, multiplied by the effect's level. attack_damage (Operation
  1. REDIRECT Template:Code

Template:Redr; All living entities)

minecraft:effect.health_boost Fixed value of 4.0 when under the Health Boost effect, multiplied by the effect's level. max_health (Operation
  1. REDIRECT Template:Code

Template:Redr; All living entities)

minecraft:effect.luck Fixed value of 1.0 when under the Luck effect, multiplied by the effect's level. luck (Operation
  1. REDIRECT Template:Code

Template:Redr; All living entities)

minecraft:effect.unluck Fixed value of -1.0 when under the Unluck effect, multiplied by the effect's level. luck (Operation
  1. REDIRECT Template:Code

Template:Redr; All living entities)

minecraft:effect.jump_boost Fixed value of 0.1 when under the Jump boost effect, multiplied by the effect's level. jump_strength (Operation
  1. REDIRECT Template:Code

Template:Redr; All living entities)

minecraft:leader_zombie_bonus 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. spawn_reinforcements (Operation
  1. REDIRECT Template:Code

Template:Redr; Minecraft:Zombies), max_health (Operation

  1. REDIRECT Template:Code

Template:Redr; Minecraft:Zombies)

minecraft:powder_snow Value varies from 0 to -0.05 based on ticks spent in powder snow. movement_speed (Operation
  1. REDIRECT Template:Code

Template:Redr; all living entities)

minecraft:random_spawn_bonus Generated upon spawning. For follow range, a random number between ± 0.11485 is chosen, following a triangular distribution. For knockback resistance, a value between 0.0 and 0.05 is chosen. follow_range (Operation
  1. REDIRECT Template:Code

Template:Redr; all mobs), Knockback Resistance (Operation

  1. REDIRECT Template:Code

Template:Redr; Minecraft:Zombies only)

minecraft:reinforcement_caller_charge Fixed value of -0.05 created each time a zombie spawns another zombie as reinforcement. spawn_reinforcements (Operation
  1. REDIRECT Template:Code

Template:Redr; Minecraft:Zombies)

minecraft:reinforcement_callee_charge Fixed value of -0.05 created for each zombie spawned as a reinforcement. spawn_reinforcements (Operation
  1. REDIRECT Template:Code

Template:Redr; Minecraft:Zombies)

minecraft:sprinting Fixed value of 0.3 used by all mobs (including players) when sprinting. movement_speed (Operation
  1. REDIRECT Template:Code

Template:Redr; all living entities)

minecraft:zombie_random_spawn_bonus Generated upon spawning; a random number between 0.0 and 1.5. follow_range (Operation
  1. REDIRECT Template:Code

Template:Redr; Minecraft:Zombies)

None/unknown Unknown; created when the client reads attribute data sent by the server. varies

History

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

Legacy Console Edition

Template:HistoryTable

Issues

Script error: No such module "Issue list".

References

<references group="">

 </references>

Navigation

General mechanics
Technical mechanics
Survival
Combat

More

Environment

More

Movement
User interface
Visuals
Removed
Unintended

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