[❓]: Jar BlockEntityRenderer
Closed this issue · 4 comments
Your Question
How to render both the item entity (fish) and the fluid block
Detail
Hello, this isn't really a mod-support question, but a dev-support question.
I'm making my own mod that also tries to implement a BlockEntityRenderer to render a fish in fluid, but when I try to render both, only the fluid renders. Either works separately, but it seems the fluid texture blocks out out any other rendering, including the block entity's.
I've attached two pictures. In the first one there's three fish tanks: leftmost has both fish and fluid, middle just has fish, rightmost has nothing. The second picture shows how the fluid texture blocks the fish tank's texture.
I was wondering if you would be willing to share your method of achieving this? No worries if not. I tried looking into your source code, and see the SoftFluid class in Moonlight, but I wasn't sure what was necessary to achieve the fluid rendering result I'm looking for.
Thank you for your time!
Render one with tile rendered and fluid since it's static it should be done with block model. Otherwise you'll have the usual translucency bug that sodium might or might not fix
I can't do the fluid via block models as I'd like it to be able to render any fluid put into the tank, as well as have the fluid height scale with the amount stored. I have it mostly working, just have this translucency issue. Are you saying it's a bug inherent to minecraft?
Jars can do the exact same yet they use block models which are also more perfromant. Translucency is always a hard problem in games. Minecraft is no different just look at honey blocks at certain angles or particles underwater or fabulous graphics. Many issues with it

