The bug
If a tamed wolf's Health NBT is modified by the /data or /execute store commands, it is always set to 20.0f, regardless of its previous value or what it should have been modified to. This does not happen with untamed wolves, tamed/untamed cats, or tamed/untamed parrots.
How to reproduce
- Summon a wolf
/summon wolf
- Tame the wolf with a bone
- Damage the wolf by one half-heart
- View the wolf's health
/data get entity @e[type=wolf,sort=nearest,limit=1] Health
→ The wolf's health is 19.0f
- Attempt to change the wolf's health to 10.0f
/data modify entity @e[type=wolf,sort=nearest,limit=1] Health set value 10
- View the wolf's health
/data get entity @e[type=wolf,sort=nearest,limit=1] Health
→ The wolf's health is 20.0f, rather than the expected 10.0f
- is duplicated by
-
MC-195178 Tamed wolves fully heal whenever any of their nbt data is modified, even Health
- Resolved
-
MC-203437 Bug with minecraft Wolf Nbt
- Resolved
-
MC-224947 Tamed wolves' health cannot be modified by commands
- Resolved
-
MC-225693 Tamed wolves sometimes lose all health_boost health upon world reload ugh
- Resolved
-
MC-230690 Tamed Wolf Health gets reset
- Resolved
-
MC-233801 Wolf Health Resets
- Resolved
-
MC-251328 Can't set tamed wolf's health
- Resolved
-
MC-262646 Cannot modify a tamed wolf's health.
- Resolved
-
MC-264070 Tamed wolf (Dog) reset entire NBT when changing its name
- Resolved
-
MC-264815 Unable to change Attribute for tame wolf
- Resolved
-
MC-265997 Wolf health resets to max health after relogging/unloading chunks
- Resolved
- relates to
-
MC-71977 Changing generic.attack_damage of tamed wolf has no effect / taming wolf removes custom generic.attack_damage
- Resolved