MonitoringMinecraft MonitoringMinecraft
MineLauncher
Мод FabricForgeNeoForge

Konfig

Ergonomic multiloader configuration library with sync support.

849 скачиваний 2 подписчика

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

Minecraft Fabric Forge NeoForge
1.21.11 yes yes yes
1.21.10 yes yes yes
1.21.1 yes yes yes
1.20.1 yes yes no
1.19.2 yes yes no
1.18.2 yes yes no
1.16.5 yes yes no

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
Kaf's Valentine Special
Kaf's Valentine Special
Liteminer
Liteminer
Mochila
Mochila
Torch Toss
Torch Toss
Смотри также

Похожие подборки моды — по версиям Майнкрафта, загрузчикам и жанрам.

MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК — все версии 26.1.2, 1.21.11, 1.16.5, 1.21.4. Fabric, NeoForge, Forge, шейдеры и моды в один клик.
Без лицензии Fabric, NeoForge, Forge Шейдеры и моды Все версии Майнкрафта Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows · Бесплатно · Без лицензии