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](https://cdn.answeroverflow.com/1158911651374972938/image.png)
![No description](https://cdn.answeroverflow.com/1158911651676967014/image.png)
3 Replies
The actual block entity rendering code doesn't do anything very fancy; it's practically straight off the tutorial on the fabric wiki--
So I'm not sure why specifically block entity renderers are breaking here but not other cases where the customitemrenderer is used
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
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