Dungeon Config
Every mod needs settings, and every modder eventually faces the same tedious chore: writing GUI code, wrestling with serializers, and hoping players never break their config files. Dungeon Config for Minecraft removes that chore entirely. It is a configuration library for Fabric and NeoForge mods that generates a polished, Minecraft Dungeons style settings screen straight from the options you declare in code. No screen builders, no layout math, no widget registration. You define the entries, and the library handles the rest.
What Dungeon Config Actually Does
The core promise is simple. You declare your options in Java, and Dungeon Config produces a commented JSON5 file at config/<modid>/<modid>.json5, written in your declared order with your comments placed above each value. On top of that, it builds a full settings screen with tabs, sections, a search bar, sliders, dropdowns, registry pickers, tooltips, unsaved-change prompts, and restart notices. All of that arrives without a single line of GUI code from you.
Players reach the screen from a title screen button, a Ctrl + K shortcut, or the Config button that Dungeon Config adds automatically in Mod Menu and NeoForge's Mods list. Every mod using the library also gets a spot on the shared "Dungeon Configs" page, which keeps settings from a dozen different mods in one tidy place.
Supported Versions and Loaders
The library targets modern Minecraft, with builds available for the 1.21.1 line and the newer 26.1.x releases, on both Fabric and NeoForge. On 1.21.1 the artifacts carry a DungeonConfig-1.21.1- prefix, while 26.1.x builds use DungeonConfig-26.1.x-. If you are unsure which build matches your game version, the foxygame.net launcher displays compatible add-on versions right next to each catalog entry, so matching Dungeon Config to your exact Minecraft release takes a single glance rather than a trip through changelogs.
Declaring Your First Config
Setup is refreshingly short. Create a class with a static builder call, add your entries, and call load() once after every entry exists. The helper methods cover the common cases:
addBooleanrenders a toggle.addInt,addLongandaddDoublerender sliders with min and max bounds.addStringrenders a text box.
For enums, lists, or custom types, you construct a ConfigEntry yourself and register it. Reading values anywhere in your code is as cheap as calling get() on the entry, and it is thread-safe, so caching is unnecessary.
Robustness is baked in. If a player hand-edits the file into something invalid, the broken version is preserved with a .bad-<date> suffix and a clean file is written. Out-of-range numbers are clamped on load rather than crashing the game.
Server Sync and Restart Semantics
Each option can optionally sync from server to client, and crucially, a sync never overwrites the player's own saved value. Restart handling follows NeoForge conventions through worldRestart() and gameRestart(), so options that genuinely need a reload are clearly flagged in the interface instead of silently failing.
Porting Existing Mods
This is where Dungeon Config earns its keep for established projects. It ships drop-in stand-ins for NeoForge's ModConfigSpec, Cloth Config's AutoConfig, and NightConfig's CommentedFileConfig. In most cases, porting means changing imports and deleting the old registration call. Existing player config files are imported automatically on first load and renamed with a .migrated suffix, so nobody loses their settings. A manual migrateFrom helper handles any other format, matching values by renamed key, dotted path, or final key name.
Theming and Media
Per-mod screen theming goes further than most players expect. Background pictures, GIFs, or videos, menu music, custom fonts, and colour schemes can all be bundled in your jar or served from a URL. Players can override every piece of it through their own config folder, and resource packs can replace bundled files. Video and non-standard audio formats rely on FFmpeg, which the screen offers to download into a shared folder, so you never need to ship it yourself.
Getting Started
If you want to download Dungeon Config, note that it is not on a public maven yet. Publish it to your local maven with the Gradle publishToMavenLocal task, add mavenLocal() to your repositories, and depend on the common, Fabric, or NeoForge artifact as needed. You can bundle it jar-in-jar so players install nothing extra, or list it as a required dependency. Either way, declare it in your mod metadata so loaders resolve it correctly.
For players, how to install is even simpler: drop the jar into your mods folder alongside Fabric API or NeoForge, and the Config buttons appear automatically for every mod that uses the library. No registration, no keybind setup, no configuration of the configuration tool.
Final Thoughts
Dungeon Config solves a problem that has quietly annoyed modders for years: settings screens are essential, repetitive, and easy to get wrong. By turning a handful of declarations into a themed, searchable, migration-friendly interface, it lets developers spend their time on gameplay instead of widget layouts. Whether you are shipping a small quality-of-life tweak or porting a large tech mod, the library delivers a professional configuration experience with almost no effort.