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

Withered absorption hearts reuse the withered normal heart texture file and cannot be retextured independently

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.1, 1.20.2 Pre-release 2, 1.20.2 Pre-Release 4, 1.20.2, 1.21.1, 24w38a, 1.21.3, 24w45a
    • Confirmed
    • Textures and models, UI

      The bug

      When under the Wither and Absorption effects simultaneously, both normal and absorption hearts will turn black to indicate the Wither effect's presence. The issue here is that not only do both heart types look identical under these conditions, but they point to the exact same texture file in the game (rather than different visually identical textures), barring resource pack creators from retexturing them individually.

      It used to be possible to texture both of them individually, but this functionality went unused by the game and eventually broke in 20w49a for both withered and poisoned absorption hearts (see MC-207252). Withered absorption hearts were eventually "fixed" in the first 1.17 pre-release (MC-224159), but poisoned and frozen absorption hearts still use the exact same file as normal absorption hearts and are tracked at MC-226845 and MC-226846 respectively.

      How to reproduce

      A resource pack is attached to this issue that changes the full withered non-hardcore heart texture to the red stained glass texture, and nothing else.

      1. Download and apply the attached resource pack
      2. Eat an enchanted golden apple
      3. Walk into a wither rose

      Expected results

      Only the normal health bar would turn into red stained glass panes.

      Actual results

      Both the normal health bar and absorption health bar turn into red glass panes, indicating that one texture file is used for both bars unlike what happens normally.

      How to fix

      We can fix this by introducing more individual texture files. We'll need eight in total - they can simply be duplicates of existing files (although dedicated textures would be preferable):

      New file to create: ...by duplicating this file: Notes
      withered_absorbing_full.png withered_full.png  
      withered_absorbing_full_blinking.png withered_full_blinking.png see MC-265342
      withered_absorbing_half.png withered_half.png  
      withered_absorbing_half_blinking.png withered_half_blinking.png see MC-265342
      withered_absorbing_hardcore_full.png withered_hardcore_full.png  
      withered_absorbing_hardcore_full_blinking.png withered_hardcore_full_blinking.png see MC-265342
      withered_absorbing_hardcore_half.png withered_hardcore_half.png  
      withered_absorbing_hardcore_half_blinking.png withered_hardcore_half_blinking.png see MC-265342

      Further notes

      The same principle can be used to also fix MC-226845 and MC-226846 (and therefore MC-207252), which I'd strongly recommend doing alongside this ticket. Here's a table of the 16 more textures that would need to be created to fix those issues as well (they follow the exact same pattern):

      New file to create: ...by duplicating this file: Notes
      frozen_absorbing_full.png frozen_full.png  
      frozen_absorbing_full_blinking.png frozen_full_blinking.png see MC-265342
      frozen_absorbing_half.png frozen_half.png  
      frozen_absorbing_half_blinking.png frozen_half_blinking.png see MC-265342
      frozen_absorbing_hardcore_full.png frozen_hardcore_full.png  
      frozen_absorbing_hardcore_full_blinking.png frozen_hardcore_full_blinking.png see MC-265342
      frozen_absorbing_hardcore_half.png frozen_hardcore_half.png  
      frozen_absorbing_hardcore_half_blinking.png frozen_hardcore_half_blinking.png see MC-265342
      poisoned_absorbing_full.png poisoned_full.png  
      poisoned_absorbing_full_blinking.png poisoned_full_blinking.png see MC-265342
      poisoned_absorbing_half.png poisoned_half.png  
      poisoned_absorbing_half_blinking.png poisoned_half_blinking.png see MC-265342
      poisoned_absorbing_hardcore_full.png poisoned_hardcore_full.png  
      poisoned_absorbing_hardcore_full_blinking.png poisoned_hardcore_full_blinking.png see MC-265342
      poisoned_absorbing_hardcore_half.png poisoned_hardcore_half.png  
      poisoned_absorbing_hardcore_half_blinking.png poisoned_hardcore_half_blinking.png see MC-265342

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

              Created:
              Updated:
              CHK: