Posted January 21, 201411 yr I'm writing a machine that should change its textures on each side according to what the user sets it to (kinda like TE machines). I saw how the standard minecraft furnace does it but metadata are not an option, as there would be more than 16 possible states. Any idea an how to do it?
January 21, 201411 yr Hi I would suggest to use a TileEntity, and either 1) Implement an ISimpleBlockRenderingHandler, and ask your TileEntity for the information in the ISBRH rendering method; or 2) Create a TileEntitySimpleRenderingHandler for your TileEntity and render the texture there The choice between the two boils down to - 1) will only get updated when the block changes so it's harder to animate (is possible with animated textures eg like lava) 2) gets updated every rendering frame, but isn't drawn at all if you're more than 64 blocks away. -TGG
January 21, 201411 yr Author I have no intention on doing animations, so the first method should be enough. It also looks quite simple to use and kinda lightweight, so it's perfect. Thanks!
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.