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

Mob effect icons ignore "scaling" parameter in mcmeta files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.1, 1.21.2 Pre-Release 1, 1.21.2, 24w44a
    • None
    • Community Consensus
    • (Unassigned)

      The bug

      Most GUI sprites either follow or make an attempt to follow what is specified inside of the associated .mcmeta file with respect to the "scaling" parameter. However, for some reason, the icons used for status effects ignore them entirely.

      This was recently fixed for empty slots (MC-277486). However, as of 24w44a, mob effects remain affected.

      How to reproduce

      A resource pack to test this is attached.

      The changes made are as follows:

      • regeneration uses "tile"
      • poison uses "nine_slice"
      • hunger uses a sprite which matches the expected outcome of "tile"
      • wither uses a sprite which matches the expected outcome of "nine_slice"

      Expected results

      The regeneration effect icon would appear grid-like, similarly to the hunger effect, and the poison effect would be pale red with a thin dark red border, identically to the wither effect.

      Actual results

      Both the regeneration and poison effects incorrectly have a thick red border.

      How to fix

      This could be fixed by moving the existing mob_effect texture folder to textures/gui/sprites, and making mob effects reference the gui atlas rather than a dedicated mob_effect atlas.

        1. 2024-10-10_12.59.27.png
          2024-10-10_12.59.27.png
          256 kB
        2. 2024-10-10_12.59.32.png
          2024-10-10_12.59.32.png
          426 kB
        3. 2024-10-10_13.18.42.png
          2024-10-10_13.18.42.png
          173 kB
        4. 2024-10-10_13.19.53.png
          2024-10-10_13.19.53.png
          342 kB
        5. 2024-10-10_13.20.39.png
          2024-10-10_13.20.39.png
          140 kB
        6. 2024-10-10_13.21.04.png
          2024-10-10_13.21.04.png
          161 kB
        7. effect-scaling-fail-demo-1.21.2-pre1-v1.0.zip
          4 kB

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

              Created:
              Updated:
              CHK: