Jump to content

Recommended Posts

Posted

Extend Item.

Item#setCreativeTab(CreativeTabs);

Write spawning code inside Item#onItemUse(foo).

Eventually use texture from vanilla spawn egg to make it look the same.

Posted

GoToLink, I think he is also asking how to create the custom creative tab itself.

 

To do that there are lots of tutorials out there (see http://lmgtfy.com/?q=minecraft+forge+custom+creative+tab).

 

Off the top of my head you have to instantiate a new CreativeTab which has the icon you want, do the stuff GoToLink mentioned to associate your items to the tab, and update the .lang file to give your tab a localized name.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

Could people please that have made mobs try and give me some advice and not just "make a new creative tab"... THAT'S NOT HOW SIMPLE IT IS... I make tutorials for f... sake, I make models, code, textures and much advanced stuff it's not as simple as creating a new creative tab because guess what I'm not a retard, I've been modding for over 2 years for christ sake just not with mobs.

as it uses a entity list to spawn stuff so I'm trying to find a easy way to select only my mobs to add to a new creativetab., sorry if I was a bit mean ;/

If I helped please press the Thank You button.

Posted

Easy way:

1. Create custom egg Item with subtypes for all your entities.

2. Create custom tab.

3. Add custom spawn eggs to that custom tab.

 

Forget about using the vanilla spawn eggs - the EntityList system was apparently never intended to accommodate modded entities, which is a real shame, imo, and should be fixed so we can use the vanilla eggs, summon command, etc.

 

Of course, you can still use it if you really want, in which case you need to get the IDs, and if you have been modding for two years, I find it hard to believe that you don't already know how to get your custom global entity IDs from the EntityList (which is actually a bunch of Maps).

Posted

Easy way:

1. Create custom egg Item with subtypes for all your entities.

2. Create custom tab.

3. Add custom spawn eggs to that custom tab.

 

Forget about using the vanilla spawn eggs - the EntityList system was apparently never intended to accommodate modded entities, which is a real shame, imo, and should be fixed so we can use the vanilla eggs, summon command, etc.

 

Of course, you can still use it if you really want, in which case you need to get the IDs, and if you have been modding for two years, I find it hard to believe that you don't already know how to get your custom global entity IDs from the EntityList (which is actually a bunch of Maps).

Well I kinda havent been actively modding over 2 years, I've been kinda on and off in periods like mod for a while then quit then mod again for a while, I just havent been making mobs and releasing mods more kinda been making stuff for myself so I can have a better experience(someone make a movie 'Mean modders') ;) anyway thanks a lot ;)

If I helped please press the Thank You button.

Posted

Could people please that have made mobs try and give me some advice and not just "make a new creative tab"... THAT'S NOT HOW SIMPLE IT IS... I make tutorials for f... sake, I make models, code, textures and much advanced stuff it's not as simple as creating a new creative tab because guess what I'm not a retard, I've been modding for over 2 years for christ sake just not with mobs.

as it uses a entity list to spawn stuff so I'm trying to find a easy way to select only my mobs to add to a new creativetab., sorry if I was a bit mean ;/

 

Umm, we linked you to several tutorials.  You obviously didn't even Google for tutorials since you get dozens of hits if you did.  Plus in this case it really is pretty much as simple as we said.  You make a creative tab just like you'd make an instance of any class in Java.  A single line:

 

public static CreativeTabs tabCustom = new CreativeTabs("tabName") ;

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.