Skip to content

Better Config

By meldexunOwner

Extension to Forge's annotation-based config system.

<1,000 downloads Updated

Last update on each platform

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

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.3.0')

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

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.3.0')

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