mojira.dev
MC-156746

Can't change Attribute generic.maxHealth for tamed wolves/dogs

The bug

After changing a tamed wolf's max health with the command: 

/data merge entity @e[type=wolf,limit=1,sort=nearest] {Health:10.0f,Attributes:[{Base:10.0d,Name:generic.maxHealth}]}

stays at 20.0d when checking with data get command and also dies after getting 20 damage, not 10.

Linked issues

Comments

migrated

confirmed in the newest snapshot 19w40a

not only generic.maxHealth doesn't work, the same goes for generic.attackDamage

migrated

Still having issues with this in 1.16.5. Did it really get fixed or Mojang just looked away and said they won't fix it?

migrated

coschevi

Community Consensus

Minecraft 1.14.3, 1.14.4

19w46a

Retrieved