MODPACK_PLATFORM, MOD_PLATFORM or TYPE to MODRINTH.
Upgrading and downgrading automatically cleans up old files and manages the mod loader version.
Environment Variables
| Variable | Required | Description |
|---|---|---|
TYPE | Yes | Set to MODRINTH |
MODRINTH_MODPACK | Yes | Project slug, ID, URL, or path to mrpack file |
MODRINTH_VERSION | No | Specific version ID or number |
MODRINTH_MODPACK_VERSION_TYPE | No | Filter by release, beta, or alpha |
MODRINTH_LOADER | No | Filter by forge, fabric, or quilt |
MODRINTH_EXCLUDE_FILES | No | Comma/newline list of files to exclude |
MODRINTH_FORCE_INCLUDE_FILES | No | Comma/newline list of files to force include |
MODRINTH_IGNORE_MISSING_FILES | No | Glob pattern of files to ignore if missing |
MODRINTH_OVERRIDES_EXCLUSIONS | No | Ant-style paths to exclude from overrides |
MODRINTH_FORCE_SYNCHRONIZE | No | Force re-evaluation of excludes/includes |
MODRINTH_DEFAULT_EXCLUDE_INCLUDES | No | Set to empty to disable default excludes |
Specifying the Modpack
TheMODRINTH_MODPACK variable accepts multiple formats:
Project Slug
The slug is located in the URL:Project ID
Found in the bottom of the left panel on the project page:Project Page URL
Version Page URL
For a specific version:Custom mrpack URL
Local mrpack File
Version Selection
Default behavior
Latest release version is selected when
VERSION is LATESTLatest beta version is selected when VERSION is SNAPSHOTExamples
Excluding Files
To exclude client mods incorrectly declared as server-compatible:You may need to set
MODRINTH_FORCE_SYNCHRONIZE to true while iterating on a compatible set of mods.Force-Including Files
To force include specific mods:Ignoring Missing Files
Some mods like MCInstance Loader use temporary files that get deleted. Prevent re-installation by ignoring them:Excluding Overrides Files
Modrinth mrpack files may include anoverrides subdirectory with config files, world data, and extra mods. Exclude specific files using ant-style paths:
Ant-style Path Patterns
| Symbol | Behavior |
|---|---|
* | Matches zero, one, or many characters except a slash |
** | Matches zero, one, or many characters including slashes |
? | Matches one character |
Default Exclude/Includes
The image includes default exclude/include rules maintained in the repository. Disable defaults by setting:Troubleshooting
Modrinth modpacks often require significant memory. Set
MEMORY to at least 4G for most modpacks.