Posted July 13, 201312 yr First the creative tab image won't show(probably because the old code for it broke), second any items I added to the creative tab won't show on any tab. Creative Tab: package mods.cyphereion.cyphscape.core; import mods.cyphereion.cyphscape.API.Core; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.resources.ResourceLocation; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.ItemStack; import cpw.mods.fml.relauncher.*; public class tabCyphScape extends CreativeTabs { public ResourceLocation guiLocation = new ResourceLocation("CyphScape:/textures/items/CyphScape_Stats.png"); public tabCyphScape(int position, String tabID) { super(position, tabID); } public String getTranslatedTabLabel() { return "CyphScape"; } } Core File: @SidedProxy(clientSide = "mods.cyphereion.cyphscape.proxys.ClientProxy", serverSide = "mods.cyphereion.cyphscape.proxys.CommonProxy") public static CommonProxy proxy; public static CreativeTabs tabCyphScape = new tabCyphScape(CreativeTabs.getNextID(),"tabCyphScape"); Sample of an item: BronzeShovel = new ItemBronzeShovel(2011, CyphScapeMaterials.Bronze).setUnlocalizedName("CyphScape_BronzeShovel");
July 14, 201312 yr To fix the creative tab issue, have a look at this https://github.com/mrkirby153/MscHouses/blob/master/common/mrkirby153/MscHouses/creativeTab/CreativeTabHouse.java Note: You may need to localize the name of the tab with the following code LanguageRegistry.instance().addStringLocalization("itemGroup.INSERT TAB NAME HERE","TAB NAME"); Also, it looks like you are not adding any items to the creative tab. Try this: BronzeShovel = new ItemBronzeShovel(211, CyphSpaceMaterials.bronze).setUnlocalizedName("bronzeShovel").setCreativeTab(this.tabCyphSpace); http://i.imgur.com/gWwyMMO.jpg[/img]
July 14, 201312 yr Author To fix the creative tab issue, have a look at this https://github.com/mrkirby153/MscHouses/blob/master/common/mrkirby153/MscHouses/creativeTab/CreativeTabHouse.java Note: You may need to localize the name of the tab with the following code LanguageRegistry.instance().addStringLocalization("itemGroup.INSERT TAB NAME HERE","TAB NAME"); Also, it looks like you are not adding any items to the creative tab. Try this: BronzeShovel = new ItemBronzeShovel(211, CyphSpaceMaterials.bronze).setUnlocalizedName("bronzeShovel").setCreativeTab(this.tabCyphSpace); Lol that may be the issue. Thank you for your response.
July 15, 201312 yr Author Let me know if it didn't work! Lol sorry for not getting back sooner. Haven't slept in a few days so I finally got some of that and yes! It does work, thank you.
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.