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

So i want to be able to make an item that when you eat it u get an item or an item is put in your armor slot is this possible

58 minutes ago, McSpank said:

So i want to be able to make an item that when you eat it u get an item or an item is put in your armor slot is this possible

Yes it is possible.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

  • Author
56 minutes ago, Animefan8888 said:

Yes it is possible.

so two things one r u like the only one that responds on these forums and two how would i add that to my code

Screenshot (28).png

Just now, McSpank said:

o two things one r u like the only one that responds on these forums

No, I just do it more often than other people probably. I have the tab open whenever I'm online typically.

2 minutes ago, McSpank said:

two how would i add that to my code

What MC version are you modding for? 1.12.2 or 1.14.4?

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

  • Author
22 minutes ago, Animefan8888 said:

No, I just do it more often than other people probably. I have the tab open whenever I'm online typically.

What MC version are you modding for? 1.12.2 or 1.14.4?

1.12.2

Just now, McSpank said:

1.12.2

Ok that might be the simpler one to explain. You just need to extend ItemFood and override ItemFood#onFoodEaten, call the super, and use the player parameter to add an Item to the EntityPlayer#additemStackToInventory or use EntityPlayer#setItemStackToSlot to just put it in the armor slot. Make sure to check if there is something there though. Also addItemStackToInventory returns a boolean of whether it fit in the players inventory if it returns false you'll want to spawn them into the world as EntityItems.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

  • Author
1 hour ago, Animefan8888 said:

Ok that might be the simpler one to explain. You just need to extend ItemFood and override ItemFood#onFoodEaten, call the super, and use the player parameter to add an Item to the EntityPlayer#additemStackToInventory or use EntityPlayer#setItemStackToSlot to just put it in the armor slot. Make sure to check if there is something there though. Also addItemStackToInventory returns a boolean of whether it fit in the players inventory if it returns false you'll want to spawn them into the world as EntityItems.

so like im super new so i know what some of it means but not all could u please try and explain more 

1 minute ago, McSpank said:

so like im super new

To forge or java? Or both? Because if you are new to java I'm not gonna explain that to you. There is already plenty of info online you can use for that.

 

2 minutes ago, McSpank said:

but not all could u please try and explain more 

Why not tell me where you need more help?

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

  • Author
7 minutes ago, Animefan8888 said:

To forge or java? Or both? Because if you are new to java I'm not gonna explain that to you. There is already plenty of info online you can use for that.

 

Why not tell me where you need more help?

ok ill try and find something

 

7 minutes ago, Animefan8888 said:

To forge or java? Or both? Because if you are new to java I'm not gonna explain that to you. There is already plenty of info online you can use for that.

 

Why not tell me where you need more help?

 

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.