a flexible, all-in-one configuration API for Fabric mods.
|
4 jaren geleden | |
---|---|---|
gradle | 5 jaren geleden | |
src | 4 jaren geleden | |
.gitignore | 4 jaren geleden | |
LICENSE | 5 jaren geleden | |
README.md | 5 jaren geleden | |
build.gradle | 4 jaren geleden | |
gradle.properties | 4 jaren geleden | |
gradlew | 5 jaren geleden | |
gradlew.bat | 5 jaren geleden | |
settings.gradle | 5 jaren geleden |
CompleteConfig is a flexible, all-in-one configuration API for Fabric mods.
It takes care of creating and observing config entries, displaying them as GUI, and saving and loading the config.
The main goal of this library is to provide a comprehensive configuration system solution.
This means:
To use the API, first add the JitPack repository to your build.gradle
:
repositories {
...
maven { url 'https://jitpack.io' }
}
Then add CompleteConfig as dependency:
dependencies {
...
//This adds CompleteConfig and includes it in your mod's jar, so users don't have to install it
//Replace Tag with the current version you can find above
modApi 'com.gitlab.Lortseam:completeconfig:Tag'
include 'com.gitlab.Lortseam:completeconfig:Tag'
//This bundles Cloth Config in your mod's jar which is required for CompleteConfig
//Replace Version with current version
include 'me.shedaniel.cloth:config-2:Version'
//Recommended: Adds Mod Menu to your game, so you can easily open and check your config GUI (see the Mod Menu documentation for more information)
//Replace Version with current version
modImplementation 'io.github.prospector:modmenu:Version'
}
See the wiki for usage instructions.
You can also take a look at the example mod which uses many features of this API.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.