Mojira Archive
MC-178383

Horses, donkeys, mules and llamas spawned from spawn eggs or /summon command have 53 health

The Bug

AbstractHorse entities can have up to 53 health points.

Expected Behavior

Any AbstractHorse creature should have a maximum of 25 health points.

How to reproduce

  1. Use a spawn egg to spawn a horse
  2. Inspect the horse's health:
    /data get entity @e[type=horse,limit=1,sort=nearest] Health

    The horse has 53 health

Code Analysis

The questionable value can be found in the AbstractHorse class:

public static AttributeSupplier.Builder createBaseHorseAttributes() {
    return Mob.createMobAttributes().add(Attributes.JUMP_STRENGTH).add(Attributes.MAX_HEALTH, 53.0D).add(Attributes.MOVEMENT_SPEED, 0.22499999403953552D);
}

 

Fixed

[Mod] Jiingy

Amy Lee Lay

2020-04-12, 04:24 PM

2024-05-20, 10:14 PM

2024-05-20, 10:14 PM

14

10

Confirmed

Mob spawning

data, horse, summon

20w15a - 24w14a20w15a, 20w20b, 1.16.1, 20w30a, 1.16.2, 1.16.4, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w08a, 21w08b, 21w15a, 1.17, 1.17.1, 1.18 Pre-release 1, 1.18 Pre-release 8, 1.18.1, 22w03a, 1.18.2, 22w19a, 1.19, 1.19.2, 22w42a, 1.20.2, 1.20.4, 23w51b, 24w07a, 24w14a

24w19a