Basic Game Version Configuration
TheGAME_VERSIONS environment variable (or -DgameVersions property) specifies which Minecraft versions your artifact supports.
Single Version
Multiple Versions (Comma-Separated)
Version Ranges
You can specify multiple versions to cover a range:Game Version Type Filtering
Minecraft versions come in different types: release, snapshot, and beta. MCReleaser can filter versions by type.Available Version Types
FromVersionTypeFilter.java:3-7:
Using GAME_VERSION_TYPE
The GAME_VERSION_TYPE environment variable filters which version types to include:
The
GAME_VERSION_TYPE property is defined in CommonPropertyKey.java:8 and defaults to filtering for release versions only.Platform-Specific Game Versions
Some platforms allow you to override the globalGAME_VERSIONS with platform-specific versions:
Modrinth-Specific Versions
From README.md:75, Modrinth will use
GAME_VERSIONS if MODRINTH_GAME_VERSIONS is not set.Modrinth Version Type Override
Modrinth also supports its own version type filter:MODRINTH_GAME_VERSION_TYPE- The type of the game version to filter. Will useGAME_VERSION_TYPEif set.
CurseForge-Specific Versions
CURSEFORGE_GAME_VERSIONS- The game versions that the artifact supports. Will useGAME_VERSIONSif set.
Hangar-Specific Versions
HANGAR_GAME_VERSIONS- The game versions that the artifact supports. Will useGAME_VERSIONSif set.
Practical Examples
Fabric Mod Supporting Latest Versions
Paper Plugin with Wide Compatibility
Multi-Platform with Different Version Requirements
Sometimes different platforms have different version requirements:In this example:
- GitHub release supports 1.20.1 and 1.20.2
- Modrinth lists compatibility up to 1.20.4
- CurseForge only shows 1.20.1 and 1.20.2
Snapshot Support for Development Builds
How MCReleaser Processes Game Versions
Here’s how game versions flow through MCReleaser:Apply Version Type Filter
If
GAME_VERSION_TYPE is set, versions are filtered by type (release/snapshot/all)Check Platform Override
Each platform checks for platform-specific versions (e.g.,
MODRINTH_GAME_VERSIONS)Version Format Guidelines
Minecraft Release Versions
- Use exact version strings:
1.20.1,1.20.2,1.20.4 - Don’t use ranges:
1.20.xor1.20+ - Don’t use wildcards:
1.20.*
Snapshot Versions
- Week snapshots:
23w51a,24w01b - Pre-releases:
1.21-pre1,1.21-pre2 - Release candidates:
1.20-rc1,1.20-rc2
Validation
MCReleaser validates versions against Minecraft’s official version manifest. Invalid versions will cause errors during upload.Common Issues
Issue: Version Not Recognized
Problem: Platform rejects your version string Solution: Verify the version exists in Minecraft’s official manifest and matches the exact formatIssue: Too Many Versions
Problem: Cluttered version list on platform pages Solution: Only list versions you’ve actually tested. UseGAME_VERSION_TYPE to filter appropriately
Issue: Different Platforms Need Different Versions
Problem: Your mod works on more versions for one platform than another Solution: Use platform-specific overrides likeMODRINTH_GAME_VERSIONS
Next Steps
File Handling
Learn how to specify which files to upload
Configuration Reference
Complete list of all configuration options