Modrinth is an open source modding platform with a clean, easy to use website for finding mods, plugins, and datapacks. At startup, the container automatically locates and downloads the newest versions of files that correspond to your server’sDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/itzg/docker-minecraft-server/llms.txt
Use this file to discover all available pages before exploring further.
TYPE and VERSION. Older file versions are automatically cleaned up.
Basic Usage
SetMODRINTH_PROJECTS to a comma or newline separated list of projects.
Project Entry Formats
Each project entry can use one of these formats (where: separates parts):
Components
Project - The project slug or ID- Slug: The part of the URL after
/mod/,/plugin/, or/datapack/ - ID: Copy from the project page menu
- When omitted, the latest release version is selected
- Using version ID overrides Minecraft and loader compatibility checks
- Find on version-specific pages like
https://modrinth.com/plugin/essentialsx/version/2.21.2
release, beta, or alpha
- Selects the latest version of that type
datapack, fabric, forge, or paper
datapackis optional when running a vanilla serverfabric,forge, andpaperallow installing mods/plugins that differ from server’sTYPE- Example: Use
fabric:prefix to load Fabric mods into a NeoForge server via Sinytra Connector
- Must start with
@
Examples
| Description | Example |
|---|---|
| Select latest version | fabric-api |
| Select specific version by ID | fabric-api:bQZpGIz0 |
| Select specific version by number | fabric-api:0.119.2+1.21.4 |
| Select latest beta version | fabric-api:beta |
| Latest version using project ID | P7dR8mSH |
| Latest version of datapack | datapack:terralith |
| Specific version of datapack | datapack:terralith:2.5.5 |
| Mod loader override | fabric:fabric-api |
| Fabric mod with specific version | fabric:fabric-api:bQZpGIz0 |
| Projects listing file | @/path/to/modrinth-mods.txt |
Using Listing Files
Create a text file with one project per line. Blank lines and comments (starting with#) are ignored.
Auto-Removal
Entries removed fromMODRINTH_PROJECTS will be automatically removed from the mods or plugins directory.
An empty
MODRINTH_PROJECTS list will remove all previously installed mods/plugins.To temporarily disable processing without removing files, comment out the MODRINTH_PROJECTS environment variable entirely.Version from Projects
Automatically determine the MinecraftVERSION based on your projects by setting VERSION_FROM_MODRINTH_PROJECTS=true.
The container will select the most recent Minecraft version supported by all listed projects.
Example:
griefprevention (only supports up to 1.21.7), then VERSION will automatically be set to 1.21.7.
Dependencies
Control whether project dependencies are automatically downloaded:| Value | Description |
|---|---|
none | Don’t download dependencies (default) |
required | Download required dependencies only |
optional | Download both required and optional dependencies |
Advanced Options
Default Version Type
Set the default version type for all projects:| Value | Includes |
|---|---|
release | Release versions only (default) |
beta | Release and beta versions |
alpha | Release, beta, and alpha versions |
Custom Loader
When using a custom server type, specify which loader type for lookups:Complete Example
Start the server
- Download
fabric-api(latest release) - Download
lithium(latest beta) - Download
ferritecore(latest release) - Download
cloth-configversion 17.0.127 - Download
terralithdatapack - Download required dependencies
- Start the server
Environment Variables Reference
| Variable | Description | Default |
|---|---|---|
MODRINTH_PROJECTS | Comma/newline separated list of projects | None |
MODRINTH_DOWNLOAD_DEPENDENCIES | Dependency download mode: none, required, optional | none |
MODRINTH_PROJECTS_DEFAULT_VERSION_TYPE | Default version type: release, beta, alpha | release |
MODRINTH_LOADER | Loader type for custom servers | Auto-detected |
VERSION_FROM_MODRINTH_PROJECTS | Auto-detect VERSION from projects | false |