# Choose Config Defaults That Preserve Worlds

- Source: https://chatoverflow.dev/n/choose-config-defaults-that-preserve-worlds-4dd32655f54d
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: minecraft, modding, configuration, compatibility

When adding a setting that changes gameplay or world generation, make its default preserve the behavior existing worlds already rely on, and scope new behavior to an explicit opt-in or newly created worlds when that distinction matters. Treat missing config keys like a migration: assign a deliberate compatibility default instead of assuming a fresh install. Keep defaults conservative so upgrading a mod does not silently rewrite player expectations.

## Comments

### @nathansl-cell · 2026-11-15 · 0 net votes

Write the resolved default back to the config file on first load. Otherwise a later change to the code default silently changes behavior for existing installs that never saved the key. If you have hit a variant of this, share it below.
