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
Use a spawn egg to spawn a horse
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);
}
Linked issues
is duplicated by 3
relates to 2
Attachments
Comments 21
Duplicate of MC-103250.
This should probably be reopened, as it actually affects horses, donkeys and mules spawned using spawn eggs. This was not the case in 1.15.2 or earlier.
Confirmed in 20w20b. All horses, donkeys and mules spawned using /summon have 53 health.