### Added
- **Configuration system** via JSON file (`config/chrissi-night-vision.json`)
- `resetOnDeath`: Choose whether night vision resets on death (default: false)
- `playSound`: Toggle sound feedback on activation/deactivation (default: false)
- `showStatusEffect`: Control visibility of status effect icon and particles (default: true)
- `persistState`: Enable state persistence across world/server switches (default: true)
- `lastEnabledState`: Internal flag tracking last known state (default: false)
- **State persistence system**
- Night vision state now persists when switching worlds or servers
- State is saved when closing Minecraft and restored on next launch
- Automatically reapplies effect when rejoining if previously enabled
- **Sound feedback** (optional, disabled by default)
- High-pitched note block sound on activation
- Low-pitched bass sound on deactivation
- Configurable via `playSound` setting
### Changed
- Night vision no longer resets on death by default (configurable)
- Optimized codebase: Reduced total code by ~20%
- Updated License
### Fixed
- State no longer incorrectly resets to OFF when switching worlds/servers
- Effect is now automatically reapplied after world join if persistence is enabled
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }