Jump to content

[TUTORIAL] Getting Started with ForgeGradle


GrygrFlzr

Recommended Posts

Ok, so I managed to fix the error, and my mod properly compiled. However, when I tried to run the mod on my minecraft forge profile, it didn't appear. Forge acted as if the mod didn't exist. I'm not sure why this happened, so I guessed that it was a problem with the forge version. I changed it in the build file, but still got the same result ._.

Link to comment
Share on other sites

My source code is in the src/main/java/com/slayer, as I believe it should be. However, when I open the jar file with JD-Gui, the only thing that shows up is a MANIFEST.MF inside a META-INF folder. The manifest file only has this line of text:

 

Manifest-Version: 1.0

 

I'm really not sure what's going on here. I made sure that all of the syntax errors in the build file were fixed, and my java files are in the right place. It seems that I'm doing everything correctly, so why wouldn't the mod compile properly?

 

 

Link to comment
Share on other sites

  • 4 months later...
  • 1 month later...

inside the .jar archive there's not .java file to edit...

 

How can i edit the entities?

i cant edit files .class

Yes, of course you cannot edit them. They are part of libraries that Minecraft uses resp. part of Minecraft itself. You cannot just edit other people's code.

 

And why i saw people editing it?

in tutorials all this .class is .jar, and they edit by it.

 

i still don't understanding.

 

 

diesieben07, i cant understand it too, i dont know what is  EntityJoinWorldEvent.

as i said, i'm beginner.

 

Link to comment
Share on other sites

  • 1 month later...

Hello. I am getting the error "java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path". You have an entry in your troubleshooting section for that, however I couldn't find a folder 'natives' within a folder 'build' anywhere on my harddisk. I followed your tutorial to the letter. Could you shed some light on this problem?

Link to comment
Share on other sites

  • 1 month later...

Just wanted to chime in here and say that if anyone is receiving a stackoverflow exception during the :recompileMc task - update your JDK. This had me confused for about an hour this morning. - I updated to jdk 7u80 and everything went off without a hitch.

 

[Original Error] http://pastebin.com/BDhapB5Q

As it was generated from "gradle setupDecompWorkspace eclipse"

Link to comment
Share on other sites

  • 5 months later...
  • 6 months later...

hi, i'm starting again my modding career,

but the fact that using "GradleStart in the run configuration for eclipse" is only mentioned in the comments and not in the initial post makes me kind of wondering. Written in 2013 it should be checked if everything in 2017 is still the way it was. And if so it should be mentioned there. My last time modding was 2015.

Sorry if someone is pissed if i say this, but i think as a coder, who checks every bit and byte and comma, you can't leave an important tutorial like that. It does not even explain what "gradlew eclipse" does exactly [..] .. Saying so i presume we are happy about as much (terrific) modders as possible .. [rant over][wishing a happy day]

Link to comment
Share on other sites

24 minutes ago, chrissiOnAir said:

hi, i'm starting again my modding career,

but the fact that using "GradleStart in the run configuration for eclipse" is only mentioned in the comments and not in the initial post makes me kind of wondering. Written in 2013 it should be checked if everything in 2017 is still the way it was. And if so it should be mentioned there. My last time modding was 2015.

Sorry if someone is pissed if i say this, but i think as a coder, who checks every bit and byte and comma, you can't leave an important tutorial like that. It does not even explain what "gradlew eclipse" does exactly [..] .. Saying so i presume we are happy about as much (terrific) modders as possible .. [rant over][wishing a happy day]

 

It's still the same as it was. This page is the most up-to-date guide on setting up a ForgeGradle workspace and it explains what each step does in a bit more detail.

  • Like 1

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

  • 1 year later...
1 minute ago, diesieben07 said:

这不是支持线程。此外,此论坛不再支持1.7.10及更早版本。如果您需要支持,请更新到现代版的Minecraft。

so is that mean, i wanna get some help need me updata my forge verson to 1.10.x or more?

but some people say that the mod of 1.7.10 are best made... 

Link to comment
Share on other sites

Hi everyone, sorry for bothering you all, but i'm having trouble setting up the environment for modding minecraft. When i run the command "gradlew setupDecompWorkspace" it says it can't resolve the dependencies for classpath, can somebody help me? I'm sorry if i post this here but i'm currently new so i don't know whether i should post this here or somewhere else.

Link to comment
Share on other sites

  • 3 months later...
  • 8 months later...
  • 5 months later...
  • Guest unpinned and locked this topic
Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.