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

Blocks with flat textures held by player in third person view, villager / iron golem or enderman have z-fighting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 19w46b
    • Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w17b, Minecraft 17w18a, Minecraft 17w18b, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w12b, Minecraft 19w13a, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 2
    • Confirmed
    • (Unassigned)

      The bug

      Blocks with flat textures like flowers, mushrooms or rails have z-fighting when rendered in the hand of a player in third person view, villager / iron golem or enderman.

      This is not the case for the mushrooms rendered on top of mooshroom cow or for falling block entities.

      How to reproduce

      Summon an enderman holding a poppy

      /summon enderman ~ ~ ~ {NoAI:1b,carriedBlockState:{Name:"minecraft:poppy"}}
      

      How to reproduce (player in third person view)

      1. Download the attached resource pack MC-114576.zip and load it
      2. Put a poppy in your selected slot or your offhand
      3. Switch to third person view (F5)

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      It looks like culling is not enabled before the block is rendered.

            Unassigned Unassigned
            marcono1234 [Mod] Marcono1234
            Votes:
            8 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: