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

Players with a high max_health value can render a large amount of hearts on the screen, effectively obstructing vision

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.19.3, 1.19.4 Release Candidate 2, 1.19.4
    • None
    • Confirmed
    • Player, UI

      If the player has a large amount of health points, the HUD will render a massive amount of hearts on the screen, which can therefore affect gameplay by obstructing player's vision.

      This may not affect current vanilla gameplay, but it does in custom maps or servers with custom health mechanics. Can also be reproduced with absorption at high levels, however that case falls under MC-10755.

      How to reproduce

      1. Create any world, in survival.
      2. Use this command:
        /attribute @p generic.max_health base set 1024
        
      3. Notice how the hearts can obstruct your vision.

      Expected result
      The player's health would not obstruct the vision by rendering too many hearts, but still displaying the current health by other means, similar to how the tab list does.

      Observed result
      The player's health shows in the HUD with a large amount of hearts, obstructing vision and affecting gameplay.

            Unassigned Unassigned
            Chavamix700 syarumi
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: