Jump to content

[1.7.2] Problem with setting Item CreativeTab


Recommended Posts

I have no idea why but this doesn't work:



public class RoATab extends CreativeTabs
Item icon;

public RoATab(String lable, Item icon)
	this.icon = icon;

public Item getTabIconItem() 
	return icon;


	RoATab TabWeapons = new RoATab("RoAWeapons", Items.iron_sword);


public class ItemCore extends Item
public ItemCore(String UN, CreativeTabs Tab)
	GameRegistry.registerItem(this, UN);
	setTextureName(InitUtil.ModID + ":" + UN);


	MyItem = 	new ItemCore("Steel", InitTabs.TabWeapons);


SAME code works with Blocks (I mean this tab and setCreativeTab() works with extended Block)


Any idea? Is Item tab declaration different?


Note: setCreativeTab(tab) doesn't work only if I place there my Tab name, vanilla ones work.


1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Bro, I wouldn't be here wihtout making sure it is not my mistake.


Alredy done step by step initialization. Tabs alredy exist when I declare items.


Fun fact: :)



Well, I think I'm just gonna cleanup workspace, maybe there is some troll code somewhere from .git

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.