CurseForge · Minecraft mod
Config Swapper
Swap out entire config sets via command
Quick answer
Which Config Swapper release should I use?
Config Swapper configswapper-3.2.jar targets 1.19.2 with Forge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
Where it goes
Is Config Swapper required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does Config Swapper configswapper-3.2.jar need?
configswapper-3.2.jar. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add Config Swapper without breaking your instance.
Built for Config Swapper configswapper-3.2.jar. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use configswapper-3.2.jar. It targets 1.19.2 with Forge; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside configswapper-3.2.jar. It opens that exact file at the source.
About this project
What does Config Swapper add?
Config Swapper is a tool designed for switching out a predefined amount of config options. Useful for changing game modes.
It does this by finding and changing the Strings in the actual config file.
This means it should be compatible with most mods, even if they implement some form of custom config (only configs in TOML format are supported at this time).
Config Swapper adds a command to change config "/mode <modename>" and also a file called mode.json with the current mode in the root directory of the instance.
The mode in the mode.json gets applied to the game on launch in order to support pack updates.
Whether a specific config options requires a restart depends on the individual mods. Contact the specific mod developer if you need it.
The /mode command also runs a /reload to make sure the player doesn't forget to.
Please keep in mind that Configswapper cannot revert a mode in any way. As such all config changes need to the specified in every mode.
Creating a Config Mode
On initial load, the mod will create a folder in the config folder called "configswapper".
In here, create a folder with your mode name. e.g. "expert".
In this folder use the same folder structure as from the instances root.
e.g. to change values in config/forge-client.toml add a folder called config and a file called forge-client.toml.
Add the category and key + value combination of the config you want to change to the file in the same format as it is in the original.
The simplest way is to copy the original and remove all values to you do not want to change.
For serverconfigs put them into a folder called serverconfig.
Format before 2.0
to add a config change you need to know:
the mod ID of the mod it is from
the type of the config (client/common/server)
the categories the config option is under
the name of the config option.
With this information add a line into a text file in the folder of your mode with the following format
<modID>.<configtype>.<category1>.<category2>.<configname> = <result>
Example:
forge.client.client.disableStairSlabCulling = false
For convenience, I've added a way to reduce the amount of text needed if the options are in the same config/category
Example:
$forge.client.client {
disableStairSlabCulling = false
zoomInMissingModelTextInGui = false
#this is a comment
}
You can make comments using #. As configs might use # as value, you cannot mix comment and actual value on a line.
Since 1.6 you can apply configswapper to any file (in TOML format) instead of just files registered to forge.
Example:
customfilepath=config/forge-client.toml
client.disableStairSlabCulling = true
The customfilepath needs to be the first line in the file. ModID and configtype are gone, as they are only used to identify the file.
The file path can start at the instance root or at the world's root folder.
Questions? Ask me on Discord
https://discord.gg/fdvYUCvezx
Project description from CurseForge.
Pick your setup
Config Swapper by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.18.2
1 loader build1.16.5
2 loader builds1.16.4
1 loader build1.16.3
1 loader build1.16.2
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Config Swapper versions and loaders
configswapper-2.10.jar
20 Apr 2024
configswapper-3.2.jar
4 Apr 2023
configswapper-3.1.jar
18 Feb 2023
configswapper-3.0.jar
19 Sept 2022
configswapper-2.7.jar
9 Mar 2022
configswapper-2.6.jar
8 Mar 2022
configswapper-2.5.jar
8 Jan 2022
configswapper-2.4.jar
27 Dec 2021
configswapper-2.3.jar
6 Dec 2021
configswapper-2.2.jar
31 Oct 2021
configswapper-2.1.jar
13 Oct 2021
configswapper-2.0.jar
13 Oct 2021
Looking for an older file? The official CurseForge project page is in Resources.