Hi i'm making a new mod, and i want a custom creative tab, i got the code and it puts it in, but it's on top of another tab (foods tab to be exact), and i can't click on my own tab. help?
oh, and one question: Do i have to use forge to get the custom tab to work right? or can i do it with ModLoader?
Thanks!
oh, and one question: Do i have to use forge to get the custom tab to work right? or can i do it with ModLoader?
Thanks!
Create an account or sign in to comment.
13
1
Sounds cool
1
If the tab is coded with forge then go into the tab's code
and find the line that looks like this:
public static final CreativeTabs tabYourTab = new TabYourTab(10, "YourTabName");
Leaving the 10 at 10 should be fine since it's
un used by vanilla minecraft
(Remember to change the number if it's used by another mod you
want to use with your mod!)
EDIT:
Actually I think 10 might be used by vanilla minecraft so you
might want to keep making that higher until it moves to the second creative tabs
page and doesn't move any vanilla tabs
and find the line that looks like this:
public static final CreativeTabs tabYourTab = new TabYourTab(10, "YourTabName");
Leaving the 10 at 10 should be fine since it's
un used by vanilla minecraft
(Remember to change the number if it's used by another mod you
want to use with your mod!)
EDIT:
Actually I think 10 might be used by vanilla minecraft so you
might want to keep making that higher until it moves to the second creative tabs
page and doesn't move any vanilla tabs
1
yeah i already got it...
1
nvm, i switched to forge code...
1
yes thats what you have to do and i know how, post the codes and ill see if you have them
1
you probably copied the exact coding for the foods tab so its exactly in the same spot you have to figure out which part is the placement part and move it over somehow.
1
Hey Can you post the code please, i think i know what is wrong, can you post the code for mod_******.class and tab*********.class
1
All you need to know, and more!
http://www.planetminecraft.com/blog/min ... s-quality/
http://www.planetminecraft.com/blog/min ... s-quality/
1
ONI_LINKOr you could use the book page code idea to make a separate screen for your tabs.
yeah, i want like a new page in the creative tabs, like i've seen on TekkitLite, but idk if i have to use forge to do that...
1
ONI_LINKWould It be possible to use tabs on e side of the inventory or something?
i was thinking that too....
1
Would It be possible to use tabs on e side of the inventory or something? Or you could use the book page code idea to make a separate screen for your tabs.