Minecraft:Attribute: Difference between revisions
More actions
Sync: updated from Minecraft |
Sync: updated from Minecraft |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 19: | Line 19: | ||
}} | }} | ||
This attribute | This attribute modifies the air drag an entity experiences. The final air drag is calculated as <math>1-\left(1-\text{friction}\right)\cdot \text{air drag modifier}</math>, clamped to 0 to 1. The friction is 0.91 for [[Minecraft:sulfur cube]]s that have absorbed a block, [[Minecraft:parrot]]s, and [[Minecraft:bee]]s. For all other entities, including sulfur cubes that have no absorbed block, the friction is 0.98. | ||
{{-}}{{anchor|armor}} | {{-}}{{anchor|armor}} | ||
=== Armor === | === Armor === | ||
{{Infobox attribute | {{Infobox attribute | ||
| Line 36: | Line 37: | ||
! Entity !! Base value | ! Entity !! Base value | ||
|- | |- | ||
|{{EntityLink|Magma Cube}} (large) | | {{EntityLink|Magma Cube}} (large) || {{armor|12}} | ||
|{{ | |||
|- | |- | ||
| {{EntityLink|Killer Bunny}} | | {{EntityLink|Killer Bunny}} || {{armor|8}} | ||
| {{armor|8}} | |||
|- | |- | ||
|{{EntityLink|Magma Cube}} (medium) | | {{EntityLink|Magma Cube}} (medium) || {{armor|6}} | ||
|{{ | |||
|- | |- | ||
| {{EntityLink|Wither}} | | {{EntityLink|Wither}} || {{armor|4}} | ||
| {{armor|4}} | |||
|- | |- | ||
|{{EntityLink|Magma Cube}} (small) | | {{EntityLink|Magma Cube}} (small) || {{armor|3}} | ||
|{{ | |||
|- | |- | ||
| {{EntityLink|Zombie}} {{EntityLink|Husk}} {{EntityLink|Drowned}} {{EntityLink|Zombie Villager}} {{EntityLink|Zombified Piglin}} | | {{EntityLink|Zombie}} {{EntityLink|Husk}} {{EntityLink|Drowned}} {{EntityLink|Zombie Villager}} {{EntityLink|Zombified Piglin}} {{EntityLink|Frostbite}} {{EntityLink|Evoker}}{{only|be}} | ||
| {{armor|2}} | | {{armor|2}} | ||
|} | |} | ||
| Line 66: | Line 62: | ||
This attribute determines an entity's [[Minecraft:armor toughness]]. | This attribute determines an entity's [[Minecraft:armor toughness]]. | ||
{{-}}{{anchor|attack_damage}} | {{-}}{{anchor|attack_damage}} | ||
=== Attack Damage === | === Attack Damage === | ||
{{Infobox attribute | {{Infobox attribute | ||
| Line 97: | Line 93: | ||
| {{EntityLink|Enderman}} {{EntityLink|Piglin Brute}} || {{hp|7}} | | {{EntityLink|Enderman}} {{EntityLink|Piglin Brute}} || {{hp|7}} | ||
|- | |- | ||
| {{EntityLink|Blaze}} {{EntityLink|Guardian}} {{EntityLink|Hoglin}} {{EntityLink|Panda}} {{EntityLink|Polar Bear}} {{EntityLink|Zoglin}} | | {{EntityLink|Blaze}} {{EntityLink|Guardian}} {{EntityLink|Hoglin}} {{EntityLink|Panda}} {{EntityLink|Polar Bear}} {{EntityLink|Zoglin}} || {{hp|6}} | ||
| {{hp|6}} | |||
|- | |- | ||
| {{EntityLink|Piglin}} {{EntityLink|Pillager}} {{EntityLink|Vindicator}} {{EntityLink|Zombified Piglin}} | | {{EntityLink|Piglin}} {{EntityLink|Pillager}} {{EntityLink|Vindicator}} {{EntityLink|Zombified Piglin}} || {{hp|5}} | ||
| {{hp|5}} | |||
|- | |- | ||
| {{EntityLink|Vex}} {{EntityLink|Wolf}} {{EntityLink|Wither Skeleton}} || {{hp|4}} | | {{EntityLink|Vex}} {{EntityLink|Wolf}} {{EntityLink|Wither Skeleton}} || {{hp|4}} | ||
|- | |- | ||
| {{EntityLink|Cat}} {{EntityLink|Dolphin}} {{EntityLink|Drowned}} {{EntityLink|Husk}} {{EntityLink|Ocelot}} {{EntityLink|Zombie}} {{EntityLink|Zombie Villager}} {{EntityLink|Nautilus}} {{EntityLink|Zombie Nautilus}} {{EntityLink|Parrot}} {{EntityLink|Rabbit}} {{EntityLink|Breeze}} {{EntityLink|Creaking}} | | {{EntityLink|Cat}} {{EntityLink|Dolphin}} {{EntityLink|Drowned}} {{EntityLink|Husk}} {{EntityLink|Ocelot}} {{EntityLink|Zombie}} {{EntityLink|Zombie Villager}} {{EntityLink|Nautilus}} {{EntityLink|Zombie Nautilus}} {{EntityLink|Parrot}} {{EntityLink|Rabbit}} {{EntityLink|Breeze}} {{EntityLink|Creaking}} {{EntityLink|Frostbite}} | ||
| {{hp|3}} | | {{hp|3}} | ||
|- | |- | ||
| {{EntityLink|Allay}} {{EntityLink|Axolotl}} {{EntityLink|Bee}} {{EntityLink|Fox}} {{EntityLink|Goat}} {{EntityLink|Endermite}} {{EntityLink|Creeper}} {{EntityLink|Witch}} {{EntityLink|Evoker}} {{EntityLink|Illusioner}} {{EntityLink|Skeleton}} {{EntityLink|Bogged}} {{EntityLink|Parched}} {{EntityLink|Spider}} {{EntityLink|Cave Spider}} | | {{EntityLink|Allay}} {{EntityLink|Axolotl}} {{EntityLink|Bee}} {{EntityLink|Fox}} {{EntityLink|Goat}} {{EntityLink|Endermite}} {{EntityLink|Creeper}} {{EntityLink|Witch}} {{EntityLink|Evoker}} {{EntityLink|Illusioner}} {{EntityLink|Skeleton}} {{EntityLink|Bogged}} {{EntityLink|Parched}} {{EntityLink|Spider}} {{EntityLink|Cave Spider}} || {{hp|2}} | ||
| {{hp|2}} | |||
|- | |- | ||
| {{EntityLink|Player}} {{EntityLink|Silverfish}} {{EntityLink|Baby Goat}} | | {{EntityLink|Player}} {{EntityLink|Silverfish}} {{EntityLink|Baby Goat}} || {{hp|1}} | ||
| {{hp|1}} | |||
|- | |- | ||
| {{EntityLink|Baby Hoglin}} {{EntityLink|Baby Zoglin}} | | {{EntityLink|Baby Hoglin}} {{EntityLink|Baby Zoglin}} || {{hp|0.5}} | ||
| {{hp|0.5}} | |||
|- | |- | ||
| {{EntityLink|Phantom}} | | {{EntityLink|Phantom}} || {{hp|6}} + ''Size'' | ||
| {{hp|6}} + ''Size'' | |||
|- | |- | ||
| {{EntityLink|Slime}} {{EntityLink|Magma Cube}} | | {{EntityLink|Slime}} {{EntityLink|Magma Cube}} || {{hp|1}} × ''Size'' | ||
| {{hp|1}} × ''Size'' | |||
|} | |} | ||
{{-}}{{anchor|attack_knockback}} | {{-}}{{anchor|attack_knockback}} | ||
=== Attack Knockback === | === Attack Knockback === | ||
{{Infobox attribute | {{Infobox attribute | ||
| Line 135: | Line 123: | ||
}} | }} | ||
This attribute determines additional [[Minecraft:knockback]] applied to an entity's [[Minecraft:melee attack]].{{info needed| | This attribute determines additional [[Minecraft:knockback]] applied to an entity's [[Minecraft:melee attack]].{{info needed|In which unit?}} | ||
{| class=wikitable | {| class=wikitable | ||
! Entity !! Base value | ! Entity !! Base value | ||
|- | |- | ||
| {{EntityLink|Ravager}} {{EntityLink|Warden}} | | {{EntityLink|Ravager}} {{EntityLink|Warden}} || 1.5 | ||
| 1.5 | |||
|- | |- | ||
| {{EntityLink|Hoglin}} {{EntityLink|Zoglin}} | | {{EntityLink|Hoglin}} {{EntityLink|Zoglin}} || 1 | ||
| 1 | |||
|} | |} | ||
| Line 170: | Line 156: | ||
{{-}}{{anchor|block_break_speed}} | {{-}}{{anchor|block_break_speed}} | ||
=== Block Break Speed === | === Block Break Speed === | ||
{{Infobox attribute | {{Infobox attribute | ||
| Line 224: | Line 209: | ||
}} | }} | ||
This attribute determines the maximum distance at which the camera is placed away from the player or [[Minecraft:Spectator mode#Mob view|spectated]] entity when in a [[Minecraft:third-person view]]. This distance is multiplied by the {{cd|[[#scale|scale]]}} attribute to get a final target camera distance. If the entity being ridden has a larger {{cd|camera_distance}} attribute, that distance will be used. The final distance can be reduced by colliding [[Minecraft:Hitbox#Blocks visual box|certain blocks]]. | This attribute determines the maximum distance at which the camera is placed away from the player or [[Minecraft:Spectator mode#Mob view|spectated]] entity when in a [[Minecraft:third-person view]]. This distance is multiplied by the {{cd|[[#scale|scale]]}} attribute to get a final target camera distance. If the entity being ridden has a larger {{cd|camera_distance}} attribute, that distance will be used. The final distance can be reduced by colliding [[Minecraft:Hitbox#Blocks visual box|certain blocks]]. | ||
{| class=wikitable | {| class=wikitable | ||
! Entity !! Base value | ! Entity !! Base value | ||
|- | |- | ||
| {{EntityLink|Ghast}} {{EntityLink|Happy Ghast}} | | {{EntityLink|Ghast}} {{EntityLink|Happy Ghast}} || 8 | ||
| 8 | |||
|- | |- | ||
| {{EntityLink|Giant}} {{EntityLink|Ender Dragon}} | | {{EntityLink|Giant}} {{EntityLink|Ender Dragon}} || 16 | ||
| 16 | |||
|} | |} | ||
{{-}}{{anchor|entity_interaction_range}} | {{-}}{{anchor|entity_interaction_range}} | ||
=== Entity Interaction Range === | === Entity Interaction Range === | ||
{{Infobox attribute | {{Infobox attribute | ||
| Line 273: | Line 254: | ||
! Entity !! Base value | ! Entity !! Base value | ||
|- | |- | ||
| {{EntityLink|Camel}} {{EntityLink|Donkey}} {{EntityLink|Horse}} {{EntityLink|Llama}} {{EntityLink|Mule}} {{EntityLink|Skeleton Horse}} {{EntityLink|Trader Llama}} {{EntityLink|Zombie Horse}} {{EntityLink|Camel Husk}} | | {{EntityLink|Camel}} {{EntityLink|Donkey}} {{EntityLink|Horse}} {{EntityLink|Llama}} {{EntityLink|Mule}} {{EntityLink|Skeleton Horse}} {{EntityLink|Trader Llama}} {{EntityLink|Zombie Horse}} {{EntityLink|Camel Husk}} || 0.5 | ||
| 0.5 | |||
|} | |} | ||
| Line 291: | Line 271: | ||
! Entity !! Base value | ! Entity !! Base value | ||
|- | |- | ||
| {{EntityLink|Bee}} {{EntityLink|Wither}} | | {{EntityLink|Bee}} {{EntityLink|Wither}} || 0.6 | ||
| 0.6 | |||
|- | |- | ||
| {{EntityLink|Allay}} || 0.1 | | {{EntityLink|Allay}} || 0.1 | ||
| Line 321: | Line 300: | ||
| {{EntityLink|Enderman}} || 64 | | {{EntityLink|Enderman}} || 64 | ||
|- | |- | ||
| {{EntityLink|Allay}} {{EntityLink|Bee}} {{EntityLink|Blaze}} | | {{EntityLink|Allay}} {{EntityLink|Bee}} {{EntityLink|Blaze}} || 48 | ||
| 48 | |||
|- | |- | ||
| {{EntityLink|Llama}} {{EntityLink|Wither}} | | {{EntityLink|Llama}} {{EntityLink|Wither}} || 40 | ||
| 40 | |||
|- | |- | ||
| {{EntityLink|Zombie}} {{EntityLink|Husk}} {{EntityLink|Drowned}} {{EntityLink|Zombie Villager}} {{EntityLink|Zombified Piglin}} | | {{EntityLink|Zombie}} {{EntityLink|Husk}} {{EntityLink|Drowned}} {{EntityLink|Zombie Villager}} {{EntityLink|Zombified Piglin}} {{EntityLink|Frostbite}}|| 35 | ||
| 35 | |||
|- | |- | ||
| {{EntityLink|Fox}} {{EntityLink|Pillager}} {{EntityLink|Ravager}} {{EntityLink|Creaking}} | | {{EntityLink|Fox}} {{EntityLink|Pillager}} {{EntityLink|Ravager}} {{EntityLink|Creaking}} || 32 | ||
| 32 | |||
|- | |- | ||
| {{EntityLink|Breeze}} {{EntityLink|Warden}} || 24 | | {{EntityLink|Breeze}} {{EntityLink|Warden}} || 24 | ||
| Line 339: | Line 314: | ||
| {{EntityLink|Illusioner}} || 18 | | {{EntityLink|Illusioner}} || 18 | ||
|- | |- | ||
| {{EntityLink|Evoker}} {{EntityLink|Vindicator}} {{EntityLink|Piglin Brute}} | | {{EntityLink|Evoker}} {{EntityLink|Vindicator}} {{EntityLink|Piglin Brute}} || 12 | ||
| 12 | |||
|- | |- | ||
| ''All other mobs'' || 16 | | ''All other mobs'' || 16 | ||
| Line 381: | Line 355: | ||
! Entity !! Base value | ! Entity !! Base value | ||
|- | |- | ||
| {{EntityLink|Horse}} {{EntityLink|Skeleton Horse}} {{EntityLink|Zombie Horse}} | | {{EntityLink|Horse}} {{EntityLink|Skeleton Horse}} {{EntityLink|Zombie Horse}} || Random<br>(0.4 – 1.0) | ||
| Random<br>(0. | |||
|- | |- | ||
| {{EntityLink|Donkey}} {{EntityLink|Mule}} {{EntityLink|Llama}} {{EntityLink|Trader Llama}} | | {{EntityLink|Donkey}} {{EntityLink|Mule}} {{EntityLink|Llama}} {{EntityLink|Trader Llama}} || 0.5 | ||
| 0.5 | |||
|} | |} | ||
| Line 403: | Line 375: | ||
! Entity !! Base value | ! Entity !! Base value | ||
|- | |- | ||
| {{EntityLink|Iron Golem}} {{EntityLink|Warden}} | | {{EntityLink|Ender Dragon}}{{only|be}} || 100 | ||
| 1 | |- | ||
| {{EntityLink|Iron Golem}} {{EntityLink|Warden}} || 1 | |||
|- | |- | ||
| {{EntityLink|Ravager}} || 0.75 | | {{EntityLink|Ravager}} || 0.75 | ||
|- | |- | ||
| {{EntityLink|Hoglin}} {{EntityLink|Zoglin}} {{EntityLink|Nautilus}} {{EntityLink|Zombie Nautilus}} | | {{EntityLink|Hoglin}} {{EntityLink|Zoglin}} || 0.6 | ||
| 0. | |- | ||
|{{EntityLink|Nautilus}} {{EntityLink|Zombie Nautilus}} || 0.30000001192092896 | |||
|- | |||
|{{EntityLink|Zombie}} {{EntityLink|Husk}} {{EntityLink|Drowned}} {{EntityLink|Zombie Villager}} {{EntityLink|Zombified Piglin}} {{EntityLink|Frostbite}}|| Random<br>(0 – 0.05) | |||
|} | |} | ||
{{-}}{{anchor|luck}} | {{-}}{{anchor|luck}} | ||
=== Luck === | === Luck === | ||
{{Infobox attribute | {{Infobox attribute | ||
| Line 430: | Line 405: | ||
{{-}}{{anchor|max_absorption}} | {{-}}{{anchor|max_absorption}} | ||
=== Max Absorption === | === Max Absorption === | ||
{{Infobox attribute | {{Infobox attribute | ||
| Line 456: | Line 430: | ||
! Entity !! Base value | ! Entity !! Base value | ||
|- | |- | ||
| {{EntityLink|Warden}} | | {{EntityLink|Warden}} || {{hp|500}} | ||
| {{hp|500}} | |||
|- | |- | ||
| {{EntityLink|Wither}} | | {{EntityLink|Wither}} || {{hp|300}} | ||
| {{hp|300}} | |||
|- | |- | ||
| {{EntityLink|Ender Dragon}} | | {{EntityLink|Ender Dragon}} || {{hp|200}} | ||
| {{hp|200}} | |||
|- | |- | ||
| {{EntityLink|Iron Golem}} {{EntityLink| | | {{EntityLink|Iron Golem}} {{EntityLink|Ravager}} {{EntityLink|Giant}}|| {{hp|100}} | ||
| {{hp|100}} | |||
|- | |- | ||
| {{EntityLink|Elder Guardian}} | | {{EntityLink|Elder Guardian}} || {{hp|80}} | ||
| {{hp|80}} | |||
|- | |- | ||
| {{EntityLink|Piglin Brute}} | | {{EntityLink|Piglin Brute}} || {{hp|50}} | ||
| {{hp|50}} | |||
|- | |- | ||
| {{EntityLink|Tamed Wolf}} {{EntityLink|Enderman}} {{EntityLink|Zoglin}} {{EntityLink|Hoglin}} | | {{EntityLink|Tamed Wolf}} {{EntityLink|Enderman}} {{EntityLink|Zoglin}} {{EntityLink|Hoglin}} || {{hp|40}} | ||
| {{hp|40}} | |||
|- | |- | ||
| {{EntityLink|Camel}} {{EntityLink|Camel Husk}} {{EntityLink|Illusioner}} | | {{EntityLink|Camel}} {{EntityLink|Camel Husk}} {{EntityLink|Illusioner}} || {{hp|32}} | ||
| {{hp|32}} | |||
|- | |- | ||
| {{EntityLink|Polar Bear}} {{EntityLink|Guardian}} {{EntityLink|Shulker}} {{EntityLink|Breeze}} {{EntityLink|Turtle}} | | {{EntityLink|Polar Bear}} {{EntityLink|Guardian}} {{EntityLink|Shulker}} {{EntityLink|Breeze}} {{EntityLink|Turtle}} || {{hp|30}} | ||
| {{hp|30}} | |||
|- | |- | ||
| {{EntityLink|Witch}} | | {{EntityLink|Witch}} || {{hp|26}} | ||
| {{hp|26}} | |||
|- | |- | ||
| {{EntityLink|Zombie Horse}} | | {{EntityLink|Zombie Horse}} || {{hp|25}} | ||
| {{hp|25}} | |||
|- | |- | ||
| {{EntityLink|Evoker}} {{EntityLink|Pillager}} {{EntityLink|Vindicator}} | | {{EntityLink|Evoker}} {{EntityLink|Pillager}} {{EntityLink|Vindicator}} {{EntityLink|Frostbite}}|| {{hp|24}} | ||
| {{hp|24}} | |||
|- | |- | ||
| {{EntityLink|Happy Ghast}} | | {{EntityLink|Player}} {{EntityLink|Zombie}} {{EntityLink|Zombie Villager}} {{EntityLink|Husk}} {{EntityLink|Drowned}} {{EntityLink|Zombified Piglin}} {{EntityLink|Skeleton}} {{EntityLink|Stray}} {{EntityLink|Wither Skeleton}} {{EntityLink|Creeper}} {{EntityLink|Blaze}} {{EntityLink|Strider}} | ||
{{EntityLink|Villager}} {{EntityLink|Wandering Trader}} {{EntityLink|Phantom}} {{EntityLink|Panda}} {{EntityLink|Allay}} {{EntityLink|Happy Ghast}} {{EntityLink|Cat}}(tamed){{only|be}} | |||
| {{hp|20}} | | {{hp|20}} | ||
|- | |- | ||
| {{EntityLink|Piglin}} {{EntityLink|Bogged}} {{EntityLink|Parched}} {{EntityLink|Spider}} | | {{EntityLink|Piglin}} {{EntityLink|Bogged}} {{EntityLink|Parched}} {{EntityLink|Spider}} || {{hp|16}} | ||
| {{hp|16}} | |||
|- | |- | ||
| {{EntityLink|Skeleton Horse}} {{EntityLink|Nautilus}} {{EntityLink|Zombie Nautilus}} | | {{EntityLink|Skeleton Horse}} {{EntityLink|Nautilus}} {{EntityLink|Zombie Nautilus}} || {{hp|15}} | ||
| {{hp|15}} | |||
|- | |- | ||
| {{EntityLink|Axolotl}} {{EntityLink|Sniffer}} | | {{EntityLink|Axolotl}} {{EntityLink|Sniffer}} || {{hp|14}} | ||
| {{hp|14}} | |||
|- | |- | ||
| {{EntityLink|Armadillo}} {{EntityLink|Copper Golem}} {{EntityLink|Cave Spider}} | | {{EntityLink|Armadillo}} {{EntityLink|Copper Golem}} {{EntityLink|Cave Spider}} || {{hp|12}} | ||
| {{hp|12}} | |||
|- | |- | ||
| {{EntityLink|Bee}} {{EntityLink|Cow}} {{EntityLink|Mooshroom}} {{EntityLink|Dolphin}} {{EntityLink|Cat}} {{EntityLink|Ocelot}} {{EntityLink|Fox}} {{EntityLink|Frog}} {{EntityLink|Goat}} {{EntityLink|Panda}} {{EntityLink|Pig}} {{EntityLink|Squid}} {{EntityLink|Glow Squid}} {{EntityLink|Ghast}} | | {{EntityLink|Bee}} {{EntityLink|Cow}} {{EntityLink|Mooshroom}} {{EntityLink|Dolphin}} {{EntityLink|Cat}} {{EntityLink|Ocelot}} {{EntityLink|Fox}} {{EntityLink|Frog}} {{EntityLink|Goat}} {{EntityLink|Panda}}(weak) {{EntityLink|Pig}} {{EntityLink|Squid}} {{EntityLink|Glow Squid}} {{EntityLink|Ghast}} || {{hp|10}} | ||
| {{hp|10}} | |||
|- | |- | ||
| {{EntityLink|Sheep}} {{EntityLink|Wolf}} {{EntityLink|Endermite}} {{EntityLink|Silverfish}} | | {{EntityLink|Sheep}} {{EntityLink|Wolf}} {{EntityLink|Endermite}} {{EntityLink|Silverfish}} || {{hp|8}} | ||
| {{hp|8}} | |||
|- | |- | ||
| {{EntityLink|Bat}} {{EntityLink|Tadpole}} {{EntityLink|Parrot}} | | {{EntityLink|Bat}} {{EntityLink|Tadpole}} {{EntityLink|Parrot}} || {{hp|6}} | ||
| {{hp|6}} | |||
|- | |- | ||
| {{EntityLink|Chicken}} {{EntityLink|Snow Golem}} | | {{EntityLink|Chicken}} {{EntityLink|Snow Golem}} || {{hp|4}} | ||
| {{hp|4}} | |||
|- | |- | ||
| {{EntityLink|Cod}} {{EntityLink|Salmon}} {{EntityLink|Tropical Fish}} {{EntityLink|Pufferfish}} {{EntityLink|Rabbit}} | | {{EntityLink|Cod}} {{EntityLink|Salmon}} {{EntityLink|Tropical Fish}} {{EntityLink|Pufferfish}} {{EntityLink|Rabbit}} || {{hp|3}} | ||
| {{hp| | |- | ||
| {{EntityLink|Creaking}} || {{hp|1}} | |||
|- | |||
| {{EntityLink|Horse}} {{EntityLink|Donkey}} {{EntityLink|Mule}} {{EntityLink|Llama}} {{EntityLink|Trader Llama}} || Random<br>({{hp|15}} – {{hp|30}}) | |||
|- | |- | ||
| {{EntityLink| | | {{EntityLink|Slime}} {{EntityLink|Magma Cube}} || {{hp|1}} × ''Size'' × ''Size'' | ||
| {{hp|1}} | |||
|- | |- | ||
| {{EntityLink| | | {{EntityLink|Sulfur Cube}} || {{hp|4}} × ''Size'' | ||
|- | |- | ||
| {{EntityLink| | |{{EntityLink|Frostbite}}(leaders) | ||
|Random<br>({{hp|48}} – {{hp|120}}) | |||
|- | |- | ||
| {{EntityLink| | |{{EntityLink|Zombie}}(leaders) {{EntityLink|Zombie Villager}}(leaders) {{EntityLink|Husk}}(leaders) {{EntityLink|Drowned}}(leaders) {{EntityLink|Zombified Piglin}}(leaders) | ||
| {{hp| | |Random<br>({{hp|40}} – {{hp|100}}) | ||
|} | |} | ||
| Line 573: | Line 529: | ||
| {{EntityLink|Dolphin}} || 1.2 | | {{EntityLink|Dolphin}} || 1.2 | ||
|- | |- | ||
| {{EntityLink|Zombie Nautilus}} | | {{EntityLink|Zombie Nautilus}} || 1.1 | ||
| 1.1 | |- | ||
| {{EntityLink|Axolotl}} {{EntityLink|Frog}} {{EntityLink|Nautilus}} {{EntityLink|Tadpole}} || 1 | |||
|- | |- | ||
| {{EntityLink| | | {{EntityLink|Armor Stand}} {{EntityLink|Bat}} {{EntityLink|Cod}} {{EntityLink|Ender Dragon}} {{EntityLink|Ghast}} {{EntityLink|Glow Squid}} {{EntityLink|Phantom}} {{EntityLink|Pufferfish}} {{EntityLink|Salmon}} {{EntityLink|Shulker}} {{EntityLink|Squid}} {{EntityLink|Tropical Fish}} {{EntityLink|Vex}} {{EntityLink|Wandering Trader}} || 0.7 | ||
| | |||
|- | |- | ||
| {{EntityLink| | | {{EntityLink|Breeze}} || 0.63 | ||
| 0. | |||
|- | |- | ||
| {{EntityLink| | | {{EntityLink|Wither}} || 0.6 | ||
| 0. | |||
|- | |- | ||
| {{EntityLink| | | {{EntityLink|Evoker}} {{EntityLink|Giant}} {{EntityLink|Guardian}} {{EntityLink|Illusioner}} {{EntityLink|Villager}} || 0.5 | ||
| 0. | |||
|- | |- | ||
| {{EntityLink| | | {{EntityLink|Creaking}} || 0.4 | ||
| 0. | |||
|- | |- | ||
| {{EntityLink| | |{{EntityLink|Piglin}} {{EntityLink|Piglin Brute}} {{EntityLink|Pillager}} {{EntityLink|Vindicator}} || 0.35 | ||
| 0. | |||
|- | |- | ||
| {{EntityLink| | | {{EntityLink|Bee}} {{EntityLink|Cat}} {{EntityLink|Cave Spider}} {{EntityLink|Elder Guardian}} {{EntityLink|Enderman}} {{EntityLink|Fox}} {{EntityLink|Hoglin}} {{EntityLink|Ocelot}} {{EntityLink|Rabbit}} {{EntityLink|Ravager}} {{EntityLink|Spider}} {{EntityLink|Warden}} {{EntityLink|Wolf}} {{EntityLink|Zoglin}} || 0.3 | ||
| 0. | |||
|- | |- | ||
| {{EntityLink| | | {{EntityLink|Chicken}} {{EntityLink|Creeper}} {{EntityLink|Endermite}} {{EntityLink|Iron Golem}} {{EntityLink|Pig}} {{EntityLink|Polar Bear}} {{EntityLink|Silverfish}} {{EntityLink|Skeleton}} {{EntityLink|Stray}} {{EntityLink|Bogged}} {{EntityLink|Parched}} {{EntityLink|Turtle}} {{EntityLink|Witch}} {{EntityLink|Wither Skeleton}} || 0.25 | ||
| 0. | |||
|- | |- | ||
| {{EntityLink| | | {{EntityLink|Blaze}} {{EntityLink|Drowned}} {{EntityLink|Husk}} {{EntityLink|Sheep}} {{EntityLink|Zombie}} {{EntityLink|Zombie Villager}} {{EntityLink|Zombified Piglin}} || 0.23 | ||
| 0. | |||
|- | |- | ||
| {{EntityLink| | |{{EntityLink|Frostbite}} | ||
| 0. | |0.21 | ||
|- | |- | ||
| {{EntityLink|Cow}} {{EntityLink|Goat}} {{EntityLink|Mooshroom}} {{EntityLink|Parrot}} {{EntityLink|Skeleton Horse}} {{EntityLink|Snow Golem}} {{EntityLink|Copper Golem}} {{EntityLink|Magma Cube}} | | {{EntityLink|Cow}} {{EntityLink|Goat}} {{EntityLink|Mooshroom}} {{EntityLink|Parrot}} {{EntityLink|Skeleton Horse}} {{EntityLink|Snow Golem}} {{EntityLink|Copper Golem}} {{EntityLink|Magma Cube}} || 0.2 | ||
| 0.2 | |||
|- | |- | ||
| {{EntityLink|Llama}} {{EntityLink|Strider}} {{EntityLink|Trader Llama}} | | {{EntityLink|Llama}} {{EntityLink|Strider}} {{EntityLink|Trader Llama}} || 0.175 | ||
| 0.175 | |||
|- | |- | ||
| {{EntityLink|Panda}} || 0.15 | | {{EntityLink|Panda}} || 0.15 | ||
| Line 616: | Line 562: | ||
| {{EntityLink|Armadillo}} || 0.14 | | {{EntityLink|Armadillo}} || 0.14 | ||
|- | |- | ||
| {{EntityLink|Allay}} {{EntityLink|Sniffer}} {{EntityLink|Player}} | | {{EntityLink|Allay}} {{EntityLink|Sniffer}} {{EntityLink|Player}} || 0.1 | ||
| 0.1 | |||
|- | |- | ||
| {{EntityLink|Camel}} {{EntityLink|Camel Husk}} || 0.09 | | {{EntityLink|Camel}} {{EntityLink|Camel Husk}} || 0.09 | ||
| Line 625: | Line 570: | ||
| {{EntityLink|Happy Ghast}} || 0.05 | | {{EntityLink|Happy Ghast}} || 0.05 | ||
|- | |- | ||
| {{EntityLink|Horse}} {{EntityLink|Donkey}} {{EntityLink|Mule}} | | {{EntityLink|Horse}} {{EntityLink|Donkey}} {{EntityLink|Mule}} || Random<br>(0.1125 – 0.3375) | ||
| Random (0.1125 – 0.3375) | |||
|- | |- | ||
| {{EntityLink|Zombie Horse}} | | {{EntityLink|Zombie Horse}} || Random<br>(0.2135 – 0.2846) | ||
| Random (0.2135 – 0.2846) | |||
|- | |- | ||
| {{EntityLink|Slime}} {{EntityLink|Sulfur Cube}} | | {{EntityLink|Slime}} {{EntityLink|Sulfur Cube}} || 0.2 + 0.1 × ''Size'' | ||
| 0.2 + | |||
|} | |} | ||
| Line 672: | Line 614: | ||
! Entity !! Base value | ! Entity !! Base value | ||
|- | |- | ||
| {{EntityLink|Camel}} {{EntityLink|Camel Husk}} {{EntityLink|Donkey}} {{EntityLink|Horse}} {{EntityLink|Llama}} {{EntityLink|Mule}} {{EntityLink|Skeleton Horse}} {{EntityLink|Trader Llama}} {{EntityLink|Zombie Horse}} | | {{EntityLink|Camel}} {{EntityLink|Camel Husk}} {{EntityLink|Donkey}} {{EntityLink|Horse}} {{EntityLink|Llama}} {{EntityLink|Mule}} {{EntityLink|Skeleton Horse}} {{EntityLink|Trader Llama}} {{EntityLink|Zombie Horse}} || 6 | ||
| 6 | |||
|- | |- | ||
| {{EntityLink|Fox}} | | {{EntityLink|Fox}} || 5 | ||
| 5 | |||
|} | |} | ||
| Line 715: | Line 655: | ||
! Entity !! Base value | ! Entity !! Base value | ||
|- | |- | ||
| {{EntityLink|Zombie}} {{EntityLink|Husk}} {{EntityLink|Drowned}} {{EntityLink|Zombie Villager}} | | {{EntityLink|Zombie}} {{EntityLink|Husk}} {{EntityLink|Drowned}} {{EntityLink|Zombie Villager}} {{EntityLink|Frostbite}}|| Random<br>(0 – 0.1) | ||
| Random<br>(0 – 0.1) | |||
|- | |- | ||
| {{EntityLink|Zombified Piglin}} | | {{EntityLink|Zombified Piglin}} || 0<ref>{{bug|MC-301000}}</ref> | ||
| 0<ref>{{bug|MC-301000}}</ref> | |||
|} | |} | ||
| Line 740: | Line 678: | ||
| {{EntityLink|Creaking}} || 1.0625 | | {{EntityLink|Creaking}} || 1.0625 | ||
|- | |- | ||
| {{EntityLink|Axolotl}} {{EntityLink|Donkey}} {{EntityLink|Drowned}} {{EntityLink|Enderman}} {{EntityLink|Frog}} {{EntityLink|Horse}} {{EntityLink|Iron Golem}} {{EntityLink|Llama}} {{EntityLink|Mule}} {{EntityLink|Ravager}} {{EntityLink|Skeleton Horse}} {{EntityLink|Trader Llama}} {{EntityLink|Turtle}} {{EntityLink|Zombie Horse}} {{EntityLink|Copper Golem}} | | {{EntityLink|Axolotl}} {{EntityLink|Donkey}} {{EntityLink|Drowned}} {{EntityLink|Enderman}} {{EntityLink|Frog}} {{EntityLink|Horse}} {{EntityLink|Iron Golem}} {{EntityLink|Llama}} {{EntityLink|Mule}} {{EntityLink|Ravager}} {{EntityLink|Skeleton Horse}} {{EntityLink|Trader Llama}} {{EntityLink|Turtle}} {{EntityLink|Zombie Horse}} {{EntityLink|Copper Golem}} || 1 | ||
| 1 | |||
|- | |- | ||
| {{EntityLink|Armor Stand}} | | {{EntityLink|Armor Stand}} || 0<ref>{{bug|MC-133544|||WAI}}</ref> | ||
| 0<ref>{{bug|MC-133544|||WAI}}</ref> | |||
|} | |} | ||
| Line 783: | Line 719: | ||
{|class=wikitable | {|class=wikitable | ||
!Entity !! Base value | ! Entity !! Base value | ||
|- | |- | ||
|{{EntityLink|Happy Ghast}} || 16 | | {{EntityLink|Happy Ghast}} || 16 | ||
|- | |- | ||
|{{EntityLink|Armadillo}} {{EntityLink|Axolotl}} {{EntityLink|Bee}} {{EntityLink|Chicken}} {{EntityLink|Cow}} {{EntityLink|Mooshroom}} {{EntityLink|Horse}} {{EntityLink|Donkey}} {{EntityLink|Mule}} {{EntityLink|Llama}} {{EntityLink|Trader Llama}} {{EntityLink|Zombie Horse}} {{EntityLink|Skeleton Horse}} {{EntityLink|Cat}} {{EntityLink|Ocelot}} {{EntityLink|Fox}} {{EntityLink|Frog}} {{EntityLink|Tadpole}} {{EntityLink|Goat}} {{EntityLink|Nautilus}} {{EntityLink|Zombie Nautilus}} {{EntityLink|Panda}} {{EntityLink|Parrot}} {{EntityLink|Pig}} {{EntityLink|Polar Bear}} {{EntityLink|Rabbit}} {{EntityLink|Sheep}} {{EntityLink|Sniffer}} {{EntityLink|Turtle}} {{EntityLink|Wolf}} {{EntityLink|Strider}} || 10 | | {{EntityLink|Armadillo}} {{EntityLink|Axolotl}} {{EntityLink|Bee}} {{EntityLink|Chicken}} {{EntityLink|Cow}} {{EntityLink|Mooshroom}} {{EntityLink|Horse}} {{EntityLink|Donkey}} {{EntityLink|Mule}} {{EntityLink|Llama}} {{EntityLink|Trader Llama}} {{EntityLink|Zombie Horse}} {{EntityLink|Skeleton Horse}} {{EntityLink|Cat}} {{EntityLink|Ocelot}} {{EntityLink|Fox}} {{EntityLink|Frog}} {{EntityLink|Tadpole}} {{EntityLink|Goat}} {{EntityLink|Nautilus}} {{EntityLink|Zombie Nautilus}} {{EntityLink|Panda}} {{EntityLink|Parrot}} {{EntityLink|Pig}} {{EntityLink|Polar Bear}} {{EntityLink|Rabbit}} {{EntityLink|Sheep}} {{EntityLink|Sniffer}} {{EntityLink|Turtle}} {{EntityLink|Wolf}} {{EntityLink|Strider}} || 10 | ||
|- | |- | ||
|{{EntityLink|Sulfur Cube}} || 8 | | {{EntityLink|Sulfur Cube}} || 8 | ||
|} | |} | ||
| Line 801: | Line 737: | ||
| max = 1 | | max = 1 | ||
}} | }} | ||
This attribute determines movement speed and drag when | This attribute determines movement speed and drag when touching [[Minecraft:water]].{{info needed|How exactly are movement speed and drag calculated from it?}} | ||
{{-}}{{anchor|waypoint_receive_range}} | {{-}}{{anchor|waypoint_receive_range}} | ||
=== Waypoint Receive Range === | === Waypoint Receive Range === | ||
{{Infobox attribute | {{Infobox attribute | ||
| Line 829: | Line 766: | ||
| 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 [[Minecraft:locator bar]]. Only players have this attribute. | ||
{| class=wikitable | {| class=wikitable | ||
| Line 939: | Line 876: | ||
Enchantment [[Minecraft:Enchantment_definition#Attribute_effects|attribute effects]] define modifiers that are automatically added to an entity when the enchanted item is equipped in a certain slot, and removed when it is removed. | Enchantment [[Minecraft:Enchantment_definition#Attribute_effects|attribute effects]] define modifiers that are automatically added to an entity when the enchanted item is equipped in a certain slot, and removed when it is removed. | ||
Some enchantments use this effect to add and remove modifiers with the following IDs. The listed IDs are | Some enchantments use this effect to add and remove modifiers with the following IDs. The listed IDs are followed by {{cd|/}} and the name of the slot the enchantment is active in. | ||
{| class="wikitable stikitable sortable collapsible" style="width:100%" data-description="Modifiers" | {| class="wikitable stikitable sortable collapsible" style="width:100%" data-description="Modifiers" | ||
| Line 1,157: | Line 1,094: | ||
===== Misc ===== | ===== Misc ===== | ||
Other parts of the game add and remove additional modifiers. In this table, every mention of "zombies" represents the class {{jcp| net.minecraft.world.entity.monster.zombie.Zombie}}, that is, the entities: [[Minecraft:zombie]], [[Minecraft:drowned]], [[Minecraft:husk]], [[Minecraft:zombie villager]], | Other parts of the game add and remove additional modifiers. In this table, every mention of "zombies" represents the class {{jcp| net.minecraft.world.entity.monster.zombie.Zombie}}, that is, the entities: [[Minecraft:zombie]], [[Minecraft:drowned]], [[Minecraft:husk]], [[Minecraft:zombie villager]], [[Minecraft:zombified piglin]], and [[Minecraft:frostbite]]{{Upcoming|Java 26.4}}. | ||
{| class="wikitable stikitable sortable collapsible" style="width:100%" data-description="Modifiers" | {| class="wikitable stikitable sortable collapsible" style="width:100%" data-description="Modifiers" | ||
| Line 1,246: | Line 1,183: | ||
| {{cd|-0.05*getPercentFrozen()}} | | {{cd|-0.05*getPercentFrozen()}} | ||
| add_value | | add_value | ||
|Applied to all [[Minecraft:living entities]] | |Applied to all [[Minecraft:living entities]] that are inside [[Minecraft:powder snow]] or have the [[Minecraft:Freezing]] effect{{Upcoming|Java 26.4}} ({{cd|[[Minecraft:Entity_format#Entity_format|TicksFrozen]] > 0}}), and removed when the frost effect wears off ({{cd|TicksFrozen{{=}}0}}). The {{cd|getPercentFrozen()}} is the float {{cd|min(140,TicksFrozen)/140}}. | ||
|- | |- | ||
|{{cd|minecraft:sprinting}} | |{{cd|minecraft:sprinting}} | ||
| Line 1,352: | Line 1,289: | ||
[[Minecraft:es:Atributo]] | [[Minecraft:es:Atributo]] | ||
[[Minecraft:fr:Attribut]] | [[Minecraft:fr:Attribut]] | ||
[[Minecraft:he:מאפיין]] | |||
[[Minecraft:ja:属性]] | [[Minecraft:ja:属性]] | ||
[[Minecraft:ko:속성]] | [[Minecraft:ko:속성]] | ||
[[Minecraft:pl:Atrybuty]] | [[Minecraft:pl:Atrybuty]] | ||
[[Minecraft:pt:Atributo]] | [[Minecraft:pt:Atributo]] | ||
[[Minecraft:ru:Атрибут]] | |||
[[Minecraft:zh:属性]] | [[Minecraft:zh:属性]] | ||
Latest revision as of 11:05, 14 October 2026
|
For the {{{Description}}} of the same name, see [[{{{Destination}}}]]. |
Attributes control certain numeric properties of Minecraft:players, Minecraft:mobs, and Minecraft:armor stands. Every entity has a base value for each of its attributes, and modifiers that determine the final value.
List of attributes
Each attribute is identified with a Minecraft:namespaced identifier, and has a default, minimum, and maximum value.
Most attributes are present on all living entities, but some attributes only apply to specific entity types. Additionally, some entity types have a base value other than the default.
Air Drag Modifier
This attribute modifies the air drag an entity experiences. The final air drag is calculated as <math>1-\left(1-\text{friction}\right)\cdot \text{air drag modifier}</math>, clamped to 0 to 1. The friction is 0.91 for Minecraft:sulfur cubes that have absorbed a block, Minecraft:parrots, and Minecraft:bees. For all other entities, including sulfur cubes that have no absorbed block, the friction is 0.98.
Armor
This attribute determines the number of Minecraft:armor points an entity has.
Armor Toughness
This attribute determines an entity's Minecraft:armor toughness.
Attack Damage
This attribute determines the Minecraft:damage dealt by an entity's Minecraft:melee attack. Only the entities listed below have this attribute.
Attack Knockback
This attribute determines additional Minecraft:knockback applied to an entity's Minecraft:melee attack.Template:Info needed
| Entity | Base value |
|---|---|
| Template:EntityLink Template:EntityLink | 1.5 |
| Template:EntityLink Template:EntityLink | 1 |
Attack Speed
Template:Infobox attribute This attribute determines the rate at which a Minecraft:player's attack cooldown recharges. Its value is the number of full-strength attacks per second. Only players have this attribute.
Nameplate Score Distance
Template:Infobox attribute This attribute determines the distance within which a Minecraft:scoreboard objective with a Template:Cd display slot is visible above an entity.
Block Break Speed
Template:Infobox attribute This attribute multiplies the speed at which a Minecraft:player breaks blocks. Only players have this attribute.
Block Interaction Range
Template:Infobox attribute This attribute determines the block Minecraft:interaction range for players. Only players have this attribute.
Bounciness
Template:Infobox attribute This attribute determines the restitution of motion an entity is given when landing on the ground.
Burning Time
Template:Infobox attribute This attribute multiplies the duration for which an entity should remain on Minecraft:fire after being ignited.
Camera Distance
Template:Infobox attribute This attribute determines the maximum distance at which the camera is placed away from the player or spectated entity when in a Minecraft:third-person view. This distance is multiplied by the Template:Cd attribute to get a final target camera distance. If the entity being ridden has a larger Template:Cd attribute, that distance will be used. The final distance can be reduced by colliding certain blocks.
| Entity | Base value |
|---|---|
| Template:EntityLink Template:EntityLink | 8 |
| Template:EntityLink Template:EntityLink | 16 |
Entity Interaction Range
Template:Infobox attribute This attribute determines the entity Minecraft:interaction range for players.
Explosion Knockback Resistance
Template:Infobox attribute This attribute determines the proportion of knockback from Minecraft:explosions an entity resists. A value of 1 eliminates the knockback.
Fall Damage Multiplier
Template:Infobox attribute This attribute multiplies the amount of Minecraft:fall damage an entity receives.
Flying Speed
Template:Infobox attribute This attribute determines the flying speed of an entity.Template:Info needed Only the entities listed below have this attribute.
| Entity | Base value |
|---|---|
| Template:EntityLink Template:EntityLink | 0.6 |
| Template:EntityLink | 0.1 |
| Template:EntityLink | 0.06 |
| Template:EntityLink | 0.05 |
| Template:EntityLink | 0.4 |
Mob Follow Range
Template:Infobox attribute This attribute determines the range in blocks within which a mob targets players or other mobs to track. Exiting this range causes the mob to cease following the player/mob. Only mobs have this attribute.
Friction Modifier
Template:Infobox attribute This attribute determines the friction experienced by an entity.Template:Info needed
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 | Base value |
|---|---|
| Template:EntityLink Template:EntityLink Template:EntityLink | Random (0.4 – 1.0) |
| Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink | 0.5 |
Knockback Resistance
This attribute determines the proportion of horizontal knockback from attacks and projectiles an entity resists. A value of 1 eliminates the knockback. Vertical knockback is not affected. It does not affect Minecraft:explosions.<ref>Template:Bug</ref>
| Entity | Base value |
|---|---|
| Template:EntityLinkTemplate:Only | 100 |
| Template:EntityLink Template:EntityLink | 1 |
| Template:EntityLink | 0.75 |
| Template:EntityLink Template:EntityLink | 0.6 |
| Template:EntityLink Template:EntityLink | 0.30000001192092896 |
| Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink | Random (0 – 0.05) |
Luck
This attribute affects the results of Minecraft:loot tables, with a higher attribute value increasing the amount and quality of results.
The number of rolls is increased by the pools "bonus rolls"-value times this attributes value, rounded down, and the weight of each entry is increased by its quality times this attributes value, also rounded down.
Only players have this attribute.
Max Absorption
Template:Infobox attribute This attribute determines an entity's maximum Minecraft:absorption.
Max Health
Template:Infobox attribute This attribute determines an entity's maximum Minecraft:health. It determines the highest health they may be healed to.
Mining Efficiency
Template:Infobox attribute This attribute increases the speed at which a Minecraft:player breaks blocks. Only players have this attribute.
Movement Efficiency
Template:Infobox attribute This attribute is a factor to improve walking on terrain that slows down movement, such as Minecraft:soul sand. A value of 1 removes the slowdown.
Movement Speed
Template:Infobox attribute This attribute determines the speed at which an entity moves. It represents a multiplier for acceleration per tick. A mob's actual speed in blocks/second is approximately 43 times this value (see Minecraft:Entity#Formulas.)
Name Tag Distance
Template:Infobox attribute This attribute determines the distance within which an entity's Minecraft:custom name is visible.
Oxygen Bonus
Template:Infobox attribute This attribute determines the chance that an entity's remaining air decreases while underwater in any given game tick. The chance is given by Template:Frac.
Safe Fall Distance
Template:Infobox attribute This attribute determines the distance in blocks an entity can fall before Minecraft:fall damage starts to accumulate.
Scale
Template:Infobox attribute This attribute multiplies an entity's size and Minecraft:hitbox dimensions.
Sneaking Speed
Template:Infobox attribute This attribute multiplies a player's movement speed when Minecraft:sneaking or Minecraft:crawling. Only players have this attribute.
Zombie Reinforcements
Template:Infobox attribute This attribute determines the chance for a Minecraft:zombie to spawn another zombie when attacked. Only the entities listed below have this attribute.
| Entity | Base value |
|---|---|
| Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink Template:EntityLink | Random (0 – 0.1) |
| Template:EntityLink | 0<ref>Template:Bug</ref> |
Step Height
Template:Infobox attribute This attribute determines the maximum number of blocks that an entity can step up without jumping. Minecraft:Sneaking prevents drops from heights that are higher than this value.<ref>Template:Bug</ref>
Submerged Mining Speed
Template:Infobox attribute This attribute multiplies a player's mining speed when underwater. Only players have this attribute.
Sweeping Damage Ratio
Template:Infobox attribute This attribute determines the proportion of the base attack damage dealt to secondary targets when a player performs a Minecraft:sweep attack. This is in addition to the base damage of the sweep damage itself. Only players have this attribute.
Mob Tempt Range
This attribute determines the range in blocks in which a mob can be tempted, following a player holding a specific item.
Water Movement Efficiency
Template:Infobox attribute This attribute determines movement speed and drag when touching Minecraft:water.Template:Info needed
Waypoint Receive Range
Template:Infobox attribute This attribute determines the maximum distance from a player to a waypoint at which the waypoint is displayed on the Minecraft:locator bar. Only players have this attribute.
| Entity | Base value |
|---|---|
| Template:EntityLink | 60,000,000 |
Waypoint Transmit Range
Template:Infobox attribute This attribute determines the distance at which an entity displays as a waypoint on the Minecraft:locator bar. Only players have this attribute.
| Entity | Base value |
|---|---|
| Template:EntityLink | 60,000,000 |
Modifiers
Attribute modifiers are persistent increases or decreases to an attribute's base value by preset operations.
Each modifier has a Minecraft:namespaced identifier to uniquely identify it. Modifiers affect exactly one attribute, increasing or decreasing its value depending on the modifier's operation and value. The resulting value after modification is capped by the attribute's minimum and maximum limits.
Operations
A modifier may perform one of three possible operations:
| Operation | Description |
|---|---|
| add_value | Adds all of the modifiers' amounts to the base attribute.
<math>\text{Total} = \text{Base} + \text{Amount}_1 + \text{Amount}_2 + \ldots + \text{Amount}_n</math> For example, applying two add_value modifiers with amounts of 2 and 4, to attribute base of 3: <math>\text{Total} = 3 + 2 + 4 = 9</math> |
| add_multiplied_base | Multiplies the base attribute by (1 + sum of modifiers' amounts).
<math>\text{Total} = \text{Base} \times (1 + \text{Amount}_1 + \text{Amount}_2 + \ldots + \text{Amount}_n)</math>Template:Note For example, applying two add_multiplied_base modifiers with amounts of 2 and 4, to attribute base of 3: <math>\text{Total} = 3 \times (1 + 2 + 4) = 3 \times 7 = 21</math> |
| add_multiplied_total | Multiplies the base attribute by (1 + modifiers' amounts) for every modifier.
<math>\text{Total} = \text{Base} \times (1 + \text{Amount}_1) \times (1 + \text{Amount}_2) \times \ldots \times (1 + \text{Amount}_n)</math> For example, applying two add_multiplied_total modifiers with amounts of 2 and 4, to attribute base of 3: <math>\text{Total} = 3 \times (1 + 2) \times (1 + 4) = 3 \times 3 \times 5 = 45</math> |
If multiple modifiers are applied to an attribute, the game first executes all Template:Cd modifiers, then all Template:Cd modifiers, and finally all Template:Cd modifiers. The Total value is always carried as the Base for the next set of modifiers.
The final value is clamped to fit the attribute's minimum and maximum value range.
<references group="note"/>
Applying modifiers
Various systems in the game add and remove modifiers.
Commands
The Template:Command command can add or remove specific modifiers, including custom ones. Except for players, it is also possible add, remove and custom with Template:Cmd.
Items
The [[Minecraft:Data_component_format#attribute_modifiers|Template:Cd item component]] defines modifiers that are automatically added to an entity when the item is equipped in a certain slot, and removed when it is removed.
All vanilla weapons and armor use this component to add and remove modifiers with the following IDs:
Enchantments
Enchantment attribute effects define modifiers that are automatically added to an entity when the enchanted item is equipped in a certain slot, and removed when it is removed.
Some enchantments use this effect to add and remove modifiers with the following IDs. The listed IDs are followed by Template:Cd and the name of the slot the enchantment is active in.
| Modifier ID | Attribute | Minecraft:Level-based value | Operation | Enchantment |
|---|---|---|---|---|
| Template:Cd | Template:Cd |
type: Template:Cd, |
add_multiplied_total | Minecraft:Aqua Affinity |
| Template:Cd | Template:Cd |
type: Template:Cd, |
add_value | Minecraft:Blast Protection |
| Template:Cd | Template:Cd |
type: Template:Cd, |
add_value | Minecraft:Depth Strider |
| Template:Cd | Template:Cd |
type: Template:Cd, |
add_value | Minecraft:Efficiency |
| Template:Cd | Template:Cd | type: Template:Cd, base: -0.15, |
add_multiplied_base | Minecraft:Fire Protection |
| Template:Cd | Template:Cd | type: Template:Cd, base: 1.0, |
add_value | Minecraft:Respiration |
| Template:Cd | Template:Cd | type: Template:Cd, base: 0.0405, |
add_value | Minecraft:Soul Speed |
| Template:Cd | 1.0 | add_value | ||
| Template:Cd | Template:Cd | add_value | Minecraft:Sweeping Edge | |
| Template:Cd | Template:Cd |
type: Template:Cd, |
add_value | Minecraft:Swift Sneak |
Sulfur cube archetypes
Template:Missing information Minecraft:Sulfur cube archetype definitions define modifiers that are automatically added to a Minecraft:sulfur cube when one of the specified items is given to it, and removed when it is removed.
See Minecraft:sulfur cube archetype for the values.
The vanilla archetypes add and remove modifiers with the following IDs:
Hardcoded
Some other attribute modifiers are hardcoded, not depending on Minecraft:data packs or Minecraft:data components, but rather on the game code. Although it is still possible to change these modifiers with Template:Cmd, it is not possible to prevent them from appearing in specific conditions.
Effects
Some Minecraft:status effects apply modifiers when the effect is applied, and remove them when the effect runs out. The final value of the added attribute is multiplied by Minecraft:effect potency (in other words, multiplied by Template:Cd).
| Modifier ID | Attribute | Value | Operation | Effect |
|---|---|---|---|---|
| Template:Cd | Template:Cd | 0.2 | add_multiplied_total | Template:EffectLink |
| Template:Cd | Template:Cd | -0.15 | add_multiplied_total | Template:EffectLink |
| Template:Cd | Template:Cd | 0.1 | add_multiplied_total | Template:EffectLink |
| Template:Cd | Template:Cd | -0.1 | add_multiplied_total | Template:EffectLink |
| Template:Cd | Template:Cd | 3.0 | add_value | Template:EffectLink |
| Template:Cd | Template:Cd | -4.0 | add_value | Template:EffectLink |
| Template:Cd | Template:Cd | 1.0 | add_value | Template:EffectLink |
| Template:Cd | Template:Cd | -1.0 | add_multiplied_total | Template:EffectLink |
| Template:Cd | Template:Cd | 4.0 | add_value | Template:EffectLink |
| Template:Cd | Template:Cd | 4.0 | add_value | Template:EffectLink |
| Template:Cd | Template:Cd | 1.0 | add_value | Template:EffectLink |
| Template:Cd | Template:Cd | -1.0 | add_value | Template:EffectLink |
Misc
Other parts of the game add and remove additional modifiers. In this table, every mention of "zombies" represents the class Template:Jcp, that is, the entities: Minecraft:zombie, Minecraft:drowned, Minecraft:husk, Minecraft:zombie villager, Minecraft:zombified piglin, and Minecraft:frostbiteTemplate:Upcoming.
| Modifier ID | Attribute | Value | Operation | Details |
|---|---|---|---|---|
| Template:Cd | Template:Cd | Template:Cd | add_value | Applied randomly to all mobs when they spawn. |
| Template:Cd | Template:Cd | Template:Cd | add_value | Applied randomly to all Minecraft:zombies when they spawn. |
| Template:Cd | Template:Cd | Template:Cd | add_multiplied_total | Applied randomly to some Minecraft:zombies when they spawn. Only applies if greater than 1. |
| Template:Cd | Template:Cd | Template:Cd | add_value | Applied randomly to some Minecraft:zombies to turn them into "leaders". |
| Template:Cd | Template:Cd | add_multiplied_total | ||
| Template:Cd | Template:Cd | Template:Cd | add_value | Applied to a Minecraft:zombie when it successfully spawns a reinforcement. The Template:Cd is the value of the modifier previously, or Template:Cd if it does not exist. |
| Template:Cd | Template:Cd | -0.05 | add_value | Applied to Minecraft:zombie reinforcements when they spawn. |
| Template:Cd | Template:Cd | Template:EntityLink: 0.5 Template:EntityLink: 0.2 |
add_multiplied_base | Applied to Minecraft:zombies and Minecraft:piglins as babies, and removed when they are not babies. |
| Template:Cd | Template:Cd | Template:EntityLink: 0.15 Template:EntityLink: 0.05 |
add_value | Applied to Minecraft:endermen when they acquire a target, and removed when they lose it. Applied to adult Minecraft:zombified piglins when they get angry, and removed when they stop being angry. |
| Template:Cd | Template:Cd | 20.0 | add_value | Applied to Minecraft:shulkers when their shell fully closes, and removed when it opens. |
| Template:Cd | Template:Cd | 0.5 | add_value | Applied to Minecraft:players when they enter Minecraft:creative mode, and removed when leaving creative mode. |
| Template:Cd | Template:Cd | 2.0 | add_value | Applied to Minecraft:players when they enter Minecraft:creative mode, and removed when leaving creative mode. |
| Template:Cd | Template:Cd | -0.25 | add_value | Applied to Minecraft:witches when they start drinking a Minecraft:potion, and removed when they finish drinking it. |
| Template:Cd | Template:Cd | Template:Cd | add_value | Applied to all Minecraft:living entities that are inside Minecraft:powder snow or have the Minecraft:Freezing effectTemplate:Upcoming (Template:Cd), and removed when the frost effect wears off (Template:Cd). The Template:Cd is the float Template:Cd. |
| Template:Cd | Template:Cd | 0.3 | add_multiplied_total | Applied to all living entities when they start Minecraft:sprinting, and removed when they stop. |
| Template:Cd | Template:Cd | -1.0 | add_multiplied_total | Applied to Minecraft:players when they start Minecraft:sneaking, and removed when they stop. |
| Template:Cd | Template:Cd | 5.0 | add_value | Applied to Minecraft:rabbits when they become the killer bunny, and removed when they become a different variant. |
| Template:Cd | Template:Cd | -0.34 | add_multiplied_base | Applied to Minecraft:striders when they become cold outside of Minecraft:lava, and removed when they return to lava. |
History
Java Edition
Bedrock Edition
Legacy Console Edition
Issues
References
Minecraft:de:Attribut Minecraft:es:Atributo Minecraft:fr:Attribut Minecraft:he:מאפיין Minecraft:ja:属性 Minecraft:ko:속성 Minecraft:pl:Atrybuty Minecraft:pt:Atributo Minecraft:ru:Атрибут Minecraft:zh:属性