High Speed MoLang compiler and executor designed with per-frame execution in mind.
There are two main ways to use this in your application. If you are writing a Minecraft Mod with Forge, install this mod which already has the library shadowed. If you do not want to add another library to your mod, you can just manually shadow this library into your mod.
plugins {
id 'com.github.johnrengelman.shadow' version "4.0.4"
}
configurations {
shade
}
repositories {
maven {
name = "JitPack"
url = "https://jitpack.io"
}
}
dependencies {
implementation "com.github.Ocelot5836:molang-compiler:version"
shade "com.github.Ocelot5836:molang-compiler:version"
}
shadowJar {
configurations = [project.configurations.shade]
relocate 'io.github.ocelot', 'your.project.lib.ocelot'
}
This is only required in a Forge Gradle workspace
reobf {
shadowJar {}
}
artifacts {
archives jar
archives shadowJar
}
build.dependsOn reobfShadowJar