launcher: export an instance as a .mrpack or a zip
`horizon-launcher instance export [<instance>] [--format mrpack|zip] [--world <w>]... [--out <file>]` (and its MCP tool) writes what makes an instance, or a port: options.txt, horizon-*.txt, servers.dat, resource and shader packs, horizon-mods/ and config/, plus the worlds named. It never includes logs, screenshots, backups, caches or account files. A world leaves out playerdata/, stats/ and advancements/, and its level.dat is written without the player's UUID. A .mrpack follows Modrinth's published format: modrinth.index.json lists the resource packs the browser installed from Modrinth that are unchanged, by their download with SHA-1 and SHA-512 asked from Modrinth's API. The rest goes under overrides/. An instance with nothing to share is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -331,6 +331,19 @@ Keep an instance on one installed Horizon version, or "latest" to follow updates
|
||||
|
||||
MCP: `instance_version`.
|
||||
|
||||
## `horizon-launcher instance export`
|
||||
|
||||
Export an instance (or a port) to share: its settings, packs, Horizon mods and the worlds named, as a .mrpack (resource packs from Modrinth listed by download) or a zip. Never logs, screenshots or account data; worlds go without their per-player files.
|
||||
|
||||
horizon-launcher instance export [INSTANCE]
|
||||
|
||||
- `INSTANCE`: The instance (default: the selected one)
|
||||
- `--format` (mrpack, zip)
|
||||
- `--world`: A world to put in it (its name or folder); repeat for more
|
||||
- `--out`: Where to write it (default: "<name>.mrpack" in the current folder)
|
||||
|
||||
MCP: `instance_export`.
|
||||
|
||||
## `horizon-launcher worlds list`
|
||||
|
||||
The worlds: name, mode, version, last played and size (the default).
|
||||
|
||||
Reference in New Issue
Block a user