launcher: find data packs on Modrinth and install one into a world
The Mods page gains a Data packs tab: Modrinth's data packs for 26.3, each marked Partly with what Horizon runs of a data pack today (functions, function tags, predicates, item modifiers). Install puts the project's data pack file (not its mod build), checksum checked, into the datapacks/ of a world picked on the tab, and says what of that zip runs and what isn't read yet. A pack with nothing Horizon runs (worldgen only) is refused. The world's list on Home shows it. CLI and MCP: `mods search --kind datapack`, `mods install <pack> --world <world>`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -66,7 +66,7 @@ impl Page {
|
||||
/// `settings`) opens on that page, for screenshots; Home otherwise.
|
||||
fn from_env() -> Page {
|
||||
match std::env::var("HORIZON_LAUNCHER_PAGE").as_deref() {
|
||||
Ok("mods" | "modpacks" | "shaders") => Page::Mods,
|
||||
Ok("mods" | "modpacks" | "shaders" | "datapacks") => Page::Mods,
|
||||
Ok("servers") => Page::Servers,
|
||||
Ok("versions") => Page::Versions,
|
||||
Ok("notes") => Page::Notes,
|
||||
|
||||
Reference in New Issue
Block a user