Skip to content

Minecraft mod template using forge and Kotlin or just Forge MDK but with Kotlin.

License

Notifications You must be signed in to change notification settings

MairwunNx/Minecraft-Forge-Kotlin-Mod-Template

Repository files navigation

🐛 Lightweight template repository for forge mod with using kotlin language and gradle build tools.


Compatibility ✔

Minecraft version Forge version Gradle version
1.14.4 (this branch) 28.X.X 5.6.4
1.15.2 31.X.X 5.6.4

Contains 🧐

  • Gradle kotlin dsl buildscript build.gradle.kts.
  • Boilerplate code of forge mdk.
  • Included kotlin runtime (JDK 8) in build.
  • Documentation for build script.
  • Included some hacks for using forge events in kotlin classes. (Not cool, but work).

Get started ☕

  1. Download sources \ clone repository or click on Use this template and clone.
  2. Open as project cloned repository on local disk. (In IDEA or Eclipse).
  3. IDEA automatically starts configuring build script. (Nothing need to do).
  4. After finishing all gradle tasks you can run build task and see library in path ./build/libs/xxx.jar.
  5. Copy mod jar in minecraft mod directory and 🎉, mod loaded.
  6. If all steps finished without problems, put star on this repository =).