Wiki 9Minecraft Wiki 9Minecraft
Insecticide Wiki › Guides › Manage Mod Settings with GSON Templates

Manage Mod Settings with GSON Templates

Why Settings Management Matters

Mods need a reliable way to save and load their configuration files. Without a standard approach, settings can get corrupted, lost between updates, or fail to load properly.

How Insecticide Provides This

Insecticide includes a GSON-based template class that mods can use to manage their settings files. GSON is a proven JSON handler, so configurations stay clean and readable.

What this enables:

1. Mods using Insecticide's template save settings in a consistent format

2. Your config files remain human-readable JSON

3. Settings persist correctly between game sessions

4. Mod developers can focus on features instead of building config systems from scratch

For players, this means:

  • Fewer corrupted config files
  • Easier manual editing of mod settings if needed
  • Better compatibility when updating mods
  • Consistent behavior across different mods that depend on Insecticide

You won't interact with this directly, but you'll benefit from more stable mod configurations and fewer settings-related crashes.