Shadow Config
Shadow Config is a configuration library for mods, with automatic config migration and comment injection through annotations, built for Fabric, Forge and NeoForge.
What it does
Mod developers use the library to define and read configuration files without writing the parsing code themselves. One config class can be written out as JSON, JSONC, TOML or YAML, so the same settings model works for any of those formats. Output is kept clean and formatted, and comments can be preserved when the file is rewritten.
Nested structures, lists and primitive values are handled through Jackson-based serialization. When a config changes shape between versions, the library migrates existing files automatically instead of requiring a hand-written mapping. Comments are injected from annotations, so the documentation in a file stays in step with the code that defines it.
The library is aimed at mod developers who want a small, focused dependency. Its runtime footprint is kept minimal, and it is published for Fabric, Forge and NeoForge so one codebase can serve several loaders. It is licensed under the Creative Commons Attribution 4.0 license and is not open source. The current files cover 1.12.2, 1.20.1, 1.21 and 1.21.1, and the library is required by three other mods: Stylish Battle Ranks, Regenerating Blocks and LegacyChecker.
Key features
Multiple config formats
One config definition can be stored as JSON, JSONC, TOML or YAML without changing the code that reads it.
Automatic migration
Existing config files are updated when the config structure changes, so no manual version mapping is needed.
Annotation-based comments
Comments in the generated file come from annotations on the config fields, keeping the documentation close to the code.
Nested structures and lists
Jackson-based serialization handles nested objects, lists and primitive values in the same config.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Required by 3 mods
Use cases
Mod settings
A mod author defines its options once and lets the library write, read and migrate the file.
Multi-loader projects
A developer building one mod for Fabric, Forge and NeoForge can keep a single config setup across all three.
Who it’s for: Mod developers who want a lightweight configuration library with automatic migration and annotation-based comments, rather than writing their own file handling.
Questions
Which loaders does Shadow Config support?
Does Shadow Config have to be installed on the server?
Which mods require Shadow Config?
Which file formats can a config be written in?
In the catalog
Shadow Config is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 32,366 mods support Minecraft 1.21.1.
More from ShadowKing21_
Similar mods
What the author says
Shadow Config is a lightweight configuration library for mods, focused on clarity, automation, and minimalism.
Official listing
- Modrinth page
- modrinth.com/mod/shadow-config
- Owner
- ShadowKing21_
- Published
- 2026-01-08
- Updated on Modrinth
- 2026-06-14
- Facts verified
- 2026-10-15
