mojira.dev
MC-165653

Translucent stairs have z-clipping issue

I'm developing a mod that includes a type of translucent stair block.  Specifically, the block class derives from StairsBlock and returns BlockRenderLayer.TRANSLUCENT from the getRenderLayer method.  When viewed in the world, the bottom half of the stairs will, from some angles, render over the top half of the stairs.  I've attached a screenshot to demonstrate the issue.  This bug does not occur when getRenderLayer returns BlockRenderLayer.SOLID.

Attachments

Comments 2

You can reproduce this in vanilla by remodelling an existing translucent block, however it does not happen in 1.15 snapshots anymore.

Used pack, replaces white stained glass with acacia stair:

[media]

Fixed in 19w39a. (19w39a also had issues with the outline bounding box, but that's fixed in later versions. Furthermore, the bounding box is a cube due to how the resource pack works; it wouldn't be a cube for actual stairs.)

Note that we don't normally accept mod-related issues (as an example with stairs, MC-161060), as it is something that would be fixed on the mod side. Since this issue was already fixed, though, it's better to resolve it as fixed than to resolve it as invalid.

migrated

(Unassigned)

Confirmed

Rendering

1.14.4

19w39a

Retrieved