
Modrinth · Minecraft mod
a0fefd's ConfigLib
A configuration library for mods. Adds an interface to add config options and a gui to interface with them.
Quick answer
Which a0fefd's ConfigLib release should I use?
a0fefd's ConfigLib 1.0.2 targets 26.1.2 with Fabric. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.
Where it goes
Is a0fefd's ConfigLib required on the client, server, or both?
Installation on the client is optional. Installation on the dedicated server is optional.
The source marks this as usable on both the client and server.
What else does a0fefd's ConfigLib 1.0.2 need?
1.0.2. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add a0fefd's ConfigLib without breaking your instance.
Built for a0fefd's ConfigLib 1.0.2. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.0.2. It targets 26.1.2 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.0.2. It opens that exact file at the source.
About this project
What does a0fefd's ConfigLib add?
ConfigLib
A lightweight config library for Fabric mods. Describe your options as plain Java objects and get a working in-game config screen, a / command to open it, and JSON persistence, all without hand-rolling a GUI.
Features
- In-game config screen: tabbed by category, with sub-category headings to group related options within a tab.
- Seven option types: BOOL, NUM (int and float unified), STR, ENUM (any Java enum), LIST, TUPLE, and BUTTON.
- LIST and TUPLE render as an expanding set of entry boxes rather than a single string field, and can be restricted to a specific element type. Min/max clamping applies per-entry (e.g. clamping each component of an RGB value to 0-255), not just to a single NUM.
- BUTTON runs a callback instead of holding a value, for actions that don't belong in the saved config.
- Auto-registered command: / opens the screen, no extra setup needed.
ConfigCommand.registerWithAlternativescan register additional command aliases that open the same screen. - JSON persistence: options round-trip to /.json. A corrupted or outdated file falls back to defaults instead of crashing the game. BUTTON options are skipped since they hold no value.
How to install
Add these to each section of file build.gradle
repositories {
mavenCentral()
maven { url = "https://raw.githubusercontent.com/a0fefd/ConfigLib/mvn-repo/" }
}
dependencies {
implementation "com.a0fefd:configlib:<version>"
}
Replace <version> with your target version.
Usage
Config config = new Config("mymod", null);
config.builder.add(new ConfigOption<>(
"example_toggle",
"General",
true,
Boolean.class,
ConfigOptionType.BOOL
));
config.load();
ConfigCommand.register(config);
That is enough to get a working /mymod command opening a config screen with one toggle in it. Add more ConfigOptions for more settings, and use the category and subCategory fields to organize a larger config into tabs and sections.
Requirements
- Minecraft 26.1.2
- Fabric Loader 0.19.3 or newer
- Fabric API
- Java 25 or newer
Project description from Modrinth.
Pick your setup
a0fefd's ConfigLib by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
a0fefd's ConfigLib versions and loaders
1.0.2
configlib-1.0.2.jar
20 Aug 2026
1.0.1
configlib-1.0.1.jar
20 Aug 2026
1.0.0
configlib-1.0.0.jar
4 Aug 2026
Looking for an older file? The official Modrinth project page is in Resources.