-
Bug
-
Resolution: Fixed
-
Minecraft 1.7.4, Minecraft 14w08a, Minecraft 1.7.5, Minecraft 14w11b, Minecraft 1.7.6-pre1, Minecraft 1.7.6-pre2, Minecraft 1.7.10, Minecraft 14w29a, Minecraft 14w29b, Minecraft 1.8, Minecraft 1.8.5, Minecraft 1.8.8, Minecraft 15w43c, Minecraft 1.8.9, Minecraft 16w04a, Minecraft 16w05b, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 2, 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 3, Minecraft 1.10.2, Minecraft 16w35a, Minecraft 16w36a, Minecraft 16w42a, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13b, Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 1.13-pre5, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 1.14.2
-
Confirmed
-
(Unassigned)
The bug
Slimes, Magma Cubes, and Iron Golems fail to use the generic.attackDamage attribute properly, meaning that their attack damage cannot be altered via commands or potions. This is the cause behind MC-5164 and MC-9600, and may also be related to MC-33285.
As a result, the following command will only work properly for melee-capable mobs which aren't affected by this bug:
summon MOB_TYPE_HERE ~ ~1 ~ {Attributes:[{Name:"generic.attackDamage",Base:10D}]}
Most melee-capable mobs, such as zombies, will deal exactly 5 hearts per hit on Normal difficulty. The mobs affected by this bug will instead deal their usual damage.
In addition, Strength and Weakness potions have no effect on these mobs.
Steps to Reproduce
- Spawn a slime, magma cube, or iron golem (don't use a golem built manually from blocks; they don't become aggressive).
- Allow it to attack you, and take note of the damage dealt.
- Splash it with Strength II, or any desired level of Strength or Weakness.
- Observe that the damage dealt is the same as before.
Technically this issue also applies to the Ender Dragon, but essentially no potion effects or attributes work on the dragon anyhow.
Affected entities
Affected entity | Note |
---|---|
slime | |
magma_cube | |
ocelot | attacking chicken |
villager_golem |
- is cloned by
-
MC-165508 Magma cubes still deals damage when their generic.attack_damage attribute is set to 0
- Open
- is duplicated by
-
MC-9600 Iron Golems are unaffected by Strength and Weakness potions
- Resolved
-
MC-19060 Iron Golem attack does not calculate propertly
- Resolved
-
MC-36970 Can't change wolf attack damage
- Resolved
-
MC-74709 Iron Golem custom attribute attack.damage ignored by server.
- Resolved
-
MC-80448 Slime NBT tags being ignored when spawning normal slimes
- Resolved
- relates to
-
MC-77982 Changing Guardian generic.attackDamage has no effect
- Resolved
-
MC-71977 Changing generic.attack_damage of tamed wolf has no effect / taming wolf removes custom generic.attack_damage
- Resolved
-
MC-106142 Attributes for Shulkers Do Not Affect Its Bullets
- Resolved