Posted October 2, 201410 yr I've made a TileEntity, multiblock tank but I have no idea how to make it render, it currently stores 2000 units (can be adjusted) and it stores it using nbt it the main tank block. I have a separate block to handle the rendering and the variable get transferred correctly. What would be the easiest way to make the handler block render the level? The proud(ish) developer of Ancients
October 2, 201410 yr Hi Since it's a TileEntity already, I would suggest using a TileEntitySpecialRenderer. Google should show a few examples, also the vanilla code. In the renderer, assuming the water is a cube, you can use Tessellator commands with a variable height to change the height of the cube http://greyminecraftcoder.blogspot.com.au/2013/08/the-tessellator.html -TGG
October 2, 201410 yr Author I know about the tessellator I've used it a couple times but I have no idea how to implement it into this situation. The proud(ish) developer of Ancients
October 2, 201410 yr RenderBlocks.renderBlockLiquid() has something similar to what you want (not in a TESR admittedly) If you read that link I posted you should find it pretty straightforward to change the height of your liquid block. This TESR tutorial is short but will get you started http://www.minecraftforge.net/wiki/Tile_entity_special_renderer -TGG
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.