nix-modpack/README.md

27 lines
1010 B
Markdown
Raw Normal View History

2025-05-18 04:16:08 +00:00
# nix-modpack
2025-05-18 06:28:46 +02:00
Create a modpack server or MultiMC client from a packwiz toml.
## Creating a server
A server derivation can be created as follows:
```nix
nix-modpack.packages.${system}.mkModpackServer {
2025-05-18 06:28:46 +02:00
packUrl = "<url to pack.toml>";
server = nix-minecraft.legacyPackages.${system}.${server}
}
```
When this is added as a package to a flake, it can be started with `nix run`.
## Creating a client
A client derivation can be created as follows:
```nix
nix-modpack.packages.${system}.mkModpackClient {
2025-05-18 06:28:46 +02:00
packUrl = "<url to pack.toml>";
gameVersion = "<minecraft version>";
loaderUid = "<loader identifier>";
loaderVersion = "<loader version>";
}
```
To use it you need to `nix build` it before importing the resulting `modpack.zip` into prism launcher.
The `loaderUid` depends on the modloader, for NeoForge it is `net.neoforged`. It can be found experimentally by exporting an empty instance with the loader installed from prism launcher and inspecting the mmc-pack.json inside of it.