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

I was under the idea that you were coding post Minecraft 1.7, due to your use of "net.minecraftforge ", but the evidence of "cpw.mods.fml" states that this is 1.7 or lower.
1.7 is not supported in this forum. Please update, before a moderator locks the thread.
 

@Differentiation

He does not need proxies when he's merely using events that happen on both sides aka COMMON.
I also told him to use static, so that he could annotate his class with @Mod.EventBusSubscriber instead of having to manually register it.
Please do not barge in stating things are wrong when they are not.

Edited by Matryoshika

Also previously known as eAndPi.

"Pi, is there a station coming up where we can board your train of thought?" -Kronnn

Published Mods: Underworld

Handy links: Vic_'s Forge events Own WIP Tutorials.

  • Author
1 minute ago, Matryoshika said:

I was under the idea that you were coding post Minecraft 1.7, due to your use of "net.minecraftforge ", but the evidence of "cpw.mods.fml" states that this is 1.7 or lower.
1.7 is not supported in this forum. Please update, before a moderator locks the thread.
 

@Differentiation

He does not need proxies when he's merely using events that happen on both sides aka COMMON.
I also told him to use static, so that he could annotate his method with @Mod.EventBusSubscriber instead of having to manually register it.
Please do not barge in stating things are wrong when they are not.

Well, I'm not going to update since I want this modification to work in 1.7.10 :L

Does it make much of a difference with the code?

13 minutes ago, Newww said:

               ItemStack itemstack = event.entityPlayer.inventory.getCurrentItem();

That's not how you get the item being used.

The event provides it for you if you are using a proper Minecraft version (aka 1.9 +)

ItemStack stack = event.item;

or something along these lines.

  • Guest locked this topic
Guest
This topic is now closed to further replies.

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.