Jump to content

Recommended Posts

Posted

I figured this was a problem with forge due to the crash log not saying anything about my mod

 

i have tested this with both 497 and 499 forge builds

 

the eclipse output code

 

  Reveal hidden contents

 

 

here's my code for my creative tabs

part in core file

 

  Reveal hidden contents

 

 

individual files

 

  Reveal hidden contents

 

 

  Reveal hidden contents

 

 

  Reveal hidden contents

 

 

note: eclipse is not detecting errors and the game doesnt crash until i attempt to go to tab 2 of the creative inventory

Posted

First,you don't need to do the nextID() thing because the CreativeTabs do it automatically.

Just construct it with only the label parameter.

 

 

 

Secondly,the erros is can be because the item isn't exists,that's why it says null at CreativeTabs.java:209,

getIconItemStack() creates an itemstack from your item.

 

What does this mean?

Within your getTabIconItemIndex you are using an variable that stores the id of the things.

Because they are items you need to make it shifted.

 

So

@SideOnly(Side.CLIENT)
    public int getTabIconItemIndex()
    {
       return mcextcore.Core.ItemChestPlateID + 256; 
    }

 

I hope i helped you.

Posted

Thanks for tthe help, all i needed to do was the + 256 thing, also i had to keep the get next id in because it had to be (int, string) and not just (string)

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

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

Announcements



×
×
  • Create New...

Important Information

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