Launcher: worlds of an instance, with backup, copy and delete

Home lists the selected instance's worlds from their level.dat (name, mode,
version, last played) with their size and picture. Back up zips one into
backups/ as vanilla's Make Backup does; Copy makes "<name> (1)" with that
name in its level.dat; Delete moves it to the system's trash after a
confirmation (the file manager call on macOS, no Finder permission);
Open folder. `horizon-launcher worlds list|backup|copy|delete`, and their
MCP tools (delete needs confirm). level.dat is read with horizon-world's NBT.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-27 01:37:31 +01:00
parent 90f2755245
commit c70e2fae74
11 changed files with 1111 additions and 6 deletions
+1
View File
@@ -26,6 +26,7 @@ pub const DESTRUCTIVE: &[&str] = &[
"servers forget",
"account sign-out",
"data delete",
"worlds delete",
];
/// Commands that send something or reach other people: only when the player asks.