Laseph Posted January 20, 2016 Share Posted January 20, 2016 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. Quote Link to comment Share on other sites More sharing options...
Choonster Posted January 20, 2016 Share Posted January 20, 2016 Have you tried specifying the static model in the blockstates file as normal and then rendering the draining effect from your TileEntitySpecialRenderer ? Quote 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. Link to comment Share on other sites More sharing options...
Laseph Posted January 20, 2016 Author Share Posted January 20, 2016 Well you have the getRenderType function where you set the render type. If you choose TESR, the .json model doesn't render. Quote Link to comment Share on other sites More sharing options...
Choonster Posted January 20, 2016 Share Posted January 20, 2016 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. Quote 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. Link to comment Share on other sites More sharing options...
61352151511 Posted January 20, 2016 Share Posted January 20, 2016 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. Quote Link to comment Share on other sites More sharing options...
Laseph Posted January 21, 2016 Author Share Posted January 21, 2016 Choonster was right, after seeing i made a mistake registering the render it worked. Thanks to the both of you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.