Wiki 9Minecraft Wiki 9Minecraft

SuperMartijn642s Config Lib Wiki & Guide

Java EditionModGuides 4FAQ 19Related mods 48

SuperMartijn642s Config Lib allows you to specify a config once and it then handles reloading values between world loads, syncing values with clients, and generating values for client- or server-only on its own.

DownloadSuperMartijn642s Config Lib

Get the files on 9Minecraft

Contents (4)
  1. Guides
  2. Frequently asked questions
  3. Gallery
  4. You May Also Like

Guides

Step-by-step, in-game.

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 ›