ZConfig
Modby zenxarch
A mixin config mod with override loading from other mods
Type
Mod
CurseForge Downloads
341,982
CurseForge ID
Modrinth Downloads
1,290,936
Modrinth ID
Last Updated
Nov 15, 2026
Description
Why does this project exist?
This is a general purpose config mod slightly based on c2me's internal config system. This also lets me reduce zfastnoise's size to a few dozen kilobytes and users only have to download the config mod once.
Features
- Toml based config files
- boolean and int based config entries
- allow other mods to override config entries using mod metadata
- mark mods as incompatible with certain config entries
For example, fabric.mod.json
{
...
"custom": {
"zfastnoise:overrides" : "mixin.perf.surface"
}
}
The above disables mixin.perf.surface config option
Future plans
- add support for modmenu/forge config api
- add neoforge builds
- add more sugar to easily generate config
Example config
package org.codeberg.zenxarch.zconfig.test;
import org.codeberg.zenxarch.zconfig.entry.BooleanConfigEntry;
import org.codeberg.zenxarch.zconfig.entry.ConfigEntries;
import org.codeberg.zenxarch.zconfig.entry.IntConfigEntry;
import org.codeberg.zenxarch.zconfig.loader.Config;
import org.codeberg.zenxarch.zconfig.loader.ConfigLoader;
import org.codeberg.zenxarch.zconfig.loader.OverrideCollector;
import org.junit.jupiter.api.Test;
public class ExampleConfig extends ConfigEntries {
public static final ExampleConfig INSTANCE = new ExampleConfig();
public static final BooleanConfigEntry MAIN =
INSTANCE.createEntry(
"main",
builder -> builder.addComment("Main entry").defaultValue(false).addIncompat("sodium"));
public static final IntConfigEntry OTHER =
INSTANCE.createIntEntry(
"other", builder -> builder.addComment("Other entry").defaultValue(0).constraints(-1, 1));
public static final Config CONFIG =
new Config(
new ConfigLoader("example_mod_id", INSTANCE), new OverrideCollector("example_mod_id"));
@Test
public void loadConfig() {
IO.println(CONFIG.get(MAIN));
IO.println(CONFIG.get(OTHER));
IO.println(CONFIG.loadMixinEntries());
}
}
Compatibility
Mod Loaders
Game Versions
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Screenshots
Similar Mods
Prestige
Allows progress that extends beyond a world.
Friends&Foes - Beekeeper Hut (Fabric/Quilt)
An addon for the Friends&Foes mod, adding a beekeeper hut structure.
Extra Thicc Packets
Tired of packet size errors? This mod will fix them for you!
Fantastic Lib
You only need this if it's a dependency for another mod you're running
Crawl on Demand
A simple mod to allow the player to go prone by usng a hotkey
Responsive Shields
Remove that delay when blocking
Included in Modpacks (132)
Most downloaded
Sodium Plus
Fresh & Smooth
Remarkably Optimized
OptiFine for Fabric
Re-Console+
XPlus PerioTable Modpack (Fabric)
Additive
Adrenaline
FPS Booster
Everything Voxy
Sensible MC
OneClient
Enhanced FPS