Posted August 16, 201312 yr 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)
August 16, 201312 yr 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...
August 16, 201312 yr 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...
August 16, 201312 yr Author pACKAGE OBJ? I dont see any package named "Obj" What if I wanted it to be like porkchop?
August 16, 201312 yr Typo, no idea why I wrote Obj, I meant item. But as I sad CTRL+SHIFT+T to search for a class. If you guys dont get it.. then well ya.. try harder...
August 16, 201312 yr Author Searched Porkchop Nothing came up. Any other ideas? (Pologize for being so nooby)
August 16, 201312 yr 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...
August 16, 201312 yr 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...
August 16, 201312 yr (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! 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.