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

Textures for empty slots do not support translucent pixels


    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.4, 1.20.5 Pre-Release 1, 1.20.5 Pre-Release 2, 24w19b
    • Confirmed
    • Rendering, Resource Packs, Textures and models

      Relates to the following UI translucency issues: MC-109447 MC-165036 MC-165182 MC-174732 MC-192307 MC-200987 MC-251303 MC-268171 MC-268929 MC-269083 MC-269085 MC-269440 MC-269441 MC-269445 MC-269619 MC-269622 MC-269627 MC-269751 MC-269755 MC-269763 MC-269832 MC-269834 MC-269936 MC-269937 MC-270049 MC-270051 MC-270518 MC-270519 MC-270563 MC-270564 MC-270640 MC-270641 MC-270678 MC-270680

      More loosely relates to these issues: MC-144009 MC-145821 MC-164001 MC-165403

      The bug

      If textures used for empty slots are given translucent textures, they will incorrectly render as opaque in-game.

      This concerns standalone sprites for empty slots - in most cases, the slots are baked into the UI texture (see MC-165182).

      Affected slots

      1. slot.png (used in Statistics and in superflat customization)
      2. Bundle slots
      3. Donkey/mule/llama chest slots

      The saddle, armor and carpet slots used for horses, donkeys, mules, llamas and camels are also affected by this issue, but this specific case is covered under MC-269445. Making the slot item outline its own texture, and then baking the actual slot shape into the UI texture file (one for each mob), would fix MC-265033 and MC-270530.

      How to reproduce

      1. Download and apply the attached resource pack
      2. Enter the statistics item menu, the superflat customization menu, a donkey/mule/llama's UI or mouse over a bundle
      3. Observe

      Expected results

      Translucent slots.

      Actual results

      Entirely opaque.

        1. 2024-04-12_19.52.38.png
          340 kB
        2. 2024-04-12_19.52.50.png
          392 kB
        3. 2024-04-12_20.02.57.png
          92 kB
        4. 2024-04-12_20.20.48.png
          210 kB
        5. 2024-04-12_20.20.59.png
          206 kB
        6. empty-slot-translucency-1.20.5pre1-v1.0.zip
          3 kB

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            0 Vote for this issue
            0 Start watching this issue