▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Konfig
Konfig

Konfig

Ergonomic multiloader configuration library with sync support.

431
1

Konfig

Konfig is a multiloader config library for Minecraft mods.

It gives you a typed API, side-aware config scopes (CLIENT, COMMON, SERVER), and built-in server to client sync for shared values.

What You Get

  • Typed config values in common code
  • Category-based builder API (push / pop)
  • Runtime validation and fallback to defaults
  • Built-in sync modes (NONE, LOGIN, LOGIN_AND_RELOAD)
  • Commented TOML config files at config/<modid>/<name>.toml
  • Built-in config screen generation for registered handles with auto-save status
  • Rich generated editors for string lists and RGB/ARGB color values
  • Registry-backed autocomplete for string and string-list entries
  • Fabric ModMenu integration (modmenu entrypoint)
  • Forge and NeoForge config button integration in the mod list
  • Fabric + Forge support across old and new versions
  • NeoForge support on modern versions

Pics

konfig1.png

konfig2.png

konfig3.png

konfig4.png

Supported Versions

MinecraftFabricForgeNeoForge
1.21.11yesyesyes
1.21.10yesyesyes
1.21.1yesyesyes
1.20.1yesyesno
1.19.2yesyesno
1.18.2yesyesno
1.16.5yesyesno

Quick Example

import com.iamkaf.konfig.api.v1.*;

public final class ExampleConfig {
    public static final ConfigHandle HANDLE;
    public static final ConfigValue<Boolean> ENABLED;
    public static final ConfigValue<Integer> RANGE;

    static {
        ConfigBuilder builder = Konfig.builder("examplemod", "common")
                .scope(ConfigScope.COMMON)
                .syncMode(SyncMode.LOGIN)
                .comment("Example mod config");

        builder.push("general");
        builder.categoryComment("General gameplay tuning");
        ENABLED = builder.bool("enabled", true)
                .comment("Master toggle")
                .sync(true)
                .build();

        RANGE = builder.intRange("range", 8, 1, 64)
                .comment("Effect radius")
                .sync(true)
                .restart(RestartRequirement.WORLD)
                .build();
        builder.pop();

        HANDLE = builder.build();
    }
}

Help Translate Konfig

Want to help translate this mod into your language? Join the community translation project:

Contribute translations

🇺🇸 🇪🇸 🇧🇷 🇫🇷 🇩🇪 🇷🇺 🇹🇷 🇯🇵 🇰🇷 🇨🇳

Q&A

Q: Where can I ask something that is not listed here?

A: Make an issue here or join the Discord and shoot me a message.

Q: Can you port it to [MC version/Mod loader]?

A: If enough people request it I'll give it some time, but this really is a 1-man team so it might take a while.

Q: Can I include it in my modpack?

A: Yes, no need to give credit or ask.

Join our Discord

More mods by me

Bonded
Bonded
Liteminer
Liteminer
Mochila
Mochila

Совместимость

Minecraft: Java Edition

26.1.x1.21.x1.20.x1.19.x1.18.x1.16.x

Платформы

Создатели

Детали

Лицензия:MIT
Опубликован:1 месяц назад
Обновлён:1 день назад
Главная