Skip to content

Fork of Shadowfact's Forgelin with kotlin 1.4.20 upgrade and jsr223 scripting support in CustomNpcs mod

License

Notifications You must be signed in to change notification settings

MineCraftGensoukyo/Forgelin

 
 

Repository files navigation

Forgelin

Fork of Shadowfact's Forgelin.

Additions

  • Shades the Kotlin standard library, runtime, coroutines-core, and reflect libraries so you don't have to.
  • Shades kotlin compiler and includes a jsr-223 script engine so you can write CNPC scripts with kotlin.
  • Provides a Forge ILanguageAdapter for using Kotlin object classes as your main mod class.

Build

After build, open the jar with WinRAR/7Zip and delete META-INF/versions folder, or your artifact will not be loaded by FML.

Why: Those folder contains class files that is valid only after Java9+. and when FML passes these classes to coremods, the ClassReaders inside those coremods will throw exceptions, causing the jar to be thought corrupted.

Usage

repositories {
	jcenter()
	maven {
		url "http://maven.shadowfacts.net/"
	}
}

dependencies {
	compile group: "net.shadowfacts", name: "Forgelin", version: "LATEST_VERSION"
}

All versions can be seen here.

Note: You must have the jcenter() call in your repositories block. JCenter is used to host the Kotlin coroutines libraries.

About

Fork of Shadowfact's Forgelin with kotlin 1.4.20 upgrade and jsr223 scripting support in CustomNpcs mod

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 92.8%
  • Java 7.2%