mojira.dev
MC-167526

Back part of the glint animation on many enchanted items shows Z-fighting

The Bug

The back part of enchanted swords, bows, crossbows, shears, fishing rods, carrots on sticks, warped fungi on sticks, flint and steel, potions, splash potions and lingering potions goes wild (z-fighting). Here is a video demonstrating the bug: https://www.youtube.com/watch?v=n26kS3Xcwcg

Steps to Reproduce

  • Obtain any of the above items, for example, an enchanted sword.

    /give @s minecraft:wooden_sword[minecraft:enchantments={levels:{"minecraft:unbreaking":1}}]
  • Hold the enchanted item in your hand and switch into third person. (Hit F5 twice).

  • Look closely at the item held in your hand.

  • Take note as to whether or not z-fighting can be seen on a variety of enchanted items.

Observed Behavior

Z-fighting can be seen on a variety of enchanted items.

Expected Behavior

Z-fighting would not be able to be seen on all enchanted items.

Linked issues

MC-278391 Glint flickering on held items Resolved MC-265300 z-fighting issues with multiple items Resolved MC-264608 Z-fighting is visible on some enchanted items that use flat inventory sprites when held or dropped Resolved MC-230326 Crossbow texture glitching when enchanted Resolved MC-214400 Plane Fighting on Netherite Sword Resolved

Attachments

Comments 35

Thank you for your report!
However, this issue is Incomplete.

Your report does not contain enough information. As such, we're unable to understand or reproduce the problem.
Please review the guidelines linked below before making further reports.

You can also check out this video guide by @unknown about how to create good bug reports.

In case of a game crash, be sure to attach the crashlog from [minecraft/crash-reports/crash-<DATE>-client.txt|https://minecrafthopper.net/help/guides/finding-minecraft-data-folder].

If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki

This comment is here to notify the watcher that I updated the bug

This comment is here to notify the mods to reopen this issue as I am able to reproduce this on both the vanilla and the Better than Default resource packs. Screenshot attached, also ZEnderMan333 's video shows the issue quite well. It also affects crossbows.

Affects 20w21a, can I request ownership of this issue?

Why? I discovered it. I even put up a video about it.

25 more comments

Can confirm in 23w04a. And to elaborate on the issue: z-fighting occurs on enchanted items yes, however it specifically appears between pixels on an item texture. This is why the z-fighting appears on the guards of swords, since the place between the sword's guard and blade has pixels on both sides which causes the issue.

Can confirm in 23w06a.

Can confirm in 23w12a

you probably shouldnt use a modded image to display a vanilla bug lol

Can confirm for 1.21.1.

ZEnderMan333

(Unassigned)

Confirmed

Platform

Low

Rendering

rendering, z-fighting

1.15, 1.15.1, 1.15.1 Pre-release 1, 1.15.2 Pre-Release 1, 1.15.2 Pre-release 2, ..., 1.21.1, 1.21.3, 1.21.4, 1.21.8, 25w35a

Retrieved