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

Rideable mobs with max health of 1 don't show health bar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.2, 22w42a, 22w43a, 22w44a, 22w45a, 22w46a, 1.19.3 Pre-release 2, 1.19.3 Release Candidate 1, 1.19.3, 23w03a, 1.19.4 Pre-release 1, 1.19.4 Pre-release 3, 1.19.4, 23w12a, 23w13a, 23w14a, 23w16a, 23w17a, 23w18a, 1.20 Pre-release 1, 1.20 Pre-release 2, 1.20 Pre-release 4, 1.20 Pre-release 5, 1.20 Pre-release 6, 1.20 Pre-release 7, 1.20 Release Candidate 1, 1.20, 1.20.1, 23w31a, 23w41a, 23w43b, 23w44a, 23w46a, 1.20.3 Pre-Release 2, 1.20.3 Pre-Release 4, 1.20.3 Release Candidate 1, 1.20.4, 23w51b, 24w03b, 24w04a, 24w06a, 24w07a, 24w09a, 24w10a, 24w11a, 24w12a, 1.20.5 Pre-Release 2, 1.20.5 Release Candidate 2
    • None
    • Confirmed
    • UI
    • Low
    • Platform

      While I was messing around with horses, I summoned one in with 1 hp and I couldn't see the health bar appear and the hunger bar replaced it. This seems to work with all mobs that have a visual health bar when riding them.

      To replicate this, summon a horse or any rideable mob with a max hp of 1 and ride them. You can use the following command to summon a tamed horse with 1 max hp.

      /summon minecraft:horse ~ ~ ~ {SaddleItem:

      {id:saddle,Count:1}

      ,Tame:1,Health:1,Attributes:[

      {Name:"generic.max_health",Base:1f}

      ]}

      After you get on it, you won't see the health bar of the horse at all and if your in survival, you'll see the hunger bar in the place where the horse's health would be at. You can check this by spawning another horse with a spawn egg or find a natural generating one and see that when you mount it, you can see its health. This only seems to work if the mob has a max hp of 1 and not any other value like 2, 10, 37, etc.

       

      *As I was writing this report, I saw that this behavior is related to how half hearts aren't rendered on rideable mobs at all, but if there is already a bug report out there about half hearts not rendering, this a different bug because I was mentioning how the health bar doesn't appear on any rideable mob like a pig or horse with a max hp of 1.

            Unassigned Unassigned
            matthewdog6 Matthew
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: