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

Donkey/mule/llama chest slots do not scale as expected when scaling behaviour is defined via mcmeta files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.4, 24w14a
    • None
    • Confirmed
    • Textures and models

      Relates to MC-269935 and MC-270259.

      The bug

      If a mcmeta file is used to define how the chest slots for donkey, mule and llama inventories scale, they will not scale as expected.

      How to reproduce

      1. Download and apply each attached resource pack
      2. Enter the inventory of any chested donkey, mule or llama with less than maximum strength
      3. Observe the chest slots

      Expected results

      • For "stretch", the texture file would be stretched to accommodate the amount of slots.
      • For "tile", the texture would repeat and be cut off to accommodate the amount of slots.
      • For "nine_slice", we'd expect the same as above, but the rightmost slot's border would be magenta instead of green.

      Actual results

      • For "stretch", the texture is repeated and is cut off to accommodate the amount of slots. This is the behaviour that was expected of "tile".
      • For "tile" and "nine_slice", the texture is stretched to accommodate the amount of slots. This is the behaviour that was expected of "stretch".

      How to fix

      Code changes are required. To preserve vanilla's behaviour after the fix you'll want to include a mcmeta file in the default textures to make sure it uses "tile" scaling.

        1. 2024-04-08_13.05.14.png
          2024-04-08_13.05.14.png
          163 kB
        2. 2024-04-08_13.05.22.png
          2024-04-08_13.05.22.png
          140 kB
        3. 2024-04-08_13.05.30.png
          2024-04-08_13.05.30.png
          71 kB
        4. 2024-04-08_13.05.36.png
          2024-04-08_13.05.36.png
          115 kB
        5. 2024-04-08_13.07.41.png
          2024-04-08_13.07.41.png
          266 kB
        6. 2024-04-08_13.07.45.png
          2024-04-08_13.07.45.png
          114 kB
        7. 2024-04-08_13.07.51.png
          2024-04-08_13.07.51.png
          140 kB
        8. 2024-04-08_13.07.55.png
          2024-04-08_13.07.55.png
          161 kB
        9. 2024-04-08_13.08.07.png
          2024-04-08_13.08.07.png
          166 kB
        10. 2024-04-08_13.08.12.png
          2024-04-08_13.08.12.png
          131 kB
        11. 2024-04-08_13.08.16.png
          2024-04-08_13.08.16.png
          100 kB
        12. 2024-04-08_13.08.19.png
          2024-04-08_13.08.19.png
          123 kB
        13. chest-slots-nine-slice-24w14a-v1.0.zip
          2 kB
        14. chest-slots-stretch-24w14a-v1.0.zip
          2 kB
        15. chest-slots-tile-24w14a-v1.0.zip
          2 kB

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: