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

Advancement box textures use nine-slice scaling, but seemingly cannot be configured

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w44a
    • 1.20.4, 24w12a, 1.21.3
    • None
    • Community Consensus
    • Resource Packs, UI

      Discovered while testing MC-269751.

      The bug

      The textures box_obtained and box_unobtained.png, from textures/gui/sprites/advancements, use what I assume must be nine-slice scaling to accommodate different advancement name lengths. However, this scaling does not appear to be controlled via json files, unlike all other UI sprites which use a scaling system such as buttons, sliders and scroll bars, and adding in your own json files for them causes strange, unexpected graphical results.

      How to fix

      Get rid of the hardcoded scaling behaviour, switch it over to the json control that all other scaled UI textures use.

        1. advancement-scale-demo-24w12a-v1.0-1.zip
          2 kB
        2. 2024-10-30_15.35.59.png
          2024-10-30_15.35.59.png
          226 kB
        3. 2024-10-30_15.35.35.png
          2024-10-30_15.35.35.png
          221 kB
        4. 2024-03-27_14.53.19.png
          2024-03-27_14.53.19.png
          310 kB
        5. 2024-03-27_14.48.22.png
          2024-03-27_14.48.22.png
          215 kB
        6. 2024-03-27_14.48.06.png
          2024-03-27_14.48.06.png
          257 kB

            Unassigned Unassigned
            muzikbike Connor Steppie
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: