-
Bug
-
Resolution: Fixed
-
Minecraft 1.7.10, Minecraft 14w34d, Minecraft 1.8-pre3, Minecraft 1.8, Minecraft 1.8.4, Minecraft 1.8.8, Minecraft 15w37a, Minecraft 15w47c, Minecraft 15w49a, Minecraft 15w49b, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 2, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.2, Minecraft 1.9.3 Pre-Release 2, Minecraft 1.11.2, Minecraft 1.12.2, Minecraft 18w07c, Minecraft 18w08a, Minecraft 18w09a, Minecraft 18w10b, Minecraft 18w10c, Minecraft 18w10d, Minecraft 1.13-pre3, Minecraft 1.13.1, 1.14.4, 19w34a, 19w35a, 19w37a, 19w39a, 19w40a, 19w42a, 1.15 Pre-release 1, 1.15.2, 20w09a, 20w10a, 20w11a, 20w12a, 20w18a, 20w19a, 20w22a, 1.16 Pre-release 3, 21w18a, 21w20a, 1.17 Release Candidate 1, 1.18.1, 22w13a, 22w15a, 22w18a, 1.19 Pre-release 5, 1.19, 1.19.2, 1.19.3 Pre-release 2, 1.19.3, 23w03a, 23w04a, 1.20.1, 23w31a, 23w33a, 1.20.2, 23w51b, 24w05b
-
None
-
Confirmed
-
Commands, Entities
-
Low
-
Platform
The bug
Changing the generic.attack_damage attribute of a tamed wolf does not appear to have any effect. Similarly taming a wolf with a custom generic.attack_damage attribute value changes it to the default.
This does not affect the Strength potion effect in the latest game versions when applied with potions or /effect; summoning a mob with ActiveEffects is MC-32575.
See MC-193202 for the health of a wolf resetting.
Reproduction steps (modifying attribute)
- Summon a wolf
- Tame it
- Change its attributes
/data merge entity @e[type=wolf,limit=1] {Attributes:[{Name:generic.attack_damage,Base:20.0f}]}
- Let it attack an entity (by punching that entity) or inspect its NBT data
/data get entity @e[type=wolf,limit=1,sort=nearest] Attributes
It has the default generic.attack_damage
Reproduction steps (taming wolf with custom attribute)
- Summon a wolf with a custom attribute
/summon minecraft:wolf ~ ~ ~ {Attributes:[{Name:generic.attack_damage,Base:20.0f}]}
- Inspect its NBT to make sure it has the custom attribute
/data get entity @e[type=wolf,limit=1,sort=nearest] Attributes
It shows the custom attribute
- Tame the wolf
- Let it attack an entity (by punching that entity) or inspect its NBT data
/data get entity @e[type=wolf,limit=1,sort=nearest] Attributes
It has the default generic.attack_damage
Code analysis
Code analysis by Avoma can be found in this comment.
- is duplicated by
-
MC-70160 Tamed wolves aren't affected by strength and health commands.
- Resolved
-
MC-186061 Attributes are reset to the default ones
- Resolved
-
MC-220562 Cannot give wolf strength or generic.attack_damage
- Resolved
-
MC-227528 Tamed wolves' attributes cannot be modified by /data command
- Resolved
-
MC-264815 Unable to change Attribute for tame wolf
- Resolved
- relates to
-
MC-181823 Phantom attack damage attribute resets on world load if size is nonzero
- Open
-
MC-199350 Wild wolves deal 4 points (2 hearts) of damage
- Open
-
MC-32575 The /summon (potion) effects for mobs: speed and slowness
- Resolved
-
MC-33285 Summoning slimes with custom maxHealth attributes does not work
- Resolved
-
MC-47091 Slimes, Magma Cubes, Ocelots, and Iron Golems don't use generic.attackDamage Attribute
- Resolved
-
MC-73411 Killer Rabbit Attack Damage Base is Non-functional
- Resolved
-
MC-135247 Phantom attack damage attribute cannot be modified using the /data command
- Resolved
-
MC-156746 Can't change Attribute generic.maxHealth for tamed wolves/dogs
- Resolved
-
MC-193202 Tamed wolf health resets when NBT is loaded (e.g. relog)
- Resolved