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

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");

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);

  • 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.

  • 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.

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.