classMrpack#

class Mrpack#

The Modrinth .mrpack format.

roots#

The folders that hold overrides, keyed by side.

Type:

ClassVar[dict[str, str]]

parse(
index: dict[str, Any],
path: Path,
) → Modpack#

Build a Modpack from modrinth.index.json.

Parameters:
  • index (dict[str, Any]) – The decoded index file.

  • path (Path) – The archive.

Returns:

The modpack. Its entries are already resolved.

Raises:
  • PackError – The index is invalid or does not name a game version or loader.

  • UnsupportedError – The pack is for another game.

Return type:

Modpack