I fixed my folder path, but it is still not working. Perhaps it is because the forge file i downloaded does not have a bin or build folder? How do I get those?
I fixed my folder path, but it is still not working. Perhaps it is because the forge file i downloaded does not have a bin or build folder? How do I get those?
Do you have a folder inside of your Modding Workspace? (e.g. Desktop/Modding Workspace/YourMod)
I fixed my folder path, but it is still not working. Perhaps it is because the forge file i downloaded does not have a bin or build folder? How do I get those?
Now that this has been created, go back to your main class, and import the Reference class. You can do so by holding down Command-Shift-O (CTRL-Shift-O on Windows) or by hovering over the importing error. Importing is essentially allowing us to have access to a class. This should clean up the errors you had.
how to import? nothing does anything (tutorial 3)
EDIT: it says 0 imports added in the bottom right. Have i missed a step?
EDIT 2: i had 1 package not 2. easy to make mistakes though....
EDIT 3 still says 0 imports added
EDIT 4 FIXED IT! retyped everything in the refrence class. it didn't work because i copy and pasted it lol
If you had your main class and your Reference class in the same package, then no, you wouldn't need to import anything because they are in the same package.
EDIT 1:Well, now that I payed attention, that mod is for 1.7.10, which means pretty much all the stuff about blockpos is all wrong and would need to be redone, and I'm not entirely certain how to do that. Also not entirely sure which parts to take out so that tools can have the aoe ability without having upgrades attached, but I'm working on it.
EDIT 1:Well, now that I payed attention, that mod is for 1.7.10, which means pretty much all the stuff about blockpos is all wrong and would need to be redone, and I'm not entirely certain how to do that. Also not entirely sure which parts to take out so that tools can have the aoe ability without having upgrades attached, but I'm working on it.
Well, Now the game runs fine, but the hammer tool when it breaks blocks doesn't make anything drop and doesn't do a 3x3. Oh well.
Here's my code if anyone want to tell me all the things I did wrong xD
I don't think you need the extra "private void setCreativeTab(){}" method in your item classes. I would have been able to make your AOEHandler class work if it wasn't 1.8, since I don't know anything about BlockPos.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThe same way you do in 1.7.10.
The green button above with the tooltip "Run" on it in Eclipse should do it.
If it doesn't do it, try creating a new run configuration.
Way more info here: http://www.minecraftforge.net/forum/index.php?topic=14048.0
I don't think you should worry about it too much, but try updating your Forge or ForgeGradle.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumAre you sure you extracted the files from the Forge src file? If you are, try using "./gradlew.bat" instead of "./gradlew".
Also, your folder path looks a bit messed up..
I fixed my folder path, but it is still not working. Perhaps it is because the forge file i downloaded does not have a bin or build folder? How do I get those?
Do you have a folder inside of your Modding Workspace? (e.g. Desktop/Modding Workspace/YourMod)
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumUhh... You're supposed to download the version that says "src". Example: http://prntscr.com/8anks5
The newest and recommended versions of Forge do not include bin and build folders. What should I do?
I downloaded that. Still did not work
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI think they create them themselves.
Ok I got it to run. Then this showed up at the end.
:recompMinecraft
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
at com.sun.tools.javac.code.Scope$ImportScope.makeEntry(Scope.java:385)
at com.sun.tools.javac.code.Scope.enter(Scope.java:196)
at com.sun.tools.javac.code.Scope.enter(Scope.java:183)
at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:132)
at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:509)
at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:446)
at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:819)
at com.sun.tools.javac.code.Symbol.complete(Symbol.java:384)
at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:766)
at com.sun.tools.javac.comp.Enter.complete(Enter.java:464)
at com.sun.tools.javac.comp.Enter.main(Enter.java:442)
at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:822)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
at com.sun.tools.javac.main.Main.compile(Main.java:353)
at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:115)
at org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler.execute(Jdk6JavaCompiler.java:45)
at org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler.execute(Jdk6JavaCompiler.java:38)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:96)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:49)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:35)
at org.gradle.api.internal.tasks.compile.DelegatingJavaCompiler.execute(DelegatingJavaCompiler.java:29)
at org.gradle.api.internal.tasks.compile.DelegatingJavaCompiler.execute(DelegatingJavaCompiler.java:20)
at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:33)
at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:24)
at org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:87)
at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:65)
at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
:recompMinecraft FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':recompMinecraft'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 52.457 secs
-
View User Profile
-
View Posts
-
Send Message
Curse Premium"OutOfMemoryError"
looks like your RAM isn't enough
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumwhat
just import the class
If you had your main class and your Reference class in the same package, then no, you wouldn't need to import anything because they are in the same package.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI found a different AOE code here: https://github.com/wyldmods/ToolUtilities/blob/fd9b1e1bfe0dea00c947bf22f8ca6b4f23f5a4e0/src/main/java/org/wyldmods/toolutilities/common/handlers/AOEHandler.java and wondered would this work any better than the tinkers code? Because I tried implementing the tinkers code and it was not a fun time...didn't work much at all. probably wasting my time but now I'm going through after implementing the new code and trying to fix all the errors...there seems to be a lot of errors concerning metadata, x, y, z values, and block. updates will follow in EDITs.
EDIT 1:Well, now that I payed attention, that mod is for 1.7.10, which means pretty much all the stuff about blockpos is all wrong and would need to be redone, and I'm not entirely certain how to do that. Also not entirely sure which parts to take out so that tools can have the aoe ability without having upgrades attached, but I'm working on it.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumyou can always give us your crash log
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumCheck your code again to see if it fits the tutorials. If they do, try removing the mods you have in the mods folder.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumSort of....
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumok you can add the mods back
Can you show us the code for ItemModernStairs, ModItems, ClientProxy and RegisterHelper?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumWell, Now the game runs fine, but the hammer tool when it breaks blocks doesn't make anything drop and doesn't do a 3x3. Oh well.
Here's my code if anyone want to tell me all the things I did wrong xD
AOEHandler:
http://pastebin.com/WWegEdCs
ItemTheopBroadpick:
http://pastebin.com/ZE86BcQc
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumOK, I've created new versions of these files. Copy these into the correct files and then it should work.
ItemModernStairs: http://pastebin.com/fFA77xp5
ModItems: http://pastebin.com/j6mmfVD2
The other files are alright.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI don't think you need the extra "private void setCreativeTab(){}" method in your item classes. I would have been able to make your AOEHandler class work if it wasn't 1.8, since I don't know anything about BlockPos.