Posted July 16, 201411 yr Hi, me again. This time I'm wondering how to do multiple textured blocks. I took advice from one guy and looked in the BlockQuartz.class file but I have no idea what all of these things mean. Thanks in advance
July 16, 201411 yr What I believe you need to do is in your block class, register multiple icons inside of one in your registerIcons method and determine which one to do in a getIcon method: @SideOnly(Side.CLIENT) public static Icon topIcon; @SideOnly(Side.CLIENT) public static Icon bottomIcon; @SideOnly(Side.CLIENT) public void registerIcons(IconRegister icon) { topIcon = icon.registerIcon(); bottomIcon = icon.registerIcon(); sideIcon = icon.registerIcon(); } @SideOnly(Side.CLIENT) public Icon getIcon(int side, int metadata) { if(side == 0) { return bottomIcon; } else if(side == 1) { return topIcon; } else { return sideIcon; } } Different numbers in getIcon match the side of the block, however I do not know all possible sides This should answer your question though
July 17, 201411 yr Hi This link might help you with the concepts http://greyminecraftcoder.blogspot.com.au/p/list-of-topics.html (See the block rendering sections, especially http://greyminecraftcoder.blogspot.com.au/2013/07/rendering-standard-blocks-cubes.html) Hopefully that should help you understand the vanilla code better -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.