mojira.dev
MC-233334

Inconsistent rendering order of durability bar

Some parts of the durability bar are at the top of the actionbar text, while other parts are at the bottom of the text. Also affects the capacity bar of Bundle.

In the attachment, there are two translucent characters with negative ascent covering the hotbar (position 0 and 1). Some parts of the bars are darker because these parts are covered by the characters.
Update: the covered parts are transparent parts of the item texture.

Attachments

Comments 2

[media]

Can confirm.

If a part of durability bar doesn't cover the item, it also won't cover the text of the action bar.

It is because the depth test is disabled so that the durability bars simply overlay on the screen. The source code is in renderGuiItemDecorations in net.minecraft.client.renderer.entity.ItemRenderer

The expected behavior is to enable depth test when rendering the durability bars.

I cannot reproduce this, as it's unclear how it. Can you please provide a way to reproduce this, for the sake of confirming it in the latest version?

Yui

(Unassigned)

Community Consensus

Rendering

1.17.1

Retrieved