Jump to content

Recommended Posts

Posted

I asked a question before about food and configs, and now I have found out thanks to Maetzer!!

This is something for the others who wanted to do so they don't have to digthrough the post.

 

 

 

Config:

Search the wiki.

 

Food:

 

Type this in public static

public static Item (ItemName) = (new ItemFood(//blockIdHere,//DrumstickValueHere, //Saturation //IfYouWantWolvesToEatIt, put true.Otherwise, false.))//Ifyoudontknowthis, seaarch it..setUnlocalizedName("porkchopRaw");
(FoodName)

 

 

 

 

Posted

Food is easy, you just have to inherit from any vanilla food with the stuff you want in your new food!

As for making a config, try looking at the wiki? There's an EXCELLENT tutorial on configs.

 

Edit: To make things clear, this topic is now solved. The OP's question is answered with all the info he needs and there's no need for any further spoon feeding, at least not if we want him to become good modder in the future!

 

If you guys dont get it.. then well ya.. try harder...

Posted

Okay, I just want to know what package can i find the foods?

 

In eclipse?

 

Press CTRL+SHIFT+T and enter the name of ANY class and you will get a list of classes matching your input.

 

For example the input:

*cake

will probably let you find the cake.

Also foods are Items, so they are probably inside the package obj.

If you guys dont get it.. then well ya.. try harder...

Posted

Searched Porkchop

 

 

Nothing came up. Any other ideas?

 

 

(Pologize for being so nooby)

 

Search for Item, and look at the list of all the items?

Browse around the minecraft pack's until you find the items, browse down them until you find what ya seek? ;)

If you guys dont get it.. then well ya.. try harder...

Posted

Some item's don't have their own class, they are just defined insite Item.Java (or Items, can remember).

 

Anyways, look into EntityPig.java  there you can find idDropped and that should show the porkchops ;)

If you guys dont get it.. then well ya.. try harder...

Posted

(Pologize for being so nooby)

 

If you are new to this, you may want to look at this:

http://courses.vswe.se/

 

Introduction to minecraft modding, starting with java basics and moving to really advance stuff like modeling, model animations and advance GUI with tabs and sliders! Recommended for you! :D

If you guys dont get it.. then well ya.. try harder...

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.