Better Config

Extension to Forge's annotation-based config system.

Better Config

BetterConfig extends Forge's annotation-based config system to support nested arrays, collections, arrays/collections/maps of objects, and much more.

Usage

BetterConfig is hosted on Maven Central. To get started, add the following to your dependencies in your build script:

implementation fg.deobf('io.github.meldexun:betterconfig:1.12.2-1.0.1')

To then migrate from Forge to BetterConfig, you only have to

  • annotate your config class with @BetterConfig instead of @Config and
  • replace all invocations of ConfigManager.sync(String, Type) with BetterConfigManager.sync(String).

That's it! Now your config will be processed by BetterConfig.

Features

For more information, check out the wiki at https://github.com/Meldexun/BetterConfig/blob/main/README.md

Mod Features

Features for players installing the mod

  • In-game GUI editing of mods using net.minecraftforge.common.config.Configuration. These configs would normally not be editable in-game because they don't use Forge's annotation-based config system. Depending on how these mods use their config, you might have to restart your game to see an effect.

discord ko-fi

The Better Config Team

Grand Artisan tier frameprofile avatar
  • 51
    Followers
  • 17
    Projects
  • 88.0M
    Downloads

More from meldexunView all