Skip to main content

Module modpack

Module modpack 

Source
Expand description

Modpack installation: Modrinth (.mrpack), CurseForge (manifest.json zip) and ATLauncher and FTB (online packs).

Every format follows the same flow: parse the pack, install vanilla + the loader via install_with_loader, extract overrides/configs into instance/{name}/.minecraft, then download the files listed by the pack. The *_files entry points only install pack contents, leaving Minecraft and its loader for a later launch. They do not create instance_config.json.

Modules§

atpack
ATLauncher packs, installed from ATLauncher’s online API.
cfpack
CurseForge modpacks (a zip holding manifest.json and overrides/).
ftbpack
FTB packs installed from remote version manifests, without a local pack format.
mrpack
Modrinth modpacks (.mrpack).

Structs§

ManualDownload
A file that could not be downloaded automatically (CurseForge files whose authors disallow third-party distribution, ATLauncher browser downloads).
ModpackInfo
Format-independent description of a modpack.
ModpackInstallResult

Enums§

ModpackFormat
Format of a local modpack file. ATLauncher and FTB packs have no file format; use atpack::install_atlauncher_pack or ftbpack::install_ftb_pack for those.

Functions§

detect_modpack_format
Detect a modpack’s format from the zip contents.
install_modpack
Install a local modpack file, detecting its format.
install_modpack_files
Extract overrides and download pack files, detecting the local pack format. Minecraft and the mod loader are not installed; install them later with install_with_loader using the returned ModpackInfo. No Java is required. A CurseForge client is required for CurseForge archives.
resolve_forge_version
Map a bare Forge version (47.2.0) to the full string used by the Forge version list (1.20.1-47.2.0, or legacy forms like 1.7.10-10.13.4.1614-1.7.10).