Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
BetterConfig

BetterConfig

A very powerful and easy to use command based configuration library for servers and clients.

5,098
8
Library
Management
Storage

Compatibility

Minecraft: Java Edition

1.21
1.20–1.20.1
1.19.3–1.19.4

Platforms

Fabric
Paper

Supported environments

Client-side
Server-side
Client and server (optional)

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source Visit wiki Join Discord server
Donate on Patreon

Creators

xpple
xpple Owner

Details

Licensed LGPL-3.0-or-later
Published 2 years ago
Updated 5 months ago
DescriptionChangelogVersions

Show all versions

1
2

Release Paper 2.3.0

by xpple on Jan 19, 2025
Download

Release Fabric 2.3.0

by xpple on Jan 19, 2025
Download
  • Greatly improved documentation of Config class

Release Paper 2.3.1

by xpple on Jan 19, 2025
Download

No relevant changes.

Release Fabric 2.3.1

by xpple on Jan 19, 2025
Download
  • Replaced modRuntimeOnly with modLocalRuntime in Fabric Gradle build script

Release Paper 2.2.0

by xpple on Jan 15, 2025
Download

Release Fabric 2.2.0

by xpple on Jan 15, 2025
Download
  • Update JavaDoc to clarify that resetting a config does not use the setter
  • Allow for custom chat representations of config values (#16)

Release Paper 2.1.3

by xpple on Jan 14, 2025
Download

No relevant changes.

Release Fabric 2.1.3

by xpple on Jan 14, 2025
Download
  • Fixed a mixin bug causing a crash with some mods

Release Paper 2.1.2

by xpple on Oct 10, 2024
Download

Release Fabric 2.1.2

by xpple on Oct 10, 2024
Download
  • Added the sources JAR to the publication

Release Paper 2.1.1

by xpple on Oct 9, 2024
Download

Release Fabric 2.1.1

by xpple on Oct 9, 2024
Download
  • Fixed a bug with ModConfig#resetTemporaryConfigs that could cause a bug when a config is both temporary and readOnly

Release Paper 2.1.0

by xpple on Sep 13, 2024
Download

Release Fabric 2.1.0

by xpple on Sep 13, 2024
Download

This release introduces two new features and some bug fixes!

  • Added the onChange config attribute (#10). You can now register a function that is called whenever a specific config is updated. For example:
    @Config(onChange = "onChange")
    public static List<String> exampleOnChange = new ArrayList<>(List.of("xpple, earthcomputer"));
    private static void onChange(List<String> oldValue, List<String> newValue) {
        LOGGER.info("exampleOnChange was updated | old: {}, new: {}", oldValue, newValue);
    }
    
  • Added global change hook (#11). This allows you to register a global function that is called whenever any config is updated. For example:
    new ModConfigBuilder<>("<mod id>", Configs.class)
        .registerGlobalChangeHook(event -> BetterConfigCommon.LOGGER.info("{} was updated | old: {}, new: {}", event.config(), event.oldValue(), event.newValue()))
        .build();
    
  • Added Tatar translations (#8 by Amirhan-Taipovjan-Greatest-I)

Release Paper 2.0

by xpple on Aug 20, 2024
Download

Release Fabric 2.0

by xpple on Aug 20, 2024
Download
  • Added support for Paper servers Depending on your setup, you might have to adjust how the config is initialised:
    • Fabric clients:
      new ModConfigBuilder<FabricClientCommandSource, CommandBuildContext>(<mod id>, Configs.class)
          // ...
          .build();
      
    • Fabric servers:
      new ModConfigBuilder<CommandSourceStack, CommandBuildContext>(<mod id>, Configs.class)
          // ...
          .build();
      
    • Paper servers:
      new ModConfigBuilder<>(<plugin name>, Configs.class)
          // ...
          .build();
      
  • Added support for server-sided custom argument types
    • Fabric:
      dev.xpple.betterconfig.util.WrappedArgumentType
      
    • Paper:
      io.papermc.paper.command.brigadier.argument.CustomArgumentType
      
  • Fixed bug where the reset subcommand would be available for readonly configs

Release Paper 1.3-multi-platform

by xpple on Aug 20, 2024
Download

Release Fabric 1.3-multi-platform

by xpple on Aug 20, 2024
Download
  • Added support for Paper servers (details will follow in the stable release)

Release 1.3

by xpple on Jun 17, 2024
Download
  • Updated to Minecraft 1.21
  • Fixed resetting some configs by using deep copied value

Release 1.2.1

by xpple on Aug 24, 2023
Download
  • Added boolean argument type back to default arguments
1
2

Modrinth is open source.

main@396f737

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.