Skip to content

Forge specific Gradle plugin to remap Forge source code

License

Notifications You must be signed in to change notification settings

TheGlitch76/yarnforge-plugin

 
 

Repository files navigation

YarnForge Gradle plugin

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

Setup

classpath("me.ramidzkh:yarnforge-plugin:<version>")

(The version can be found in the build.gradle.kts)

  • Apply the yarnforge-plugin plugin

Usage for user mods

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 run daemon --stop!

Usage for Forge

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 run daemon --stop!
  • The remapped/clean and remapped/patched directories contain Minecraft code

License

Apache 2.0

About

Forge specific Gradle plugin to remap Forge source code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 92.7%
  • Kotlin 7.3%