COAL – Cloth Config Adapter Mod (1.21.8) – Edit Deeply Nested Mod Settings
COAL – Cloth Config Adapter Mod connects COAL to Cloth Config so every mod built on COAL displays its settings screen in Cloth Config. Beyond settings screens, this library adds JSON persistence, load-time validation, and versioned migrations for config data. It keeps deeply nested config trees intact at every level where YACL flattens them after two levels. This mod runs side by side with both required libraries inside the mods folder, and only one adapter stays active at a time. Dependent mods compile against the core API packages and let players pick whichever settings menu adapter they prefer at runtime.
![]()
Features:
- Cloth Config Screen Rendering: Displays the in-game settings screen of every COAL-using mod inside Cloth Config automatically once the required trio of mods is present.
- JSON Persistence: Saves and loads mod config values in JSON format so settings stay stored cleanly between play sessions.
- Load-Time Validation: Checks config values when the game loads to catch invalid settings early.
- Versioned Migrations: Handles config version updates through built-in migration routines as mod settings change.
- Deep Nested Config Trees: Preserves deeply nested sub-categories across every depth level thanks to Cloth Config’s recursive sub-category widget, whereas YACL flattens trees after two levels.
- Runs as a runtime adapter named
coal-cloth-adapteralongside the baseCOALabstraction layer andCloth ConfigGUI library in themods/folder. - Prevents adapter conflicts by requiring only one COAL adapter at a time, so it should not be installed together with
coal-yacl-adapter. - Keeps compile-time code separate so dependent mods only depend on
coal-apiandcoal-api-gui-<loader>while players choose their preferred GUI adapter at runtime.
Capability Flags:
MIGRATION: Advertised for versioned config migrations.VALIDATION: Advertised for load-time config validation.GUI_DELEGATION: Advertised for handing settings screens off to Cloth Config.SYNC,FILE_WATCH,JSON5, andCUSTOM_FORMATS: Not advertised by this adapter, keeping its scope focused on standard JSON persistence, validation, migrations, and GUI rendering.
How to Use:
- Place all three required mods side by side inside your
mods/folder:COAL(the abstraction layer),coal-cloth-adapter(this mod), andCloth Config(the GUI library). - Check your
mods/folder to make surecoal-yacl-adapteris not installed at the same time, since only one COAL adapter should be active. - Launch the game and open the settings screen of any mod that uses COAL; its options and deeply nested sub-categories render automatically in Cloth Config.
- Switch to
coal-yacl-adapterinstead of this mod if you ever prefer YACL menus, removing this adapter first so only one remains active. - When building a mod that uses COAL, compile against
coal-apiandcoal-api-gui-<loader>rather than this adapter so players can choose their own adapter at runtime.
How to Install:
New to Minecraft? Follow our step-by-step guide to install Mods on your PC.View Guide
Requirements:
COAL Download Links
For Minecraft 1.21.8, 1.21.7, 1.21.6
Do you include client-side quality-of-life mods (like inventory tweaks or mini-maps) when playing on public servers?
23 responses · See the full results →
0
























This post has no comments yet. Be the first — your comment will appear here.