Guides
The pages in Guides, part of Settings Saver docs.
- Register files and directories: Tell Settings Saver which of your mod's settings files and folders to sync, with the path rules and what happens to files that appear later.
- Choose a file format: Pick between whole-file syncing and key-by-key syncing for each settings file, with the built-in WHOLE_FILE, PROPERTIES and KEY_VALUE formats compared.
- Write your own file format: Implement SettingsFileFormat so a structured settings file such as TOML, JSON or INI is synced key by key, and follow its round-trip contract.
- Set what is saved by default: Decide whether profiles save your mod's settings without being asked, and which keys stay per instance, with savedByDefault and excludedByDefault.
- Convert settings between mod versions: Keep profiles saved by older versions of your mod usable after you rename a key or change a value, with modVersionFix and SettingsFix.
- Convert settings between Minecraft versions: Store a setting differently on older and newer Minecraft versions and keep one profile working on all of them, with minecraftFix, upgrade and downgrade.
- Merge dependent settings: Replace the default changed-keys-win merge with a SettingsMerger when your mod's settings depend on each other, such as presets or numbered lists.
- Read your config after the restore: Load your mod's config at a point where Settings Saver has already written the profile's copy, on Fabric, Quilt, Forge and NeoForge of every era.
- Build one integration for every loader: Ship one Settings Saver plugin class and one service file in every jar of a mod that supports Fabric, Quilt, Forge and NeoForge from 1.7.10 to 26.3.
- Register from your own code: Register your mod's settings with SettingsSaverMods.register instead of a service file, guarded by a check that Settings Saver is installed.
- Test your integration without Minecraft: Test formats, fixes, mergers and your ModSettings in plain JUnit, because the Settings Saver API is pure Java with no Minecraft classes.
- Fix an integration that doesn't sync: Read Settings Saver's log lines to find out why your mod's settings were not registered, saved or restored, with the cause and fix for each message.