Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (โ‹ฎ) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Alright im new to coding with the forge API and i want to know how to create a custom creative tab to put my mod stuff under. How could i do this?

Alright im new to coding with the forge API and i want to know how to create a custom creative tab to put my mod stuff under. How could i do this?

new to coding, or only with forge

ย 

because at the top of this screen theres a button labelled "wiki" and theres a tutorial for it

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Smart/quick way:

Into MyMod.class:

public static CreativeTabs MyTab = new CreativeTabs("MyTab")
{
	public int getTabIconItemIndex()
	{
		return MyMod.itemID/.blockID
	}
};

If you want to have InGame name:

public void load(FMLInitializationEvent event)
{
	LanguageRegistry.instance().addStringLocalization("itemGroup.MyTab", "en_US", "MyTabInGameName");
}

ย 

And here is some unknown (never watched) tutorial found just by writing 3 words into google ;p

http://www.youtube.com/watch?v=KIisB001LG8

Only thing I know that this one is way longer.

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

Another way, in your mainmod file, have this in preinit(eventhandler),

ย 

	LanguageRegistry.instance().addStringLocalization(
			"itemGroup.nameoftabhere", "en_US", "Name of tabhere");

ย 

and this in the main file, anywhere works, i put it right under init personally,

public static CreativeTabs tabCustom = new CreativeTabs("nameoftabhere") {
	public ItemStack getIconItemStack() {
		return new ItemStack(
				block/itemnamehere; //such as Block.cobbleStone or myblockhere
	}
};

ย 

small difference from Ernios way, either is up to 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.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions โ†’ Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.