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

Hi. Apologies in advance if I've missed the answer elsewhere (I have checked but could definitely have overlooked something).

 

I'm trying to set up Forge to mod Minecraft as a way of teaching some school kids Java programming. Some basic intro stuff first: I'm running on a Mac with JDK 1.7 installed and using Eclipse (Kepler).

 

Since the kids are already using 1.7.x of Minecraft I've been following the instructions on http://www.minecraftforge.net/wiki/Installation/Source and downloading from http://files.minecraftforge.net (downloaded forge-1.7.2-10.12.0.1029-src). As it says on the wiki, I then issued:

 

./gradlew setupDecompWorkspace --refresh-dependencies

 

./gradelw eclipse

 

Everything fine so far. However, when opening the Eclipse project and the example, there's an error (Blocks.dirt.func_149739_a() is not defined in any jars that Eclipse can find). Maybe that points at the root cause of my main issue (see below), but for now I just changed that to one of the methods that is present. Then I moved on to http://www.minecraftforge.net/wiki/Basic_Modding and followed the instructions there for creating the Generic class. Unfortunately Eclipse can't find the NetworkMod annotation (cpw.mods.fml.common.network.NetworkMod).

 

I looked through all of the jars, class files and source within the installation directory and the .gradle cache, but couldn't find NetworkMod anywhere. The closest class in name is NetworkModHolder. I could find various other annotations but not NetworkMod. A google search (and search of these forums) didn't show up anything either. I suspect I've done something wrong, but at this point I don't know what so would be grateful if someone could put me back on the right track.

 

Thanks in advance!

 

func_149739_a() is now getUnlocalizedName()

 

And thanks for the solution, i was looking for a replacement for @networkmod.

 

i didn't know it is not needed anymore.

 

Thank you

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.