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

Details

    • Bug
    • Status: Reopened
    • Resolution: Unresolved
    • 20w15a, 20w20b, 1.16.1, 20w30a, 1.16.2, 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
    • None
    • None
    • Confirmed
    • Mob spawning

    Description

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

       

      Attachments

        1. Crazy Total Hearts For a Mule.png
          574 kB
          Amy Lee Lay
        2. Crazy Total Hearts For a Mule 2.png
          443 kB
          Amy Lee Lay
        3. MC-178383.png
          809 kB
          Avoma
        4. MC-178383-1.png
          60 kB
          Avoma

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Yalyma Amy Lee Lay
              Votes:
              7 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: