This Python script allows you to quickly switch between different versions of Minecraft mods based on the game version you are using.
- Automatically removes existing mods in the
mods
folder - Loads specific mods for a given version
- Simplifies Minecraft mod management without manual file movement
- Python 3 installed on your system
- A structured folder with subfolders for each mod version in the directory
C:/Users/YOUR_NAME/AppData/Roaming/.minecraft/mods/ (replace YOUR_NAME with your Windows username)
- Clone this repository to your local machine:
git clone https://github.com/your-username/repository-name.git
- Navigate to the project folder:
cd repository-name
- Ensure Python is installed and accessible from your terminal.
- Open
main.py
and modify theMINECRAFT_MODS_PATH
variable to match your Windows username:MINECRAFT_MODS_PATH = "C:/Users/YOUR_NAME/AppData/Roaming/.minecraft/mods"
- Run the script using the following command:
python main.py
- Enter the Minecraft version for which you want to activate mods.
- The script will delete old mods and copy the ones corresponding to the specified version.
The mods
folder should be structured as follows:
.minecraft/
├── mods/
│ ├── 1.16.5/
│ │ ├── mod1.jar
│ │ ├── mod2.jar
│ ├── 1.18.2/
│ │ ├── mod3.jar
│ │ ├── mod4.jar
The script ensures that only the mods for the selected version are present in the main mods
folder.
- Make sure to back up your mods before using the script.
- Verify that
.jar
files are correctly placed in their respective folders.
This project is licensed under the MIT license. You are free to modify and redistribute it.