Blocks with flat textures held by player in third person view, villager / iron golem or enderman have z-fighting
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)
- Download the attached resource pack MC-114576.zip
and load it - Put a poppy in your selected slot or your offhand
- 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.
2017-03-15, 03:58 PM
2020-08-26, 06:22 PM
2019-11-17, 11:31 PM
8
6
block, culling, enderman, held-item, iron_golem, player, rendering, sprite, texture, third-person, z-fighting
Minecraft 1.11.2 - Minecraft 1.14.3 Pre-Release 2
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