Attribute

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

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

List of attributes

[edit | edit source]

Each attribute is identified with a namespaced identifier, and has a default, minimum, and maximum value.

Most attributes are present on all living entities, but some attributes only apply to specific entity types. Additionally, some entity types have a base value other than the default.

Air Drag Modifier

[edit | edit source]
Air Drag Modifier
ID air_drag_modifier
Default 1
Minimum 0
Maximum 2048

This attribute determines the air drag an entity experiences.​[more information needed][upcoming: JE 26.2]

Armor

[edit | edit source]
Armor
ID armor
Default 0  (🛡)
Minimum 0  (🛡)
Maximum 30  (🛡 × 15)

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

Entity Base value
Killer Bunny 8 (🛡🛡🛡🛡)
Wither 4 (🛡🛡)
Zombie Husk Drowned Zombie Villager Zombified Piglin 2 (🛡)

Armor Toughness

[edit | edit source]
Armor Toughness
ID armor_toughness
Default 0
Minimum 0
Maximum 20

This attribute determines an entity's armor toughness.

Attack Damage

[edit | edit source]
Attack Damage
ID attack_damage
Default 2HP❤️
Minimum 0HP🖤
Maximum 2048HP❤️ × 1024

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

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

Attack Knockback

[edit | edit source]
Attack Knockback
ID attack_knockback
Default 0
Minimum 0
Maximum 5

This attribute determines additional knockback applied to an entity's melee attack.​[more information needed]

Entity Base value
Ravager Warden 1.5
Hoglin Zoglin 1

Attack Speed

[edit | edit source]
Attack Speed
ID attack_speed
Default 4
Minimum 0
Maximum 1024

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

Nameplate Score Distance

[edit | edit source]
Nameplate Score Distance
ID below_name_distance
Default 10
Minimum 0
Maximum 512

This attribute determines the distance within which a scoreboard objective with a below_name display slot is visible above an entity.​[upcoming: JE 26.2]

Block Break Speed

[edit | edit source]
Block Break Speed
ID block_break_speed
Default 1
Minimum 0
Maximum 1024

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

Block Interaction Range

[edit | edit source]
Block Interaction Range
ID block_interaction_range
Default 4.5
Minimum 0
Maximum 64

This attribute determines the block interaction range for players. Only players have this attribute.

Bounciness

[edit | edit source]
Bounciness
ID bounciness
Default 0
Minimum 0
Maximum 1

This attribute determines the restitution of motion an entity is given when landing on the ground.​[upcoming: JE 26.2]

Burning Time

[edit | edit source]
Burning Time
ID burning_time
Default 1
Minimum 0
Maximum 1024

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

Camera Distance

[edit | edit source]
Camera Distance
ID camera_distance
Default 4
Minimum 0
Maximum 32

This attribute determines the distance at which the camera is placed away from the player or spectated entity when in a third-person view. This distance is multiplied by the scale attribute to get a final target camera distance. If the entity being ridden has a larger camera_distance attribute, that distance will be used.

Entity Base value
Ghast Happy Ghast 8
Giant Ender Dragon 16

Entity Interaction Range

[edit | edit source]
Entity Interaction Range
ID entity_interaction_range
Default 3
Minimum 0
Maximum 64

This attribute determines the entity interaction range for players.

Explosion Knockback Resistance

[edit | edit source]
Explosion Knockback Resistance
ID explosion_knockback_resistance
Default 0
Minimum 0
Maximum 1

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

Fall Damage Multiplier

[edit | edit source]
Fall Damage Multiplier
ID fall_damage_multiplier
Default 1
Minimum 0
Maximum 100

This attribute multiplies the amount of fall damage an entity receives.

Entity Base value
Camel Donkey Horse Llama Mule Skeleton Horse Trader Llama Zombie Horse Camel Husk 0.5

Flying Speed

[edit | edit source]
Flying Speed
ID flying_speed
Default 0.4
Minimum 0
Maximum 1024

This attribute determines the flying speed of an entity.​[more information needed] Only the entities listed below have this attribute.

Entity Base value
Bee Wither 0.6
Allay 0.1
Ghast 0.06
Happy Ghast 0.05
Parrot 0.4

Mob Follow Range

[edit | edit source]
Mob Follow Range
ID follow_range
Default 32
Minimum 0
Maximum 2048

This attribute determines the range in blocks within which a mob targets players or other mobs to track. Exiting this range causes the mob to cease following the player/mob. Only mobs have this attribute.

Entity Base value
Ghast 100
Enderman 64
Allay Bee Blaze Villager 48
Llama Wither 40
Zombie Husk Drowned Zombie Villager Zombified Piglin 35
Fox Pillager Ravager Creaking 32
Breeze Warden 24
Polar Bear 20
Illusioner 18
Evoker Vindicator Piglin Brute 12
All other mobs 16

Friction Modifier

[edit | edit source]
Friction Modifier
ID friction_modifier
Default 1
Minimum 0
Maximum 2048

This attribute determines the friction experienced by an entity.​[more information needed][upcoming: JE 26.2]

Gravity

[edit | edit source]
Gravity
ID gravity
Default 0.08
Minimum -1
Maximum 1

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

Jump Strength

[edit | edit source]
Jump Strength
ID jump_strength
Default 0.42
Minimum 0
Maximum 32

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

Entity Base value
Horse Skeleton Horse Zombie Horse Random
(0.4–1.0)
Donkey Mule Llama Trader Llama 0.5

Knockback Resistance

[edit | edit source]
Knockback Resistance
ID knockback_resistance
Default 0
Minimum 0​[until: JE 26.2]
-2​[upcoming: JE 26.2]
Maximum 1

This attribute determines the proportion of horizontal knockback from attacks and projectiles an entity resists. A value of 1 eliminates the knockback. Vertical knockback is not affected. It does not affect explosions.[1]

Entity Base value
Iron Golem Warden 1
Ravager 0.75
Hoglin Zoglin 0.6
Nautilus Zombie Nautilus 0.6

Luck
ID luck
Default 0
Minimum -1024
Maximum 1024

This attribute affects the results of loot tables, with a higher attribute value increasing the amount and quality of results.

The number of rolls is increased by the pools "bonus rolls"-value times this attributes value, rounded down, and the weight of each entry is increased by its quality times this attributes value, also rounded down.

Only players have this attribute.

Max Absorption

[edit | edit source]
Max Absorption
ID max_absorption
Default 0HP🖤
Minimum 0HP🖤
Maximum 2048HP❤️ × 1024

This attribute determines an entity's maximum absorption.

Max Health

[edit | edit source]
Max Health
ID max_health
Default 20HP❤️ × 10
Minimum 1HP💔
Maximum 1024HP❤️ × 512

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

Entity Base value
Warden 500HP❤️ × 250
Wither 300HP❤️ × 150
Ender Dragon 200HP❤️ × 100
Iron Golem Giant Ravager 100HP❤️ × 50
Elder Guardian 80HP❤️ × 40
Piglin Brute 50HP❤️ × 25
Tamed Wolf Enderman Zoglin Hoglin 40HP❤️ × 20
Camel Camel Husk Illusioner 32HP❤️ × 16
Polar Bear Guardian Shulker Breeze Turtle 30HP❤️ × 15
Witch 26HP❤️ × 13
Zombie Horse 25HP❤️ × 12.5
Evoker Pillager Vindicator 24HP❤️ × 12
Happy Ghast 20HP❤️ × 10
Piglin Bogged Parched Spider 16HP❤️ × 8
Skeleton Horse Nautilus Zombie Nautilus 15HP❤️ × 7.5
Axolotl Sniffer 14HP❤️ × 7
Armadillo Copper Golem Cave Spider 12HP❤️ × 6
Bee Cow Mooshroom Dolphin Cat Ocelot Fox Frog Goat Panda Pig Squid Glow Squid Ghast 10HP❤️❤️❤️❤️❤️
Sheep Wolf Endermite Silverfish 8HP❤️❤️❤️❤️
Bat Tadpole Parrot 6HP❤️❤️❤️
Chicken Snow Golem 4HP❤️❤️
Cod Salmon Tropical Fish Pufferfish Rabbit 3HP❤️💔
Creaking 1HP💔
Horse Donkey Mule Llama Trader Llama Random
(15HP❤️ × 7.5 - 30HP❤️ × 15)
Slime Magma Cube 1HP💔 × Size × Size
Sulfur Cube 4HP❤️❤️ × Size

Mining Efficiency

[edit | edit source]
Mining Efficiency
ID mining_efficiency
Default 0
Minimum 0
Maximum 1024

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

Movement Efficiency

[edit | edit source]
Movement Efficiency
ID movement_efficiency
Default 0
Minimum 0
Maximum 1

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

Speed

[edit | edit source]
Speed
ID movement_speed
Default 0.7
Minimum 0
Maximum 1024

This attribute determines the speed at which an entity moves. It represents a multiplier for acceleration per tick. A mob's actual speed in blocks/second is approximately 43 times this value (see Entity#Formulas.)

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

Nameplate Distance

[edit | edit source]
Nameplate Distance
ID nameplate_distance
Default 64
Minimum 0
Maximum 512

This attribute determines the distance within which an entity's custom name is visible.​[upcoming: JE 26.2]

Oxygen Bonus

[edit | edit source]
Oxygen Bonus
ID oxygen_bonus
Default 0
Minimum 0
Maximum 1024

This attribute determines the chance that an entity's remaining air decreases while underwater in any given game tick. The chance is given by 1(oxygen_bonus + 1).

Safe Fall Distance

[edit | edit source]
Safe Fall Distance
ID safe_fall_distance
Default 3
Minimum -1024
Maximum 1024

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

Entity Base value
Camel Camel Husk Donkey Horse Llama Mule Skeleton Horse Trader Llama Zombie Horse 6
Fox 5

Scale

[edit | edit source]
Scale
ID scale
Default 1
Minimum 0.0625
Maximum 16

This attribute multiplies an entity's size and hitbox dimensions.

Sneaking Speed

[edit | edit source]
Sneaking Speed
ID sneaking_speed
Default 0.3
Minimum 0
Maximum 1

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

Zombie Reinforcements

[edit | edit source]
Zombie Reinforcements
ID spawn_reinforcements
Default 0
Minimum 0
Maximum 1

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

Entity Base value
Zombie Husk Drowned Zombie Villager Random
(0 – 0.1)
Zombified Piglin 0[2]

Step Height

[edit | edit source]
Step Height
ID step_height
Default 0.6
Minimum 0
Maximum 10

This attribute determines the maximum number of blocks that an entity can step up without jumping. Sneaking prevents drops from heights that are higher than this value.[3]

Entity Base value
Camel Camel Husk 1.5
Creaking 1.0625
Axolotl Donkey Drowned Enderman Frog Horse Iron Golem Llama Mule Ravager Skeleton Horse Trader Llama Turtle Zombie Horse Copper Golem 1
Armor Stand 0[4]

Submerged Mining Speed

[edit | edit source]
Submerged Mining Speed
ID submerged_mining_speed
Default 0.2
Minimum 0
Maximum 20

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

Sweeping Damage Ratio

[edit | edit source]
Sweeping Damage Ratio
ID sweeping_damage_ratio
Default 0
Minimum 0
Maximum 1

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

Mob Tempt Range

[edit | edit source]
Mob Tempt Range
ID tempt_range
Default 10
Minimum 0
Maximum 2024

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

Entity Base value
Happy Ghast 16
Armadillo Axolotl Bee Chicken Cow Mooshroom Horse Donkey Mule Llama Trader Llama Zombie Horse Skeleton Horse Cat Ocelot Fox Frog Tadpole Goat Nautilus Zombie Nautilus Panda Parrot Pig Polar Bear Rabbit Sheep Sniffer Turtle Wolf Strider 10
Sulfur Cube 8

Water Movement Efficiency

[edit | edit source]
Water Movement Efficiency
ID water_movement_efficiency
Default 0
Minimum 0
Maximum 1

This attribute determines movement speed and drag when submerged.​[more information needed]

Waypoint Receive Range

[edit | edit source]
Waypoint Receive Range
ID waypoint_receive_range
Default 0
Minimum 0
Maximum 60,000,000

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

Entity Base value
Player 60,000,000

Waypoint Transmit Range

[edit | edit source]
Waypoint Transmit Range
ID waypoint_transmit_range
Default 0
Minimum 0
Maximum 60,000,000

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

Entity Base value
Player 60,000,000

Modifiers

[edit | edit source]

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

Each modifier has a namespaced identifier to uniquely identify it. Modifiers affect exactly one attribute, increasing or decreasing its value depending on the modifier's operation and value. The resulting value after modification is capped by the attribute's minimum and maximum limits.

Operations

[edit | edit source]

A modifier may perform one of three possible operations:

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

Total=Base+Amount1+Amount2++Amountn

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

Total=3+2+4=9

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

Total=Base×(1+Amount1+Amount2++Amountn)[note 1]

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

Total=3×(1+2+4)=3×7=21

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

Total=Base×(1+Amount1)×(1+Amount2)××(1+Amountn)

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

Total=3×(1+2)×(1+4)=3×3×5=45

If multiple modifiers are applied to an attribute, the game first executes all add_value modifiers, then all add_multiplied_base modifiers, and finally all add_multiplied_total modifiers. The Total value is always carried as the Base for the next set of modifiers.

The final value is clamped to fit the attribute's minimum and maximum value range.

  1. Simplified, the calculation used in the game's code is like: Total=Base+(Base×Amount1)+(Base×Amount2)++(Base×Amountn)

Applying modifiers

[edit | edit source]

Various systems in the game add and remove modifiers.

Commands

[edit | edit source]

The /attribute command can add or remove specific modifiers, including custom ones.

Items

[edit | edit source]

The attribute_modifiers item component defines modifiers that are automatically added to an entity when the item is equipped in a certain slot, and removed when it is removed.

All vanilla weapons and armor use this component to add and remove modifiers with the following IDs:

Modifier ID Attribute Items
minecraft:base_attack_damage attack_damage Swords Spears Trident Mace Axes Pickaxes Shovels Hoes
minecraft:base_attack_speed attack_speed Swords Spears Trident Mace Axes Pickaxes Shovels Hoes
minecraft:armor.helmet armor
armor_toughness
knockback_resistance
Helmets
minecraft:armor.chestplate armor
armor_toughness
knockback_resistance
Chestplates
minecraft:armor.leggings armor
armor_toughness
knockback_resistance
Leggings
minecraft:armor.boots armor
armor_toughness
knockback_resistance
Boots
minecraft:armor.body armor
armor_toughness
knockback_resistance
Horse Armor Nautilus Armor Wolf Armor
minecraft:waypoint_transmit_range_hide waypoint_transmit_range Carved Pumpkin Heads

Enchantments

[edit | edit source]

Enchantment attribute effects define modifiers that are automatically added to an entity when the enchanted item is equipped in a certain slot, and removed when it is removed.

Some vanilla enchantments use this effect to add and remove modifiers with the following IDs. The listed IDs are appended with / followed by the name of the slot the enchantment is active in.

Modifier ID Attribute Enchantment
minecraft:enchantment.aqua_affinity submerged_mining_speed Aqua Affinity
minecraft:enchantment.blast_protection explosion_knockback_resistance Blast Protection
minecraft:enchantment.depth_strider water_movement_efficiency Depth Strider
minecraft:enchantment.efficiency mining_efficiency Efficiency
minecraft:enchantment.fire_protection burning_time Fire Protection
minecraft:enchantment.respiration oxygen_bonus Respiration
minecraft:enchantment.soul_speed movement_speed
movement_efficiency
Soul Speed
minecraft:enchantment.sweeping_edge sweeping_damage_ratio Sweeping Edge
minecraft:enchantment.swift_sneak sneaking_speed Swift Sneak

Effects

[edit | edit source]

Some status effects apply modifiers when the effect is applied, and remove them when the effect runs out.

Modifier ID Attribute Effect
minecraft:effect.speed movement_speed Speed
minecraft:effect.slowness movement_speed Slowness
minecraft:effect.haste attack_speed Haste
minecraft:effect.mining_fatigue attack_speed Mining Fatigue
minecraft:effect.strength attack_damage Strength
minecraft:effect.weakness attack_damage Weakness
minecraft:effect.jump_boost safe_fall_distance Jump Boost
minecraft:effect.waypoint_transmit_range_hide waypoint_transmit_range Invisibility
minecraft:effect.health_boost max_health Health Boost
minecraft:effect.absorption max_absorption Absorption
minecraft:effect.luck luck Luck
minecraft:effect.unluck luck Bad Luck

Sulfur Cube Archetypes

[edit | edit source]

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

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

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

Hardcoded

[edit | edit source]

Other parts of the game add and remove additional modifiers.

Modifier ID Attribute Details
minecraft:random_spawn_bonus follow_range Applied randomly to all mobs when they spawn.
minecraft:random_spawn_bonus knockback_resistance Applied randomly to all zombies when they spawn.
minecraft:zombie_random_spawn_bonus follow_range Applied randomly to some zombies when they spawn.
minecraft:leader_zombie_bonus spawn_reinforcements_chance
max_health
Applied randomly to some zombies to turn them into "leaders".
minecraft:reinforcement_caller_charge spawn_reinforcements_chance Applied to a zombie when it successfully spawns a reinforcement.
minecraft:reinforcement_callee_charge spawn_reinforcements_chance Applied to zombie reinforcements when they spawn.
minecraft:baby movement_speed Applied to zombies and piglins as babies, and removed when they are not babies.
minecraft:attacking movement_speed Applied to endermen when they acquire a target, and removed when they lose it.
Applied to adult zombified piglins when they get angry, and removed when they stop being angry.
minecraft:covered armor Applied to shulkers when their shell fully closes, and removed when it opens.
minecraft:creative_mode_block_range block_interaction_range Applied to players when they enter creative mode, and removed when leaving creative mode.
minecraft:creative_mode_entity_range entity_interaction_range Applied to players when they enter creative mode, and removed when leaving creative mode.
minecraft:drinking movement_speed Applied to witches when they start drinking a potion, and removed when they finish drinking it.
minecraft:powder_snow movement_speed Applied to all living entities while inside powder snow, and removed when the frost effect wears off.
minecraft:sprinting movement_speed Applied to all living entities when they start sprinting, and removed when they stop.
minecraft:waypoint_transmit_range_crouch waypoint_transmit_range Applied to players when they start sneaking, and removed when they stop.
minecraft:evil attack_damage Applied to rabbits when they become the killer bunny, and removed when they become a different variant.
minecraft:suffocating attack_damage Applied to striderss when they become cold outside of lava, and removed when they return to lava.

History

[edit | edit source]

Java Edition

[edit | edit source]
Java Edition
1.6.113w16aAdded attributes and modifiers.
The following attributes existed: "Max Health", "Follow Range", "Knockback Resistance"; furthermore, "Jump Strength" and "Speed" existed as horse-specific attributes.
The only modifiers were both "Random spawn bonus", one used on Zombies to knockback resistance with operation 0, and the other on all mobs to follow range with operation 1.
13w17aAdded "Spawn Reinforcements Chance" attribute for Zombies.
Added "Zombie reinforcement charge" (to spawn reinforcements charge), "Random zombie-spawn bonus" (to follow range), and "Leader zombie bonus" (to both reinforcements charge and max health).
13w18aReplaced "Zombie reinforcement charge" with "Zombie reinforcement caller charge"
13w21aAttributes now can be specified in NBT.
Attributes now have IDs and corresponding translation keys.
Modifiers now display on items.
Added "Attack Damage" and made "Speed" generic.
Added "potion.moveSpeed", "potion.moveSlowdown", "potion.damageBoost", and "potion.weakness" modifiers.
Added "Sprinting speed boost", "Fleeing speed bonus", "Attacking speed boost" (for both pigmen and endermen), "Drinking speed penalty", and "Baby speed boost".
Added "Tool modifier" and "Weapon modifier".
13w23bAdded "potion.healthBoost" modifier.
1.7.213w36aAttributes/modifiers can be added to items or mobs without the use of third-party NBT editing software by adding data tags to the /give and /summon commands.
1.915w34bAdded attack speed attribute.
15w36dAdded armor attribute.
15w44bAdded luck attribute.
1.9.1pre1Added armorToughness attribute.
1.12pre1Added flyingSpeed attribute.
1.1418w43aAdded attackKnockback attribute.
1.1620w06aKnockback resistance is now a scale rather than probability.
20w14aItems and entities no longer keep unknown attributes.
Names of some attributes have been renamed to meet resource location requirements (i.e., lowercase separated by underscores instead of camel case).
Renamed generic.maxHealth to generic.max_health.
Renamed zombie.spawnReinforcements to zombie.spawn_reinforcements.
Renamed horse.jumpStrength to horse.jump_strength.
Renamed generic.followRange to generic.follow_range.
Renamed generic.knockbackResistance to generic.knockback_resistance.
Renamed generic.movementSpeed to generic.movement_speed.
Renamed generic.flyingSpeed to generic.flying_speed.
Renamed generic.attackDamage to generic.attack_damage
Renamed generic.attackKnockback to generic.attack_knockback
Renamed generic.attackSpeed to generic.attack_speed
Renamed generic.armorToughness to generic.armor_toughness.
20w17aAdded the /attribute command, which can query and change attributes.
1.18.222w03aKnockback resistance no longer gives a 50% chance to ignore all knockback.
1.20.223w31aAdded the generic.max_absorption attribute.
1.20.523w51aAdded generic.scale and generic.step_height attributes for all living entities, as well as generic.block_interaction_range and generic.entity_interaction_range attributes for players.
24w03aRenamed generic.block_interaction_range and generic.entity_interaction_range to player.block_interaction_range and player.entity_interaction_range.
24w06aAdded generic.gravity, generic.safe_fall_distance, generic.fall_damage_multiplier and player.block_break_speed attributes.
Renamed horse.jump_strength to generic.jump_strength.
1.2124w18aAdded generic.burning_time, generic.explosion_knockback_resistance, player.mining_efficiency, generic.movement_efficiency, generic.oxygen_bonus, player.sneaking_speed, player.submerged_mining_speed, player.sweeping_damage_ratioand generic.water_movement_efficiency attributes.
generic.attack_knockback attribute now also works for players.
24w21aThe uuid and name arguments have been replaced with a singular id argument.
1.21.224w33aAdded the tempt_range attribute.
Removed the generic., player., or zombie. prefixes from all the attributes. Instead of using the resource locations, the argument instead just asks for the name of the attribute.
1.21.424w44aPlayers can no longer sprint while sneaking or crawling when having the sneaking_speed attribute set to 0.8 or higher.[5]
1.21.6
Experiment
Locator Bar
25w15aAdded waypoint_transmit_range and waypoint_receive_range attributes.
1.21.625w15aAdded camera_distance attribute.
25w17awaypoint_transmit_range and waypoint_receive_range are no longer experimental.
Upcoming Java Edition
26.2snap1Added bounciness, friction_modifier, and air_drag_modifier attributes.
The minimum value of minecraft:knockback_resistance is now -2.0.
snap 4Added nameplate_distance and below_name_distance attributes.
snap 5Renamed nameplate_distance to name_tag_distance.
Java Edition Combat Tests
1.14.3Added generic.attackReach attribute.
6Renamed generic.attackReach to generic.attack_reach.

Bedrock Edition

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

Legacy Console Edition

[edit | edit source]
Legacy Console Edition
Xbox 360Xbox OnePS3PS4PS VitaWii USwitch
TU19CU71.121.121.12Patch 11.0.1Added attributes.
TU36CU251.281.281.28Patch 7Attributes of items are shown above the HUD when switching items in the hotbar if the item has less than 3 enchantments.
TU46CU361.381.381.38Patch 15Added armor and luck attributes.
TU54CU441.521.521.52Patch 241.0.4Added flying speed attribute.[verify]

Issues

[edit | edit source]

Issues relating to "Attribute" are maintained on the bug tracker. Issues should be reported and viewed there.

References

[edit | edit source]
  1. MC-32578
  2. MC-301000
  3. MC-268917
  4. MC-133544 – resolved as "Works As Intended".
  5. MC-278349
[edit | edit source]