HomeJavaModsVanillaConfig Mod (26.2, 1.20.1) – Library for TreSet's Mods
VanillaConfig Mod (26.2, 1.20.1) – Library for TreSet's Mods
ModsJava

VanillaConfig Mod (26.2, 1.20.1) – Library for TreSet's Mods

VanillaConfig Mod is a lightweight configuration library for Minecraft mods. It provides a simple API to declare, load, save, and migrate configuration…

⬇ DownloadOpen in MCModsHubGet it on Google Play →

VanillaConfig Mod is a lightweight configuration library for Minecraft mods. It provides a simple API to declare, load, save, and migrate configuration values, and to expose them through an in-game configuration screen with accessibility support.

Features:

Setup

  1. Add VanillaConfig as a dependency in your mod build configuration (Gradle or similar).
  2. Create a central configuration class and register it during your mod initialization.
  3. Use the provided API to define configuration values and categories instead of manually reading or writing files.

Defining Configuration

Configuration is defined via a config builder. You describe:

After building, VanillaConfig loads values from disk (if present) or uses defaults and then keeps them synchronized with the config file.

Supported Types

VanillaConfig supports common Java and Minecraft types, for example:

Each type has a matching builder method, so the runtime can validate and render it correctly.

Versioning and Migration

If the file version is lower than the current version, all migrations are run in order until the config matches the latest structure.

Callbacks

VanillaConfig provides hooks you can register to react to configuration changes:

Use these callbacks to update cached values, refresh in-game state, or trigger behavior that depends on configuration.

Config Screen Integration

VanillaConfig can generate an in-game configuration screen that maps directly to your config structure:

You can register this screen with the mod menu or with your own opening logic.

Accessibility

The generated configuration screen follows accessibility-friendly patterns:

Recommended Usage Guidelines

VanillaConfig Mod Download Links

VanillaConfig Mod (26.2, 1.20.1) – Library for TreSet's Mods is a free Minecraft Java mod. Compatible with Minecraft 1.20.1. Download it and open it directly in the game.

Explore more