Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-178383

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w19a
    • 20w15a, 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
    • Confirmed
    • Mob spawning

      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);
      }
      

       

            Unassigned Unassigned
            Jingy [Helper] Jiingy
            Votes:
            14 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: