I made a custom Iron golem and tryed to change his attack damage, the attack damage did not affect the iron golem and in the server log it says
[07:06:26] [Server thread/WARN]: Ignoring unknown attribute 'generic.attackDamage'
and here is the command i used to spawn a 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:{id:"VillagerGolem",CustomName:"jeb_ S.W.A.T",CustomNameVisible:1,PlayerCreated:0,Attributes:[{Name:generic.maxHealth,Base:290},{Name:generic.movementSpeed,Base:0.5},{Name:generic.attackDamage,Base:15},{Name:generic.followRange,Base:100},{Name:generic.knockbackResistance,Base:0.5}],HealF:290,ActiveEffects:[{Id:5,Amplifier:10,Duration:19999980},{Id:8,Amplifier:1,Duration:19999980},{Id:10,Amplifier:2,Duration:19999980},{Id:11,Amplifier:2,Duration:19999980}]}}
Steps to reproduce problem=
get a private server
get a command block
put my command in the command block.
Summon the iron golem
look at your server log
It should say
[Server thread/WARN]: Ignoring unknown attribute 'generic.attackDamage'
Attachments
Comments 7
Well, based on the report, its a dupe of MC-47091. A moderator will mark this as resolved at a later time.
Confirmed in 1.8.1 with given command, also happens when you use a Zombie instead of an Iron Golem.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.