Closed anielsen001 closed 6 years ago
Just had this issue with another mod.
Three things -
They create compiled, obfuscated jar executables. Minecraft requires that it be obfuscated (is what I heard) and only those two commands do that.
Make sure that's included in your eclipse build path in,
Right click project > build path > configure build path > libraries > add external jar > choose the file.
I don't know how, but I know that bit.
Thanks for your comments, the pointed me in the correct direction and I did solve the issue. After running ./gradlew build
a jar file will be created in ./build/libs
but this is not sufficient to run in a production Minecraft. You also have to run
./gradlew reobf
before copying the jar file to the production minecraft/mods directory.
I don't use Eclipse or a traditional IDE, I just edit with emacs and build from the CLI, so the IDE configurations may take care of this transparently.
Thanks guys :)
I'm new to modding, so this may be something stupid. I can clone and build MBE such that it will run using gradlew runClient just fine. If I copy the build/libs/minecraftbyexample-1.12.2a.jar and put it into my minecraft/mods directory then minecraft crashes with this error:
For reference, I verified the versions of the minecraft when I run using gradle: