[PR #2614] [MERGED] launcher: install mods and packs into the selected instance #4474

Closed
opened 2026-11-03 04:17:24 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2614
Author: @ludovic111
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: feat/launcher-mods-per-instance


📝 Commits (1)

  • 9cb2779 launcher: install mods and packs into the selected instance

📊 Changes

4 files changed (+153 additions, -29 deletions)

View changed files

📝 docs/launcher-commands.md (+9 -2)
📝 docs/mod-browser.md (+5 -0)
📝 launcher/src/cli.rs (+88 -13)
📝 launcher/src/mods_page.rs (+51 -14)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Clean room: designed from the feature list in briefs/launcher-features-1.md; no other launcher's code, docs or assets were read.

Part of the launcher features (items 8 and 9): the Mods page installed everything into the default game folder, whichever instance was picked, so "Update all" and the coming data pack install could not reach an instance's own packs. Stacked on #2612.

What changes

  • Mods page: mods, resource packs and shader packs install into the selected instance's game folder. The Installed list, updates, Update all, Remove and the Horizon mod switches are that instance's; picking another instance reads its list again. When there is more than one instance, the page says which one it installs into ("Installs into Hardcore: pick another instance on the left"). A modpack still becomes an instance of its own.
  • CLI / MCP: mods list|install|update|remove|enable|disable take --instance <name> (default: the selected one, as packs and worlds do). The MCP tools gain the instance argument (generated from the CLI). mods search and mods check take none.
  • Java mods' checks for the search results stay in the default game folder, shared by every instance; an install into another instance checks the jar in that instance's folder (once).
  • docs/mod-browser.md says where things go; docs/launcher-commands.md regenerated.

Proof

  • cargo fmt --check, cargo clippy --all-targets --locked --features gpui/runtime_shaders -- -D warnings: clean. cargo test --locked --features gpui/runtime_shaders --lib --bins: 156 + 36 passed (new: mods_commands_name_their_instance).
  • CLI, scratch homes: mods install low-fire-pack --instance Skyblock put resourcepacks/Low Fire.zip in Skyblock's folder (SHA-512 checked); mods list --instance skyblock lists it, mods list (Hardcore selected) says nothing is installed; packs list --instance Skyblock shows it, off.
  • Window, scratch homes: Skyblock selected lists Low Fire; Hardcore selected lists nothing; Install of Fresh Animations from the window landed in instances/hardcore/resourcepacks/, nothing in the default folder.
Skyblock selected Hardcore selected Installed into Hardcore

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2614 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/launcher-mods-per-instance` --- ### 📝 Commits (1) - [`9cb2779`](https://github.com/horizon-rust/horizon/commit/9cb27796089e8ee1be9d03da58e82dd2487b6ff7) launcher: install mods and packs into the selected instance ### 📊 Changes **4 files changed** (+153 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `docs/launcher-commands.md` (+9 -2) 📝 `docs/mod-browser.md` (+5 -0) 📝 `launcher/src/cli.rs` (+88 -13) 📝 `launcher/src/mods_page.rs` (+51 -14) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Clean room: designed from the feature list in briefs/launcher-features-1.md; no other launcher's code, docs or assets were read. Part of the launcher features (items 8 and 9): the Mods page installed everything into the default game folder, whichever instance was picked, so "Update all" and the coming data pack install could not reach an instance's own packs. Stacked on #2612. ## What changes - **Mods page:** mods, resource packs and shader packs install into the **selected instance's** game folder. The Installed list, updates, Update all, Remove and the Horizon mod switches are that instance's; picking another instance reads its list again. When there is more than one instance, the page says which one it installs into ("Installs into Hardcore: pick another instance on the left"). A modpack still becomes an instance of its own. - **CLI / MCP:** `mods list|install|update|remove|enable|disable` take `--instance <name>` (default: the selected one, as `packs` and `worlds` do). The MCP tools gain the `instance` argument (generated from the CLI). `mods search` and `mods check` take none. - Java mods' checks for the search results stay in the default game folder, shared by every instance; an install into another instance checks the jar in that instance's folder (once). - docs/mod-browser.md says where things go; docs/launcher-commands.md regenerated. ## Proof - `cargo fmt --check`, `cargo clippy --all-targets --locked --features gpui/runtime_shaders -- -D warnings`: clean. `cargo test --locked --features gpui/runtime_shaders --lib --bins`: 156 + 36 passed (new: `mods_commands_name_their_instance`). - CLI, scratch homes: `mods install low-fire-pack --instance Skyblock` put `resourcepacks/Low Fire.zip` in Skyblock's folder (SHA-512 checked); `mods list --instance skyblock` lists it, `mods list` (Hardcore selected) says nothing is installed; `packs list --instance Skyblock` shows it, off. - Window, scratch homes: Skyblock selected lists Low Fire; Hardcore selected lists nothing; Install of Fresh Animations from the window landed in `instances/hardcore/resourcepacks/`, nothing in the default folder. | Skyblock selected | Hardcore selected | Installed into Hardcore | |---|---|---| | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-features/mods-per-instance/skyblock.png) | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-features/mods-per-instance/hardcore-before.png) | ![](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/launcher-features/mods-per-instance/hardcore-installed.png) | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:17:24 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4474
No description provided.