Posted February 13, 201411 yr I have a multi-textured block (a custom furnace to be exact). The textures are fine and work fine and when I place the block they orientate correctly. However, the icon in the inventory only shows the side and top textures, not the side, top and front like a normal furnace. Any helps would be appreciated as to how to fix this. Thanks in advance. How the icon looks in the inventory next to a vanilla furnace: The BlockCustomFurnace class (the texture parts): @SideOnly(Side.CLIENT) private IIcon furnaceIconTop; @SideOnly(Side.CLIENT) private IIcon furnaceIconFront; @Override public IIcon getIcon(int par1, int par2) { return par1 == 1 ? this.furnaceIconTop : (par1 == 0 ? this.furnaceIconTop : (par1 != par2 ? this.blockIcon : this.furnaceIconFront)); } @Override @SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister par1IconRegister) { this.blockIcon = par1IconRegister.registerIcon("freshpower:superfurnace_side"); this.furnaceIconFront = par1IconRegister.registerIcon(this.isActive ? "freshpower:superfurnace_front_on" : "freshpower:superfurnace_front_off"); this.furnaceIconTop = par1IconRegister.registerIcon("freshpower:superfurnace_top"); } The front texture I want to show on the icon: http://s10.postimg.org/t03lprslh/superfurnace_front_off.png[/img]
February 13, 201411 yr I had the same problem just 5 minutes ago ;-) I think the only solution is a custom Item renderer. Do not ask me how it works, I am trying to implement it just now. try { ... }catch(Throwable t) { MagicAppErrorSolver.solveProblem(t, this); } //Programmers will lose work
February 13, 201411 yr Check CJLetsGame's comment on here: www.minecraftforge.net/forum/index.php/topic,14997.msg76326.html#msg76326 If you really want help, give that modder a thank you. Modders LOVE thank yous.
February 13, 201411 yr Author I had the same problem just 5 minutes ago ;-) I think the only solution is a custom Item renderer. Do not ask me how it works, I am trying to implement it just now. Like an ItemBlock?
February 13, 201411 yr I think yes, but I will be able to say it to you, if I am ready with it. Sadly I have to do some other things now. Eventually you can help me later? ;-) try { ... }catch(Throwable t) { MagicAppErrorSolver.solveProblem(t, this); } //Programmers will lose work
February 13, 201411 yr Author Check CJLetsGame's comment on here: www.minecraftforge.net/forum/index.php/topic,14997.msg76326.html#msg76326 Ah thanks for that. It worked, I love you and indirectly CJLetsGame. @ruabmbua definitely have a look at this
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.