Wiki 9Minecraft Wiki 9Minecraft

Editing Config Files and Recovering Broken Settings

If you prefer to edit your mod configuration files directly inside your Minecraft config folder using a text editor, S-Lib includes several automatic safeguards to prevent mistakes from ruining your setup.

How S-Lib Manages Your Edits

When you open a config file managed by S-Lib, you will find comments inside the file explaining what each option does. As you edit the file or update your mods, S-Lib automatically cleans up the file upon launch:

  • Number clamping: If you type a number that is higher or lower than what the mod allows, S-Lib automatically clamps the number back within the valid limit.
  • Mod updates: When a mod updates, S-Lib automatically fills in default values for newly added options and clears out old keys that are no longer used.

Recovering a Broken Config File

If you accidentally make a syntax error or type invalid text into a config file, you do not have to rebuild your settings from scratch:

1. Launch the game or reload the mod. When S-Lib detects broken or invalid text, it automatically generates a backup of your damaged file before resetting the active config.

2. Open your config folder and look for the newly created backup file alongside the active config file.

3. Open the backup file in a text editor, copy your custom settings over to the fresh config file, and fix the typo that caused the reset.

Join 9Minecraft News & Guides