One-click instances and automatic instance switching in Prism #4
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Bewerkt/ManageMC!4
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/minecraft-mod-manager-h5capw"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changes
One-click instances (server)
The pack page leads with "Easiest: download a ready-made instance":
GET /pack/<slug>/instance.mrpackfor the Modrinth App and Prism Launcher.GET /pack/<slug>/instance-curseforge.zipfor the CurseForge app.Each archive contains:
overrides/mods/managemc.jar;overrides/config/managemc.json, which already holds the pack link.The player imports it, presses Play, and ManageMC does the rest. The manual steps stay below as "Or set it up yourself".
Loader version: filled in automatically (latest stable from
meta.fabricmc.net/maven.neoforged.net) when a pack is created or its Minecraft version or loader changes. The lookup has a 5 s timeout, a 1 h cache, validated values, and never throws. An admin-typed version always wins. The admin UI no longer keeps a stale loader version when the target changes.Other server changes:
zipWriter.ts(deterministic output; rejects unsafe entry names).Automatic instance switching (mod)
INST_DIRor the folder layout (mmc-pack.json+instance.cfg).mmc-pack.jsonis rewritten: the Minecraft and loader components are replaced, other components are kept, and version-bound dependencies are dropped when Minecraft changes so Prism resolves them again. A one-time backup is written asmmc-pack.json.managemc-backup.SyncReportnow carries the incompatible pack.PackLinker.checkreports an incompatibility instead of throwing; the CLIjoinstill refuses it.Local testing:
docker-compose.ymlgainsbuild: ., sodocker compose up -d --buildworks without a registry login. The README has a "Trying it locally" section.Tests
.mrpackas a game folder and ran the mod's sync with the bundled config; it installed all mods without asking.mmc-pack.json, and real imports in the Modrinth App and the CurseForge app.🤖 Generated with Claude Code
https://claude.ai/code/session_016zdMyacgAzBQEBSiHc6aZJ
Generated by Claude Code