Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-176899

Pocket UI inventory armor tab's armor bar moves down when player has high HP (use_heart_offset: false not working)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.50.23 Preview, 1.20.60.20 Preview, 1.21.23 Hotfix
    • None
    • Confirmed
    • Multiple
    • 1147561

      The bug

      In the Pocket-style inventory armor tab, you can see your armor points. This bar is supposed to remain in place.

      ... but if the player has lots of health, it moves down, and can even disappear entirely:

      The definition in the UI file inventory_screen_pocket.json has a field that specifically attempts to avoid this issue:

      "armor_renderer": {
        "type": "custom",
        "size": [ 1, 1 ],
        "offset": [ -40, -5 ],
        "layer": 2,
        "renderer": "armor_renderer",
        "anchor_to": "top_middle",
        "anchor_from": "top_middle",
        "property_bag": {
          "#use_heart_offset": false
        }
      }
       

      However, it doesn't work (anymore). It's unclear exactly when this stopped working.

       

      How to reproduce

      1. Use pocket edition UI
      2. /effect @s health_boost 100000 29 true
      3. Open your inventory and go to the armor tab

      Expected result

      The armor bar should be in the normal place

      Observed result

      It's moved down a lot

            tryashtar [Mod] tryashtar
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: