An API heavily inspired by Cloth Config for beta 1.7.3, which makes it extremely easy to add configuration to your mod.
For players, this adds an autogenerated config screen to ModMenu Beta for easy editing of config files. This won't do anything without any mods that use this.
This has a relatively flexible API which can be used to add custom configuration screens, values, and save/load logic. There's also built-in support for multiplayer syncing, hot-reloading of configs, and descriptions, which are saved inside the JSON file.
All Versions
+ Add VersionDo NOT download if you're using babric.
Changes:
- Glass networking is now bundled.
- Fix some saving oversights.
- Invalid configs no longer crash on launch. Only invalid default configs do now.
- Added an easy enum builder for config factories.
- Fix a crash that'd happen when updating a config outside of a world.
- Fixed an error when opening configs with Modmenu Babric.
- Added compatibility with modmenu-babric.
- Fixed config menus not being listed correctly.
- Fixed a bug with config validation, causing configs to fail loading.
- Added
Doublesupport. I somehow forgot this for so long. - Deprecated
min/maxLengthformin/maxValue, which hasdoubleinstead oflongas it's value.min/maxLengthwill continue to work until 4.0 releases. - Fixed a bug where loading into singleplayer would lock configs to vanilla server values.
- Added click sounds for the reset config widget.
- Add reset widgets for categories and config category screens.
- Fix a few crash bugs.
- Reworked how multiplayer configs are handled, please report issues if you find any.
- The config UI has been tweaked to take up the entire screen instead of just a column in the middle.
- Added new restart required config parameter.
- Fixed some out of date documentation.
- Fixed a weird obsucre crash... Somehow.
- Fixed pages not being in the right order.
- Compat update for modmenu 11.
- Fix PreConfigSaved not having the old config values passed properly.
- Fixed compat with GCAPI2
- Important note: This can coexist with GCAPI2 without issues.**
- Fixed many bugs, like integer configs having max length being set wrong, and a couple of crash issues.
- Config validation is now properly applied when loading from files.
- Converted to YAML instead of JSON, due to it being much easier to edit for users.
- Added the ability for modders to hide config fields from the gui.
- Many other small changes that are only really relevant to coders, which are covered in the github documentation.
- Fixed an oversight where the client would crash on joining a server if the config UI wasn't opened beforehand.
- Fixed an oversight where the root config screens would always show the cycle buttons, even if there was nothing to cycle to.
- Fixed a crash issue on some installs when guava wasn't included.
- Fixed an oversight in the enum handler that prevented it's actual use, and a crash on startup on fresh configs.
- You can now reset fields to default.**
- The config cycle tabs now show the other configs, are hidden when there are no other configs, and also show the name of their related configs.
- Fixed a ton of bad and otherwise janky save behaviors.
- Fixed a few logging issues.
- Added enum support.
- Added vanilla server related events.
- Added the ability to dynamically provide config fields, and decide if a category should get loaded.
- Some other under the hood changes. See the migration page.
- Fixed a bug where the preload entrypoint was never called.
Changes since 1.2.1:
- Fixes many input issues inside the scrollable screens, causing tooltips, button presses, text field highting, and other unwanted effects outside the visible area.
- Adds
JsonObjectsupport forreloadConfig.