初始化工程 / 从 patch 生成 src
中的源码:gradle setupTcuhc
。注意,这将覆盖 src
文件夹内的所有文件
编辑 src
路径下的源码
生成 patch 并复制新增的自定义类至 tcuhcSrc
:gradle genPatches
编译生成可覆盖入 mc.jar
的 release:gradle createRelease
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.