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

The hunger bar does not flash when losing or recovering hunger points

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.20.1, 23w32a, 23w33a
    • Confirmed
    • UI

      The bug

      When the player is damaged or recovers health, the heart symbols above the hotbar will flash. However, when the player's hunger bar depletes or is refilled, the icons displayed above the hotbar will not blink in the same way, despite the existence of dedicated textures for this purpose. These textures are present in icons.png as of 1.20.1, but remain unused (MC-237428, MC-237429).

      How to reproduce

      1. Take damage or recover health
      2. Get hungrier or eat something
      3. Compare visuals

      Expected results

      Flashing in both cases.

      Actual results

      It only happens for health - hunger does not perform the same animation.

      How to fix

      I've attached the six textures needed for this to work, extracted from a 1.20.1 icons.png file. These textures are to be placed in assets/minecraft/textures/gui/sprites/hud. Code changes will be required for the game to actually use these textures.

        1. food_empty_blinking.png
          food_empty_blinking.png
          0.1 kB
        2. food_full_hunger_blinking.png
          food_full_hunger_blinking.png
          0.1 kB
        3. food_half_blinking.png
          food_half_blinking.png
          0.1 kB
        4. food_half_hunger_blinking.png
          food_half_hunger_blinking.png
          0.1 kB
        5. food_empty_hunger_blinking.png
          food_empty_hunger_blinking.png
          0.1 kB
        6. food_full_blinking.png
          food_full_blinking.png
          0.1 kB
        7. 2023-08-17_00.45.41.png
          2023-08-17_00.45.41.png
          164 kB

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: