Posted January 20, 20169 yr I want to render a .json model file in the special renderer because I only need to add a water draining effect. The other part .json model doesn't really need to be specially rendered. Is there a way to do this easily or should I just make the model with the tessellator and gl.
January 20, 20169 yr Have you tried specifying the static model in the blockstates file as normal and then rendering the draining effect from your TileEntitySpecialRenderer ? Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
January 20, 20169 yr Author Well you have the getRenderType function where you set the render type. If you choose TESR, the .json model doesn't render.
January 20, 20169 yr Block#getRenderType is completely unrelated to TESR , except that returning -1 from it prevents the standard baked model from rendering. You should be able to have a baked model and a TESR for the same block. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
January 20, 20169 yr So here's what I did to get "special rendering" with a json model, I'm sure there's an easier way but this works. http://pastebin.com/GL53Zvhw Just make sure you register the class instance of the event bus.
January 21, 20169 yr Author Choonster was right, after seeing i made a mistake registering the render it worked. Thanks to the both of you.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.