What I expected to happen was the horse that I spawned with a spawn egg would take damage on the first hit.
What actually happened was the horse I spawned with a spawn egg did not take any damage unless if you hit it again.
The same bug applies to llamas, zombie horses, skeleton horses, donkeys, and mules as well.
Steps to Reproduce:
1. Spawn a horse, a donkey, or a mule via spawn egg.
2. Punch or hit it with a weapon once.
3. Mount it to see if it took the damage.
Linked issues
Attachments
Comments
I have provided a screenshot.
Confirmed. The mob is spawning with health higher than its max, which is then clipped after being updated.
Spawn a horse and run these two commands:
/data get entity @e[type=horse,sort=nearest,limit=1] Health
/attribute @e[type=horse,sort=nearest,limit=1] generic.max_health get
I got around 53 health with 25 max
I did the commands, I got 53 health with 20 max.
Can confirm in 21w03a.
Can confirm in 1.20.2
Requesting ownership of this issue, as the original poster has not touched it in almost 3 years.
Please provide a screenshot with the F3 Debug screen enabled