Slimes, Magma Cubes, Ocelots, and Iron Golems don't use generic.attackDamage Attribute
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 |
Linked Issues
is cloned by1
is duplicated by5
- Fixed
WolfieMario
Maria Lemón- 128
- 41
- Confirmed
- (Unassigned)
- attributes damage health iron_golem magma_cube ocelot potion-effect slime strength weakness
1.7.4 - 1.14.2
1.7.4 14w08a 1.7.5 14w11b 1.7.6-pre1 1.7.6-pre2 1.7.10 14w29a 14w29b 1.8 1.8.5 1.8.8 15w43c 1.8.9 16w04a 16w05b 1.9-pre1 1.9-pre2 1.9 1.9.1-pre1 1.9.1-pre2 1.9.1-pre3 1.9.2 1.9.3-pre3 1.10.2 16w35a 16w36a 16w42a 1.11 1.11.2 17w06a 17w13b 1.12 1.12.1-pre1 1.12.1 1.12.2 1.13-pre5 1.13.1 1.13.2 1.14.2- 19w35a
Created Issue:
Slimes, Magma Cubes, Wolves, and Iron Golems don't use generic.attackDamage Attribute
Slimes, Magma Cubes, Wolves, 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-5164andMC-9600, and may also be related toMC-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 wolf, 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.
is duplicated by
relates to
is duplicated by
is duplicated by
is duplicated by
relates to
relates to
Wyatt Boyle, it's
MC-88085
Slimes, Magma Cubes, Wolves, and Iron Golems fail to use the generic.attackDamageattribute properly, meaning that their attack damage cannot be altered via commands or potions. This is the cause behindMC-5164andMC-9600, and may also be related toMC-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 wolf, 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.
Slimes, Magma Cubes, Wolves, 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-5164andMC-9600, and may also be related toMC-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 wolf, 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.
Slimes, Magma Cubes,Wolves, and Iron Golems don't use generic.attackDamage AttributeSlimes, Magma Cubes, Ocelots, and Iron Golems don't use generic.attackDamage Attribute
Slimes, Magma Cubes,
Wolves,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 behindMC-5164andMC-9600, and may also be related toMC-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 wolf, 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.
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-5164andMC-9600, and may also be related toMC-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
wolf,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.
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-5164andMC-9600, and may also be related toMC-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
This ticket has been marked as a duplicate of MC-47091, in favor of the more general or better information provided.
This should be merged with MC-47091.
This ticket has been marked as a duplicate of MC-47091, in favor of the more general or better information provided.
Confirmed in 1.8.1 with given command, also happens when you use a Zombie instead of an Iron Golem.
/summon Sheep ~-1 ~-1 ~ {CustomName:"jeb_",CustomNameVisible:1,Color:15,Attributes:[{Name:generic.maxHealth,Base:900},{Name:generic.movementSpeed,Base:0.1},!!!{Name:generic.attackDamage,Base:10}!!!,{Name:generic.followRange,Base:50},{Name:generic.knockbackResistance,Base:10}],Invulnerable:1,HealF:900,ActiveEffects:[{Id:6,Amplifier:5,Duration:19999980},{Id:10,Amplifier:5,Duration:19999980},{Id:21,Amplifier:5,Duration:19999980}],Riding:
The problem is that you applied generic.attackDamage to the sheep (outlined with exclamation marks); sheep can't attack
. Remove it and the error message should be gone.
However Iron golems indeed don't use generic.attackDamage (with no error message), see MC-47091.
Well, based on the report, its a dupe of MC-47091. A moderator will mark this as resolved at a later time.
Thank you Kumasasa (my favourite Mod 😸), cool decision!
I just wanted to add that I do a lot of custom creations with ArmorStands and mobs, and Slimes are the ONLY mob (at the moment at least) which can be made ANY size!
It could be SO useful for mapmakers or creationists if it wouldn't hurt you!
I set myself into a team "blue" and summoned a Slime for team "blue" (in 1.9:
/summon Slime ~ ~1 ~ {Size:1,Team:"blue"}
), but it still could hurt me..
Mobs in the same team should not be able to attack you.
Not sure if I did something wrong, but my quick testteaming returned as a fail, maybe someone more awake than me could quickly check that, thank you };]
Setting their generic.attackDamage also doesn't seem to work: MC-47091
As for the "`NoAI` bug get's resolved as invalid due to Mojang's Won't_fix_any_NoAI_bug policy" (I've read Mr. Stoyke's statement about that):
If one gets features into the game one expects them to work as intended for everything.
The question is if a "works differently" is REALLY intended, or if it's just a statement to have an official "excuse" for it because there are other problems which are more important to Mojang, hence they don't want to spend time trying to fix such issues like e.g. the NoAI-problem with slimes.
Don't misunderstand me, this is not a bashing of the Devs or anything, but I just have the feeling that sometimes they hide their reasoning for some decisions under statements like these, and it would annoy or upset people less if they'd get a truthful, open answer.
Because it can feel frustrating if you put your heart into this game, creating things for others to enjoy, then also try to help find the bugs, but then get replies like these.
I hope it's understandable what I mean, and I only had to mention it because I know a couple of people feel the same, and I always try to excuse such statements with the "there are things you're not ought to know" delusion to not get upset };]
But that's only me, as I said, there are others, and I cannot tell them not to get frustrated and to not give up on the bugfinding help etc. completely, and as the community is very dear to me, I'd like to have a REAL explanation, so I'm able to calm down those being upset about such kinds of statements.
So if we could have a more detailed statement from Mojang WHY this is a "works as intended", even more if they won't implement Panda's fix suggestion, that'd be great.
Sorry for the lengthy and slightly offtopic post, but I had to get that off my chest finally.
Regards, Meri
Relate to MC-47091. Shulkers / Shulker Bullets don't even have an attackDamage or attackSpeed attribute in the first place.
The bug
Magma cubes still deals damage when their generic.attack_damage attribute is set to 0 despite MC-47091 is fixed.
How to reproduce
Summon a big Magma cube
/summon magma_cube ~ ~1 ~ {Size:10}
now set the attribute generic.attack_damage to 0:
/execute as @e[type=magma_cube] run attribute @s minecraft:attack_damage base set 0
→
The magma cube still deals damage
confirmed
Still relevant in 1.8.1-pre2, and also affects Killer Bunnies.
Also with Zombie / Skeleton
Actually, sometimes is does partly work
Confirmed for Slimes for
Seems to be fixed except for Slimes.
Confirmed in 15w43c
/summon VillagerGolem ~ ~1 ~ {Attributes:[{Name:generic.attackDamage,Base:-10}],ActiveEffects:[{Id:18,Amplifier:255,Duration:199980}]} /effect @e[type=VillagerGolem] minecraft:weakness 1000 255 trueConfirmed for 16w04a.
Confirmed for 16w05a
Confirmed for 16w05b
Confirmed for 1.9-pre1 and 1.9-pre2
Still in 1.9.1-pre3, fixed for wolves
Still in 1.9.3-pre3
Still in 1.10.2, tested with slimes.
In the latest snapshot, 16w42a, the damage is still the same when following the instructions posted. Yet when using the command
summon MOB_TYPE_HERE ~ ~1 ~ {Attributes:[{Name:"generic.attackDamage",Base:10D}]}they do not attack any harder than normal, YET when I attack them, they produce what looks to be 5 full hearts or so of damage, and no matter the size, they will not die on the first hit (I hit a tiny slime and it produced the large amount of hearts, and did not die when I hit it), upon hitting them again they will go back to normal behavior, of course still not dealing any extra damage to me (yes I tested it on a slime that could deal damage to me as well)
Wolves are no longer affected in 1.11, keep in mind that their attack damage resets when they are tamed
Confirmed for 1.12.1
Does this still affect the current versions of Minecraft? (1.12.2, 1.13-pre3). If so, please update the ticket accordingly.
Confirmed for minecraft:iron_golem with 20D (doesn't kill you in one hit while zombies do)
In 1.13-pre5 by the way..
Confirmed for 1.13.1.
Confirmed for 1.13.2
Still an issue for 1.14, 1.14.1, and 1.14.2 versions.
Still persists in 1.19.2
Magma cubes, post-fix, are tracked in MC-165508.