mojira.dev
MC-203414

Summoned horses, donkeys, llamas and mules don't take damage on first hit

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

Chandler

Please provide a screenshot with the F3 Debug screen enabled

Redleigh Rivera

I have provided a screenshot.

tryashtar

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

Redleigh Rivera

I did the commands, I got 53 health with 20 max.

Avoma

Can confirm in 21w03a.

[Mod] Jingy

Can confirm in 1.20.2

[Mod] Jingy

Requesting ownership of this issue, as the original poster has not touched it in almost 3 years.

Redleigh Rivera

[Mod] Jingy

(Unassigned)

Confirmed

horse, mob

1.16.4, 20w46a, 20w48a, 20w51a, 21w03a, 22w03a, 1.20.2, 1.20.4, 23w51b

Retrieved