Download Config Swapper — Minecraft Mods — MetaMods

Config Swapper

Active

Downloads

0

Last update

1 year ago
Client
Fabric
Quilt
Forge
Neoforge
Libraries
Control
Utils

Config Swapper

Config Swapper is a convenient tool for quickly switching between different configuration settings. This modification is especially useful when changing game modes or when needing to use different sets of parameters.

How it works

The mod works by finding and changing string values directly in configuration files. This approach ensures compatibility with most other modifications, even if they use their own configuration file formats (currently only TOML format files are supported).

Main features

  • Command /mode <mode_name> for instant switching between configurations
  • Automatic creation of mode.json file in the game instance's root directory
  • Application of the saved mode on each game launch, which is especially convenient for pack updates
  • Automatic execution of /reload command after mode change

Creating custom modes

On first launch, the mod creates a configswapper folder inside the config directory. To create a new mode:

  1. Create a folder with your mode name (for example, "expert")
  2. Replicate the folder structure starting from the game instance root
  3. To change values in config/forge-client.toml, create a config folder and forge-client.toml file
  4. Add categories, keys and values in the same format as in the original file

The simplest way is to copy the original configuration file and remove all values that don't need to be changed.

For server configurations, place files in the serverconfig folder.

Important features

  • The need for reloading to apply specific settings depends on individual modifications
  • Config Swapper cannot roll back changes, so all necessary settings must be specified in each mode
  • The mod supports working with any files in TOML format, not just those registered in Forge

Video demonstrating the mod's operation: https://www.youtube.com/watch?v=example

Project members
Darkere

Darkere

Created: 20 Apr 2024

ID: 15585