A build system for Jar Mods, modernized to use ForgeGradle rather than MCP.
- Clone this repository.
- Edit "settings.gradle" to suit your needs. From now on, whenever I say
[project]
or[Project]
you should replace that with the name of your project, noting the caps. - Run
gradlew setup[Project]
in the root project directory.
- Clone this repository.
- Edit "settings.gradle" to suit your needs. Take particular care to turn on compatibility options with MCP where needed. From now on, whenever I say
[project]
or[Project]
you should replace that with the name of your project, noting the caps. - Run
gradlew setup[Project]
in the root project directory. - Delete everything in the
src
directory. - Copy all the MCP code, along with your modifications and new classes, and paste it into the
src
directory. - Run
gradlew genPatches
in the root project directory.
- To use Eclipse, run
gradlew eclipse
, then import the project in Eclipse. - To use Intellij, run
gradlew idea
, then import the project in Intellij.
Edit the files in the src
folder, like you would for a normal project. The only special things you have to do are as follows:
Use gradlew genPatches
Use gradlew setup[Project]
Use gradlew createRelease
. The release will be a ZIP file containing all modified classes, obfuscated, in the build/distributions
folder.