A Forge specific Gradle plugin to remap its sources to Yarn
Note: Although the following says Yarn, you can use anything as long as it is usable by fabric-loom
- Clone this repo
- In this repo copy/clone your target project
- In the target's settings.gradle add
includeBuild("..")
- In the target's build.gradle add the following repositories to the buildscript
- In the target's build.gradle add the following to the buildscript dependencies
classpath("me.ramidzkh:yarnforge-plugin:<version>")
(The version can be found in the build.gradle.kts)
- Apply the
yarnforge-plugin
plugin
userRemapYarn --mappings net.fabricmc:yarn:<yarn version> --mc-version <mc version> --no-daemon
- Add
--mixin true
for Mixin support - Make sure at least 1GB of RAM has been assigned to gradle. This should have been done by default already.
--no-daemon
is extremely important or gradle will leak memory until you rundaemon --stop
!
clean setup setupMCP createMcp2Obf
forgeRemapYarn --mappings net.fabricmc:yarn:<yarn version> --mc-version <mc version> --no-daemon
- Assign 3GB of RAM to Gradle. If you're starved for RAM, 2GB will usually work but will be slightly slower.
--no-daemon
is extremely important or gradle will leak over a gig of memory until you rundaemon --stop
!- The
remapped/clean
andremapped/patched
directories contain Minecraft code
Apache 2.0