Modscraper Modscraper Minecraft
Lexiconfig logo

Lexiconfig

Mod

by CodinGlitch

This is a config API that aims to provide many integrations alongside other libraries, and to be as easy as possible to use, for both developers and users alike.

Type

Mod

CurseForge Downloads

7,948,146

CurseForge ID

1019452

Modrinth Downloads

1,920,807

Modrinth ID

D157Rgyf

Last Updated

Nov 6, 2026

Description

Overview

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.

If you are a mod user, this information is likely not very useful to you. If you are a mod developer however, and you would like to use Lexiconfig in your own projects, scroll further to the Development section.

It currently does not have support for other configuration libraries, but as I continue to update it, I will add more compatibilities to each one to ensure that it does not conflict with others and can instead seamlessly integrate between them.

Here is a list of current as well as planned integrations across different config libraries/api:

❌ - Unintegrated ✅ - Integrated ❓ - In Progress

Status Mod
❌ Cloth Config
❌ oωo config
✅ Configured
❌ Forge Config Screens

Development

This mod contains an api that can be used to shelve new lexicons, listen to events, etc.

Depending

build.gradle

dependencies {
  implementation "com.codinglitch.lexiconfig:lexiconfig-api:API_VERSION_HERE"
}

You can go to https://versions.codinglitch.com to view the latest api version.

Usage

To shelve your own lexicons, you first have to your own Library. This can be done by simply creating a new class extending the Library class, and annotating it with the LexiconLibrary annotation.

@LexiconLibrary
public class MyNewLibrary extends Library {
  @Override
  public void shelveLexicons() {

  }
}

In a Forge setup, no further changes need to be made. However, if you are developing for Fabric, you will have to add this class as an entrypoint in your fabric.mod.json.

fabric.mod.json

//...
"entrypoints": {
  "lexiconfig": [
    "com.path.to.MyNewLibrary"
  ]
}
//...

The next step is to finally create and shelve your lexicons. You can do this by simply creating another class for the lexicon, and providing it with the proper annotations, like as follows:

@Lexicon(name = MY_LEXICON_TITLE) // preferably use your mod id as a name
public class MyLexicon extends LexiconData {
  @LexiconEntry(comment = "This is a comment for a simple field!")
  public String mySimpleField = "content";

  @LexiconPage(comment = "This is a fancy new comment on the fancy new category!")
  public MyNewPage myNewPage = new MyNewPage();

  public static class MyNewPage extends LexiconPageData {
    @LexiconEntry(comment = "This field is inside a lexicon page!")
    public Boolean myPageField = true;
  }
}

The next and last step is to shelve the lexicon, which can be done by simply adding an instance of it as a field in the library and shelving it in the given method.

@LexiconLibrary
public class MyNewLibrary extends Library {
  public static MyLexicon MY_LEXICON = new MyLexicon();

  @Override
  public void shelveLexicons() {
    LexiconfigApi.shelveLexicon(MY_LEXICON);
  }
}

Compatibility

Mod Loaders

Client Neoforge Server

Game Versions

1.21 1.21.8 1.21.5 1.21.4 1.21.1 1.21.6 1.21.3 1.21.7 1.21.2 1.21.9 +2 more

Recommended Gear

Affiliate

Hardware and extras that pair well with this mod.

As an Amazon Associate I earn from qualifying purchases.

Similar Mods

Included in Modpacks (298)

Show fewer
Cave Horror Project 1 Cave Horror Project 1 Cave Horror Project 1 Cave Horror Project 1 MC Eternal 2 MC Eternal 2 Biohazard: Project Genesis - The Ultimate Apocalypse Biohazard: Project Genesis - The Ultimate Apocalypse Liminal Industries Liminal Industries MineField Mods MineField Mods ChaosZProject - A Modern Zombie Apocalypse [VR for WIP v.3.0.0] ChaosZProject - A Modern Zombie Apocalypse [VR for WIP v.3.0.0] All The Mods - Gravitas² All The Mods - Gravitas² Izakji's Zombie Apocalypse II Izakji's Zombie Apocalypse II TerraFirma: Rebirth TerraFirma: Rebirth HORROR - A Quiet Place -  Death Angels HORROR - A Quiet Place - Death Angels HORROR - The silent forest - Siren Head (horror) HORROR - The silent forest - Siren Head (horror) Survive from VERITY or FALSITY Survive from VERITY or FALSITY Tanks, Ammo, Planes, and Nukes Tanks, Ammo, Planes, and Nukes Beyond Viltrum - Invincible Inc Beyond Viltrum - Invincible Inc True Horror True Horror Lees Zombie Apocalypse - Fallen Earth Lees Zombie Apocalypse - Fallen Earth FreshCraft Classic FreshCraft Classic The Cursed Redwood Forest (Horror) The Cursed Redwood Forest (Horror) Create Sky Colonies - Valkyrian Skies X Create 6.0 Create Sky Colonies - Valkyrian Skies X Create 6.0 Cobblemon Factory (Now with all 1025 pokemon!) Cobblemon Factory (Now with all 1025 pokemon!) RLFabric RLFabric Cave horror optimized (cave horror project 1) Cave horror optimized (cave horror project 1) I heard it too.JAR I heard it too.JAR FEARCRAFT  [FORGE JAVA] FEARCRAFT [FORGE JAVA] Shewolf's Origins Shewolf's Origins FreshCraft SteamPunk Industry DLC FreshCraft SteamPunk Industry DLC Liminal Industries Acension Liminal Industries Acension TransformersCraft: Rebirth TransformersCraft: Rebirth Liminal Industries - Rescripted Liminal Industries - Rescripted Horrorcraft Reimagined Horrorcraft Reimagined Steller: The Rise of the Kingdom Steller: The Rise of the Kingdom The Iron Lung Experience The Iron Lung Experience TRUE RTX TRUE RTX SharpSharp RPG SharpSharp RPG Bodycam VHS Bodycam VHS FreshCraft Fantasy DLC FreshCraft Fantasy DLC FNAF: The Longest Night FNAF: The Longest Night Parasite Infestation Parasite Infestation The Last Dawn I - Remastered The Last Dawn I - Remastered Kingdom of Elchea Kingdom of Elchea Realm of the Titans Realm of the Titans Mekanism & Create Mekanism & Create TFC Evolved TFC Evolved TACZ: BG TACZ: BG Create The Ultimate warfare Create The Ultimate warfare Souls SMP Series Souls SMP Series The Valley - Sunlit Valley Expanded The Valley - Sunlit Valley Expanded World Of Dragons World Of Dragons Au Naturel Au Naturel APOC - A Modern Zombie Apocalypse Experience APOC - A Modern Zombie Apocalypse Experience Penumbralcraft Penumbralcraft COMBAT STRIKE ZERO(TACZ FPS PVP) COMBAT STRIKE ZERO(TACZ FPS PVP) Create Colonies- A Perfect World 2 Extension Create Colonies- A Perfect World 2 Extension JJK Reborn JJK Reborn Far Craft: illager Battleground Far Craft: illager Battleground Create Flight Create Flight Terra Immundus - Sculk Horde Terra Immundus - Sculk Horde Crafty Colonies: RTS Crafty Colonies: RTS Simplicity SMP Simplicity SMP Liminal Industries - Oil Expansion Liminal Industries - Oil Expansion Outbreak Outbreak Sulidae TFC Sulidae TFC CaveTerrors VR CaveTerrors VR Create: Warzone Create: Warzone Wipezone Wipezone Cataclysmic Cataclysmic Essentials:Create Essentials:Create KRILLKRAFT KRILLKRAFT In Search of Lost Spells (Iron's Spells n Spellbooks) In Search of Lost Spells (Iron's Spells n Spellbooks) DuskRising - Zombie Apocalypse DuskRising - Zombie Apocalypse The Five Nights The Five Nights Dopeman's Apocalypse to die for Dopeman's Apocalypse to die for dreamshift world dreamshift world MHA : Heroes Journey MHA : Heroes Journey SCP Area: [REDACTED] By Epic7404 SCP Area: [REDACTED] By Epic7404 TacCam TacCam Apocalipse Light - A Zombie Apocalypse Survival Apocalipse Light - A Zombie Apocalypse Survival Realistic Minecraft - Frealism Realistic Minecraft - Frealism war for the omnitrix war for the omnitrix Friendgroup create server Friendgroup create server Citycraft Roleplay Citycraft Roleplay Create: Reatomized! Create: Reatomized! Null Sector Null Sector Zurvive - The Last Apocalypse Zurvive - The Last Apocalypse StrikeCraft StrikeCraft Naano Horizons - Utalyoa Edition Naano Horizons - Utalyoa Edition COMBAT ZERO(TACZ FPS PVP) COMBAT ZERO(TACZ FPS PVP) The Last Horror Experience [REHORRIFIED] The Last Horror Experience [REHORRIFIED] Createrington Rails 'n Sails Createrington Rails 'n Sails Vanilla Sharp Vanilla Sharp RoundAbout JoJo RoundAbout JoJo Paralyzed: The Boiled One Paralyzed: The Boiled One Paps Superflat 2 Multiplayer Ready Paps Superflat 2 Multiplayer Ready Crafttomuck Crafttomuck  DayCraft REVAMPED DayCraft REVAMPED A Quite Place remastered A Quite Place remastered Zoompack 4 Zoompack 4 True: Calamity True: Calamity Spores Infection Out Breaks : 100 days (curseforge) Spores Infection Out Breaks : 100 days (curseforge)

External Resources