launcher: install mods and packs into the selected instance

The Mods page and `mods` commands installed everything into the default
game folder whichever instance was picked. Mods, resource packs and
shader packs now go into the selected instance's folder, and the
Installed list, updates, Remove and the mod switches are that
instance's; picking another instance reads its list. The page says which
instance it installs into when there are several. `mods list|install|
update|remove|enable|disable` take `--instance` (default: the selected
one). Java mods' checks stay shared in the default folder for the
search results.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-27 03:02:09 +01:00
parent aa6fdac501
commit 9cb2779608
4 changed files with 153 additions and 29 deletions
+9 -2
View File
@@ -572,10 +572,12 @@ MCP: `modpack_remove`, needs `confirm: true`.
## `horizon-launcher mods list`
What the browser installed (the default).
What the browser installed in an instance (the default).
horizon-launcher mods list
- `--instance`: The instance (default: the selected one)
MCP: `mods_list`.
## `horizon-launcher mods search`
@@ -605,11 +607,12 @@ MCP: `mods_check`.
## `horizon-launcher mods install`
Install a pack and what it needs, by its id or slug (checksums checked); a Java mod is ported into horizon-mods and turned on; a modpack is imported.
Install a pack and what it needs into an instance, by its id or slug (checksums checked); a Java mod is ported into horizon-mods and turned on; a modpack is imported as an instance of its own.
horizon-launcher mods install <PROJECT>
- `PROJECT`
- `--instance`: The instance (default: the selected one)
- `--everything`: Allow a version made for another Minecraft version
- `--source` (modrinth, curseforge, horizon)
@@ -623,6 +626,7 @@ Update what the browser installed (or one pack).
- `PROJECT`
- `--check`: Only say what is newer
- `--instance`: The instance (default: the selected one)
MCP: `mods_update`.
@@ -633,6 +637,7 @@ Remove a pack the browser installed.
horizon-launcher mods remove <PROJECT>
- `PROJECT`
- `--instance`: The instance (default: the selected one)
MCP: `mods_remove`, needs `confirm: true`.
@@ -643,6 +648,7 @@ Turn on a mod the browser installed (horizon-mods.txt, as the game's Options > M
horizon-launcher mods enable <PROJECT>
- `PROJECT`
- `--instance`: The instance (default: the selected one)
MCP: `mods_enable`.
@@ -653,6 +659,7 @@ Turn off a mod the browser installed; it stays installed.
horizon-launcher mods disable <PROJECT>
- `PROJECT`
- `--instance`: The instance (default: the selected one)
MCP: `mods_disable`.
+5
View File
@@ -18,6 +18,11 @@ yet (Modrinth has no `horizon` loader).
| Modpacks (`.mrpack`, CurseForge zip) | the Modpacks page's import | **Partly**: Horizon runs the mods it can port, from the player's own downloads ([modpacks.md](modpacks.md)) |
| Shader packs (`.hshader`, Horizon's registry only) | `shaderpacks/` beside `options.txt` | **Works** when made for 26.3: checked by the game's own check before install ([shaders.md](shaders.md)). The `shaders/`-format packs on Modrinth and CurseForge are not offered |
Mods, resource packs and shader packs go into the game folder of the instance selected in the sidebar, and the
Installed list, updates and Remove are that instance's: picking another instance reads its list. The page says which
instance it installs into when there is more than one. The CLI's `mods list|install|update|remove|enable|disable` take
`--instance <name>` (default: the selected one). A modpack becomes an instance of its own.
By default a search shows only what runs: Java mods made for 26.3, resource packs made for 26.3, and every modpack. **Show everything** lists the rest of the kind too, each marked with how well it runs; what doesn't run is
never offered for install.