Posted December 23, 20159 yr Hi, I'm trying to create custom rendered blocks. But I don't get this. Everyone says that you need to make a model class, but why doesn't the cauldron have got this. I only see "renderBlockCauldron" in the "RenderBlocks" class, but no "ModelBlockCauldron" or something like this. Can someone explain this? By the way, I'm also trying to create a milk barrel which should have the same rendering as a cauldron. Thanks, Kander18 Creator of the Master Chef Mod and many more to come. If I helped you, please click the 'thank you' button.
December 23, 20159 yr There are 3 ways of rendering a block: the built-in block renderer, an ISimpleBlockRenderingHandler or using a TileEntitySpecialRenderer . Most blocks use the built-in block rendering. This compiles into a display list and only changes with block updates. It renders a chunk at a time. An ISimpleBlockRenderingHandler (ISBRH for short) is a way of providing custom vertices for the block, instead of the default cube vertices of the built-in renderer This allows . This also compiles into a display list and only changes with block updates. Just like the built-in renderer, it renders a chunk at a time. A TileEntitySpecialRenderer (TESR for short) is a bit different. It is a way of rendering custom models, made by Techne, Tabula or other modeling software. This also allows you to render different model formats (Wavefront (.obj) for example). A TESR is rendered every frame, but this makes it more resource intensive than a ISBRH. A TESR also allows animations in your model, which is not possible with a ISBRH. There are plenty of tutorials for both the ISBRH and TESR, and it's up to you to decide which you want to use. For simple models with only a few cubes, like a cauldron, an ISBRH is better. If you have more complex models, a TESR is better. Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
December 24, 20159 yr If you followed the renderBlockCauldron method you'd see that it handles rendering the cauldron painstakingly one face at a time, similar to, but more annoying than, an ISBRH. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
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.