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

Pixels with a transparency of 25 or less are not rendered in items or entities

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.4, 1.20.5 Release Candidate 2, 24w36a
    • None
    • Community Consensus
    • Rendering
    • Normal
    • Platform

      When using a resource pack that contains an item that has a texture containing pixels that have a transparency of 25 or less, those pixels are not rendered, instead appearing invisible. This is true of items when held in the hand, in GUIs, or as an item or block display entity. This is not true of blocks placed in the world, however.

      To reproduce:

      • Download attached resource pack (transparency_test.zip)
      • Run the following commands in different locations:
      /summon item_display ~ ~ ~ {item:{id:"minecraft:phantom_membrane",Count:1b}} 
      /summon block_display ~ ~ ~ {block_state:{Name:"minecraft:white_stained_glass"}} 
      • Place white stained glass on the ground
      • Look at a phantom membrane item in your inventory

      To make comparisons easier, I suggest looking at these with a dark block behind, like black concrete. The white stained glass block behaves as expected; the entire texture is displayed.

      The item display entity, block display entity, and held item (both the phantom membrane and white stained glass) are missing the top part of the gradient, where the transparency level is between 0 and 25.

      To make this more apparent, I've drawn a 1x1 diagonal line from the top left to the bottom right of the texture. The part of the texture that is not rendered correctly in some situations  (which spans horizontally across the texture) is indicated by the red part of the line. The part of the texture that is rendered correctly is indicated by the green part of the line.

      Note: this issue persists between fast, fancy, and fabulous graphics settings.

        1. item_display_(bugged).png
          124 kB
          Cygnus
        2. block_(correct).png
          434 kB
          Cygnus
        3. item_hand_(bugged).png
          135 kB
          Cygnus
        4. block_display(bugged).png
          376 kB
          Cygnus
        5. experience_orb.png
          1 kB
          Connor Steppie
        6. 2024-09-07_19.26.50.png
          97 kB
          Connor Steppie
        7. 2024-09-07_19.26.56.png
          116 kB
          Connor Steppie
        8. 2024-09-07_19.27.01.png
          83 kB
          Connor Steppie

            Unassigned Unassigned
            Cygnus Cygnus
            Votes:
            5 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: