Help getting my block renderer/renderlayers compatible with Iris

Hi. My mod uses a set of renderlayers to give items the appearance of being red-hot; you can see this in the first screenshot. With Iris installed, block entity renderers no longer display items with the renderlayers applied (see the second screenshot). Other use cases, like sitting in the inventory or on the ground as an item entity, still work. Any idea what's up?
No description
No description
3 Replies
ankiolyne 🐢
ankiolyne 🐢12mo ago
The actual block entity rendering code doesn't do anything very fancy; it's practically straight off the tutorial on the fabric wiki--
java MinecraftClient.getInstance().getItemRenderer().renderItem(itemStack, ModelTransformation.Mode.FIXED, light, overlay, matrices, vertexConsumers, intPos);
java MinecraftClient.getInstance().getItemRenderer().renderItem(itemStack, ModelTransformation.Mode.FIXED, light, overlay, matrices, vertexConsumers, intPos);
So I'm not sure why specifically block entity renderers are breaking here but not other cases where the customitemrenderer is used
ankiolyne 🐢
ankiolyne 🐢12mo ago
if it helps any, here are the relevant itemrenderer and renderlayer we generate a bunch of renderlayers ahead of time and dynamically assign them to hot items as needed
ankiolyne 🐢
ankiolyne 🐢12mo ago
Oh, and this change in behavior occurs regardless of whether shaders are enabled more detail: It's only the blending/application of the renderlayer that seems to be breaking; the rest of the renderer (which imitates an item based on NBT) works as intended Any help would be greatly appreciated! Iris is quite a common mod and the main mechanic of my own breaking with it installed is not ideal
Want results from more Discord servers?
Add your server