Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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)

 

 

 

 

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...

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...

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...

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...

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...

(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...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.