Get the files on 9Minecraft
Guides
Step-by-step, in-game.
Changing Config Options In-Game Without RestartingOpen the mod's config screen Mods built on SuperMartijn642's Config Lib typically register their own config screen,…Fixing a Config That Resets or Won't SaveCheck for file errors first The most common cause of a config that reverts is a malformed file. Open the config .json…How to Edit a Mod's Config File by HandFinding the config file Configs managed by SuperMartijn642's Config Lib are written to the config folder inside your…Making a Config Value Apply to All Players on a ServerUnderstanding syncing SuperMartijn642's Config Lib separates values into client-side and server-side configs.…
Frequently asked questions
How do I start using Config Lib in my own mod?
Add Config Lib as a dependency in your mod's build file, then create a config builder in your mod's initialization code. Register the config with the builder so Config Lib can handle loading, syncing, and reloading for you.
How do I actually create a config file with Config Lib?
Use the config builder to define your config, then add entries like booleans, integers, strings, or lists with their default values and comments. Call the builder's register method so Config Lib generates the file and manages it.
What's the difference between client, server, and common configs in Config Lib?
Common configs exist on both sides and are usually synced, client configs only affect the client, and server configs only exist on the server. Config Lib generates the right file for each type automatically, so you don't have to handle that yourself.
How does config syncing between client and server work?
When you mark a config as synced, Config Lib sends the server's values to connecting clients so they match. Clients use the synced values instead of their local file, which prevents desync issues in multiplayer.
See all 19 SuperMartijn642s Config Lib questions ›
Gallery
1 image from the Supermartijn642S Config Lib page.
You May Also Like
Wikis that share the most with this one
More mod wikis on the site
The most downloaded mods that have a wiki here
A few wikis from each of the other kinds

