A command-line tool that switches a Fabric mod setup from one Minecraft version to another safely: it backs up your mods, installs the right Fabric Loader, finds compatible versions of every mod through Modrinth, and rolls everything back if anything goes wrong.
I built it to solve a real annoyance: changing Minecraft versions meant manually downloading, replacing, backing up and reorganizing a dozen mods every time.
Status: V1 is feature-complete and tested on a real setup, including a full Minecraft 26.2 → 1.16.4 → 26.2 round trip. Windows only. Modrinth only. See Known limitations and the Roadmap.
I started this project and brought it to a working state myself: the concept, the goals and V1 scope, and the first implementation. That covered the Fabric profile automation, Modrinth hash-based mod identification, the backup and rollback design, and the versioned mod cache. I tested it on real setups (Minecraft 26.2 → 1.16.4 launched successfully, and after the cache work the full 26.2 → 1.16.4 → 26.2 round trip also worked).
Because of school and other commitments I didn't have time to finish it, so I used an AI assistant (Claude, via Claude Code) to complete it. The AI:
- restructured the single script into functions with a CLI
- added network timeouts, retries, error handling and hash verification of downloads
- added detection of a mod set's Minecraft version from each mod's
fabric.mod.json - made the planner cache-aware (restoring and reusing cached mods)
- wrote the rollback stress tests and this README
I set the direction and scope, reviewed the results, and decided what stays out of V1 (see the Roadmap). The code is open to review, and the tests exist so its safety claims can be checked rather than taken on trust.
Choose version → prepare Fabric → scan mods → use cache first → download only
what's missing → back up → install safely → verify → roll back on failure
- Detects the Minecraft version your mods were built for (read from each mod's
fabric.mod.json). - Lets you choose a target version (latest, current, or a specific one).
- Installs the matching Fabric Loader profile if it isn't there yet.
- Identifies every installed mod by SHA-1 hash through Modrinth. There is no hardcoded mod list.
- Finds the newest compatible version (release first, then beta; alpha is ignored).
- Mods with no compatible version are moved to a cache, never deleted.
- Reuses cached files whose SHA-1 matches Modrinth's, and downloads only what's missing.
- Backs up your current mods, installs, verifies, and rolls back automatically if any step fails.
============================================================
Plan for Minecraft 26.2
============================================================
9 to install/update (1 from cache, 8 to download):
fabric-api-0.18.0%2Bbuild.387-1.16.1.jar -> fabric-api-0.161.0+26.2.jar [release] (download)
malilib-fabric-1.16.1-0.10.0-dev.21+arne.2.jar -> malilib-fabric-26.2-0.29.6.jar [release] (download)
...
+ continuity-3.0.1+26.2.jar [release] (restored, cache)
+ sodium-fabric-0.9.2+mc26.2.jar [release] (restored, download)
0 already current
0 unsupported (will be moved to the mod cache):
- Windows with the standard Minecraft Launcher
- Python 3.8+
- Java on your
PATH(only needed to run the Fabric Installer) - Internet access (Modrinth, Fabric Meta, Mojang version manifest)
pip install -r requirements.txt
Launch your target Minecraft version once from the normal Minecraft Launcher first, then:
python mod_updater.py
After it finishes, open the Minecraft Launcher and pick the new fabric-loader-… profile.
| Option | Meaning |
|---|---|
--dry-run |
Show the plan and change nothing |
--target latest|current|<version> |
Skip the version menu (e.g. --target 1.21.10) |
--minecraft-dir PATH |
Use a different .minecraft folder |
--keep-backups N |
Backups to keep when cleaning up (default 5) |
--yes |
Answer yes to the confirmation prompts |
Try --dry-run first to see exactly what would happen.
Nothing in your live mods folder changes until everything that could fail has already succeeded.
- Plan: you see the full plan and approve it.
- Stage: every file is downloaded (or copied from the cache) to a staging folder and checked against Modrinth's SHA-1.
- Backup: all current mods are copied to a timestamped folder (
FROM-<old>_TO-<new>), then file counts and SHA-1 hashes are compared. - Install: unsupported mods are copied to the cache and hash-checked against the backup, new files are copied in and hash-checked, then old versions are removed.
- Rollback: if any step after the backup fails, the live folder is restored from the backup and the restore is verified by hash.
| Folder | Purpose |
|---|---|
backups/ |
Exact snapshots for rollback. |
mod_cache/<version>/ |
Reusable mod files for a Minecraft version. Mods that don't support the new target are parked under the version they came from, and a later switch back reuses them. |
Prebuilt: download MinecraftModUpdater.exe from the Releases page and run it from a terminal (or double-click it). Its backups/, downloads/ and mod_cache/ folders are created next to the exe, so put it in its own folder. The release notes list the file's SHA-256 so you can verify it. Windows SmartScreen may warn about an unsigned exe; you can always run the Python source instead.
Build it yourself:
pip install pyinstaller
pyinstaller --onefile --name MinecraftModUpdater mod_updater.py
The exe is written to dist/.
To identify your mods, the tool sends each jar's SHA-1 hash (not the file) to the Modrinth API. No account, key or personal data is used or stored.
The rollback tests force failures (missing or corrupted staged files, cache hash mismatches, copy failures, a locked old file, a corrupted backup) against fake jars in a temp folder and verify that the original filenames and hashes come back. They need no network and never touch your real .minecraft.
python -m unittest tests.test_rollback -v
- Minecraft 1.16 and newer only. Older versions may work, but they are unsupported: no cross-mod dependency resolution, so mods can end up with conflicting Fabric API requirements.
- Modrinth only. Mods that aren't on Modrinth are left in place with a warning, and may not work on the new version.
- No dependency resolution. If a new mod version needs another mod you don't have, the tool won't add it for you.
- Needs internet to plan a switch, although cached files are reused to avoid downloads.
- Windows only for now. The official launcher's
%APPDATA%\.minecraftfolder is found automatically. For anything else (Prism, MultiMC, CurseForge, a custom game directory) you're asked once for the folder that containsmods, and the choice is remembered insettings.json. In those folders the tool manages the mods only, so install the matching Fabric Loader in your launcher yourself. - Fabric only. No Forge, NeoForge or Quilt.
Planned for a future version, intentionally out of scope for V1:
- CurseForge fallback/provider support
- Deeper cross-mod dependency resolution
- Support for Minecraft versions older than 1.16, with full legacy Fabric compatibility
- Broader offline behavior
- Packaged Windows executable and possible UI
Released under the MIT License.
This is an unofficial hobby project and is not affiliated with or endorsed by Mojang, Microsoft, the Fabric project or Modrinth. It downloads mods directly from Modrinth; respect each mod's license. Back up your world saves separately. The tool only manages the mods folder.