a flexible, all-in-one configuration API for Fabric mods.

Lortseam 21d6f44c55 Code and performance improvements преди 4 години
gradle c0024109fa Initial commit преди 5 години
src 21d6f44c55 Code and performance improvements преди 4 години
.gitignore 064b496a76 Update to Minecraft 1.16.2 преди 4 години
LICENSE 8251e1d119 Added license преди 5 години
README.md b8fd5c7c33 Remove example mod from README преди 4 години
build.gradle 9196ae6049 Fix LICENSE name преди 4 години
gradle.properties 5983d512c5 Bump version преди 4 години
gradlew c0024109fa Initial commit преди 5 години
gradlew.bat c0024109fa Initial commit преди 5 години
settings.gradle add061087e Minor changes and fixes преди 5 години

README.md

CompleteConfig

CompleteConfig is a flexible, all-in-one configuration library for Fabric mods.
It takes care of creating and observing config entries, displaying them as GUI, and saving and loading the config.

Goals

The main goal of this library is to provide a comprehensive configuration system solution.
This means:

  • Easy integration into existing code
  • Great flexibility in API usage
  • Full framework, no other libraries are required
  • Works in both client and server environment

Setup

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
    // Only required if you want to display a GUI based on your mod's config and don't provide your own GUI generation
    // Replace Version with the 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'
}

Usage

See the wiki for usage instructions.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.