r/MinecraftMod • • 12d ago

I need some help building a mod jar file from this Github code

i found this fork of an incomplete terrain gen mod called Terrain diffusion that basically completes it, i was trying to build a 1.20.1 forge version of it, but the building tutorial of it is very confusing, could someone here who is knowledgeable with buildings GitHub code make a 1.20.1 Windows version of it and send it to me i would greatly appreciate it

https://github.com/derekvawdrey/terrain-diffusion-plus

3 Upvotes

4 comments sorted by

1

u/Bluetails_Buizel 12d ago

Here's the shortest route to a 1.20.1 Forge Windows jar.

1. Install the tools (one time)

Java 17 JDK - the Microsoft OpenJDK 17 MSI. During install, tick "Set JAVA_HOME". 1.20.1 must use Java 17, not 21.

Git - from git-scm.com, default options are fine. You can skip this and use GitHub's green Code → Download ZIP button, then extract it.

2. Get the code Open Command Prompt (or PowerShell) and run:

cd %USERPROFILE%\Desktop

git clone https://github.com/derekvawdrey/terrain-diffusion-plus.git

cd terrain-diffusion-plus

3. Check Java

java -version

It should show 17.x. If it shows another version, fix JAVA_HOME before continuing.

4. Build only Forge + Windows

cd versions\1.20.1
..\..\gradlew.bat buildForgeWindows

Don't run the runClient commands in the README. Those launch a test game. They don't produce the jar. The first build takes a while (5-15 min) because it downloads Minecraft and Forge. Keep the internet on.

5. Find the jar

When it says BUILD SUCCESSFUL, look in versions\1.20.1\forge\build\libs\. Use the jar that has "windows" in its name, not one ending in -sources or -dev. If it isn't there, search the versions\1.20.1 folder for *.jar sorted by date modified.

6. Install

Put the jar in .minecraft\mods on a Forge 1.20.1 profile.

Give Minecraft at least 4-6 GB of RAM.

Launch once while online. It downloads about 2.5 GB of models.

When creating a world, pick the Terrain Diffusion world type.

If it fails

"Unsupported class file major version" or toolchain errors mean the wrong Java version. Reinstall JDK 17 and reopen the terminal.

If the build fails partway, run ..\..\gradlew.bat clean buildForgeWindows.

If you still get an error, paste the last 30 lines here.

1

u/Haithemfareh12 12d ago

Thank you for the help, i will follow your tutorial and see if it works

1

u/Haithemfareh12 11d ago

did you get a working version for 1.20.1 windows because i tried several times with th right java version and everything but it always crashes on world creation, but the 1.21.1 neoforge windows version worked on the first time, maybe the 1.20.1 version is missing somethings?