1

[1.8] [Vanilla] Need Help for create Creative Tabs :)

KinderrKill's Avatar KinderrKill9/23/16 5:47 am
1 emeralds 437 5
9/23/2016 7:43 am
McHorse's Avatar McHorse
Hello everyone, thanks to take care of this topic

First, this is some info

Version : 1.8
API : No forge
IDE : Eclipse

I update all my projet in 1.8, and i would like to make a new creative tab, but the problem is, the placement, one picture it's better all the words, so this is my problem



And this is my code :

Click to reveal
// News Creative Tabs
public static final CreativeTabs tabCustom = new CreativeTabs(12, "custom")
{

@Override
public Item getTabIconItem() {
return Items.banner;
}
};
public static final CreativeTabs tabCustom2 = new CreativeTabs(13, "custom2")
{

@Override
public Item getTabIconItem() {
return Items.banner;
}
};


And of course i modify this value

public static final CreativeTabs[] creativeTabArray = new CreativeTabs[14];


I see lot of forge tutoriel, and in this tutoriel a new page it's create and i don't know how to make this without forge.

Thanks you in advance for you help and i think you knew, but i'm french so my english it's not perfect ^^
Posted by KinderrKill's Avatar
KinderrKill
Level 1 : New Miner
0

Create an account or sign in to comment.

5

1
09/23/2016 6:58 am
Level 1 : New Miner
KinderrKill
KinderrKill's Avatar
Sorry i just wanna say i don't use any API.
1
09/23/2016 6:56 am
Level 65 : High Grandmaster Wolf Whisperer
Myyoyo
Myyoyo's Avatar
Vanilla means unmodded...
1
09/23/2016 6:45 am
Level 1 : New Miner
KinderrKill
KinderrKill's Avatar
It's not a background it's juste 2Tabs at the same place, and i would like to move my custom tab ("with banner") for have a result like this

[yt]youtu.be/6B4p94HL0Qw?t=6m55s[/yt]

i can't make the same because i don't use Forge

The 1.8 change this code, so in 1.7 or 1.6 it's litle different.

Thanks for response
1
09/23/2016 7:43 am
Level 71 : Legendary Unicorn
McHorse
McHorse's Avatar
Hm, I think Forge automatically manages creative tabs. Try looking up the code that is responsible for managing creative tabs in GuiCreativeInventory or something like that.

I can't really help with that, sorry :\
1
09/23/2016 6:08 am
Level 71 : Legendary Unicorn
McHorse
McHorse's Avatar
I don't really understand your problem. I see a banner getting clipped through the icons. Are these icons are real items or it's background from resource pack.

Basically, your problem is that you "return Items.banner;" How did it looked in previous version (on 1.7 or 1.6)?
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome