Lexiconfig
by CodinGlitch
Lexiconfig is a configuration library that developers use to define config files with annotations, and it is not meant to be installed on its own.
What it does
Lexiconfig lets a developer declare a configuration file as a class with annotations, so new config files need little code. The author built it mainly for the mods in the same project, and it is aimed at developers who want to use it in their own work.
Its aim is compatibility across several other config libraries and a setup that works in multiloader projects on Fabric, Forge and NeoForge. At present it does not yet integrate with other config libraries, and the author lists planned integrations for later updates. Fabric API is required, and optional dependencies are configured per mod.
The mod runs on client and server, so both sides need the same build. Files are published for Fabric, Forge and NeoForge across 27 release versions, 1.18 – 1.21.11, and the code is open source under the GNU General Public License v3.0 only. The source code and issue tracker are linked publicly.
Key features
Annotation-based config syntax
A config file is defined by a class with annotations, which removes most of the manual setup code.
Multiloader setup
The same library source covers Fabric, Forge and NeoForge projects, so one codebase can serve all three.
Lexicon shelving
A lexicon is created as its own class and registered by adding an instance as a field of the library and shelving it in a given method.
Planned integrations
The author lists integrations with other config libraries as planned work, meant to avoid conflicts between them.
Compatibility
Latest build for each game version and loader.
1.21.x12 of 12 versions with builds
1.20.x7 of 7 versions with builds
1.19.x5 of 5 versions with builds
1.18.x3 of 3 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Optional 1
Required by 2 mods
Use cases
Developing a mod with config files
A developer declares each config file as an annotated lexicon class and shelves it in the library, instead of writing parsing code by hand.
Shipping a multiloader mod
A developer targeting Fabric, Forge and NeoForge can share one configuration setup across all three loaders.
Who it’s for: Mod developers who want annotation-based config files in their own projects. Players and server owners have little use for the library unless a mod they install depends on it.
Questions
Does Lexiconfig need Fabric API?
Which loader should a developer target with Lexiconfig?
Do players need Lexiconfig installed?
In the catalog
Lexiconfig is one of 29,952 Game mechanics mods on ModsFinder, and one of 19,630 Game mechanics mods for Fabric. 19,862 mods support Minecraft 1.21.11.
More from CodinGlitch
Similar mods
What the author says
This is a config API meant to provide compatibility across multiple different other config libraries as well as be easy to use in a multiloader project setup, mainly for use in my mods. It features a simple to use annotation-based syntax, to make creating new configuration files as easy as possible.
Official listing
- Modrinth page
- modrinth.com/mod/lexiconfig
- Owner
- CodinGlitch
- Published
- 2024-05-15
- Updated on Modrinth
- 2026-06-07
- Facts verified
- 2026-10-15
