Getting Started
(aka "How the hell do I add OneConfig to my mod?")
OneConfig's Example Mod
Including OneConfig Yourself
loom {
launchConfigs {
client {
// Loads OneConfig in dev env. Replace other tweak classes with this, but keep any other attributes!
arg("--tweakClass", "cc.polyfrost.oneconfig.loader.stage0.LaunchWrapperTweaker")
}
}
}
repositories {
maven { url 'https://repo.polyfrost.cc/releases' }
}
dependencies {
// Basic OneConfig dependencies for legacy versions. See OneConfig example mod for more info
compileOnly('cc.polyfrost:oneconfig-1.8.9-forge:0.2.2-alpha+') // Should not be included in jar
// include should be replaced with a configuration that includes this in the jar
include('cc.polyfrost:oneconfig-wrapper-launchwrapper:1.0.0-beta+') // Should be included in jar
}
jar { // loads OneConfig at launch. Add these launch attributes but keep your old attributes!
manifest.attributes(
"ModSide": "CLIENT",
"TweakOrder": "0",
"ForceLoadAsMod": true,
"TweakClass": "cc.polyfrost.oneconfig.loader.stage0.LaunchWrapperTweaker",
)
}Last updated
Was this helpful?