From aa6fdac5018a11026a6e7947c8e010e1e44f06ed Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Tue, 27 Oct 2026 02:49:42 +0100 Subject: [PATCH] Launcher: data packs into a world MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit datapacks.rs lists a world's datapacks/ (zips and folders with pack.mcmeta, as the game discovers them; off when datapacks.json lists them disabled), adds a data pack zip under a free name (refusing resource packs: no data/ folder) and removes one to the trash, forgetting it in datapacks.json. The game turns a new pack on when the world opens. Home: each world gets "Data packs", which opens its packs under the row with Add data pack… and Remove; a zip dropped on a world goes into it. CLI: `worlds datapack-list|datapack-add|datapack-remove `; datapack-remove needs confirm over MCP. Co-Authored-By: Claude Opus 5.5 --- docs/launcher-commands.md | 35 +++++ launcher/README.md | 6 +- launcher/src/cli.rs | 62 ++++++++ launcher/src/cli_tools.rs | 1 + launcher/src/datapacks.rs | 156 +++++++++++++++++++ launcher/src/datapacks/tests.rs | 103 +++++++++++++ launcher/src/datapacks_page.rs | 255 ++++++++++++++++++++++++++++++++ launcher/src/lib.rs | 1 + launcher/src/main.rs | 3 + launcher/src/packs.rs | 4 +- launcher/src/worlds_page.rs | 18 ++- 11 files changed, 640 insertions(+), 4 deletions(-) create mode 100644 launcher/src/datapacks.rs create mode 100644 launcher/src/datapacks/tests.rs create mode 100644 launcher/src/datapacks_page.rs diff --git a/docs/launcher-commands.md b/docs/launcher-commands.md index db3c6a03a..c88c38c6b 100644 --- a/docs/launcher-commands.md +++ b/docs/launcher-commands.md @@ -374,6 +374,41 @@ Move a world to the system's trash. MCP: `worlds_delete`, needs `confirm: true`. +## `horizon-launcher worlds datapack-list` + +A world's data packs, and which are on. + + horizon-launcher worlds datapack-list + +- `WORLD` +- `--instance` + +MCP: `worlds_datapack_list`. + +## `horizon-launcher worlds datapack-add` + +Copy a data pack zip into a world (the game turns it on when the world opens). + + horizon-launcher worlds datapack-add + +- `WORLD` +- `FILE` +- `--instance` + +MCP: `worlds_datapack_add`. + +## `horizon-launcher worlds datapack-remove` + +Move a world's data pack to the system's trash. + + horizon-launcher worlds datapack-remove + +- `WORLD` +- `PACK`: Its file name, with or without .zip +- `--instance` + +MCP: `worlds_datapack_remove`, needs `confirm: true`. + ## `horizon-launcher packs list` The resource and shader packs, and which are on (the default). diff --git a/launcher/README.md b/launcher/README.md index 8e1a69178..ddf7e3056 100644 --- a/launcher/README.md +++ b/launcher/README.md @@ -88,7 +88,11 @@ The opening, then Play ([clip](docs/opening.webm)): (`_