Posted June 17, 201510 yr I'm trying to make a simple block mod and I can't use the GameRegistry.registerBlock method without getting an error because the first argument needs to be an 'atr' type and it's apparent that this class doesn't exist. The same thing goes for GameRegistry.registerItem with the 'alq' type. What's strange is that I can't find even one instance of anyone else having this problem anywhere online. I am using NetBeans but I have also tried Eclipse and got the equivalent error. Does anyone know how I can fix this error and still have my mod work on version 1.8?
June 18, 201510 yr Sounds like your env was badly set up (not deobf). Follow the tutorial: http://www.minecraftforge.net/forum/index.php/topic,14048.0.html 1.7.10 is no longer supported by forge, you are on your own.
June 18, 201510 yr Author I tried to run the first line of code "gradlew.bat setupDecompWorkspace" and I get the following error 3 minutes in: Failure: Build failed with an exception. * What went wrong: Execution failed for task ':MakeStart'. > Unable to find a javac compiler; com.sun.tools.javac.Main is not in the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "C:\Program Files\Java\jre1.8.0_45" I see what's wrong here but I don't know how to fix it.
June 18, 201510 yr You need to point JAVA_HOME at the JDK, not the JRE, as the error tells you. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
June 18, 201510 yr Author I can see that but I don't know where to find that and I've tried googling it.
June 18, 201510 yr Here you go. Or here. Both near the top of the first page of Google results. Replace any reference to JRE with JDK, obviously. http://i.imgur.com/NdrFdld.png[/img]
June 18, 201510 yr Author I re-ran it and encountered yet another error and since my system language isn't English I will have to translate the error. [ant: javac] Warning: [options] Bootstrap classpath can't be set with -source 1.6 This one didn't force the program to end but it caused it to get stuck at "Building 65% > :decompile". Edit: Nevermind, it finished... I just wasn't expecting it to get stuck there for like 10 minutes.
June 18, 201510 yr Author There is no longer an issue with the 'atr' argument and it appears to be working fine now. Thank you all for your 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.