MultiMC advanced exporter
Since MultiMC export features are very limited, I created a script that solves this problem, with this script you can export MultiMC pack to any popular format (e.g. curseforge, modrinth, packwiz). MultiMC forks which didn't changed export format much also supported. PrismLauncher apparently already have builtin Modrinth and CurseForge export feature starting with versions 7.0 and 8.0 accordingly
| ⚠️ | mmc-export development is currently in the maintenance-only mode. This is to show that any abnormal lack of activity isn't going to mean it is no longer maintained. mmc-export considered feature-complete, and only will be updated when bugs arrive. |
Features
- Support conversion to:
- CurseForge
- Modrinth
- packwiz
- Detects downloadable resourcepacks and shaders
- Supports github parsing¹
- Loose modrinth search
- User friendly toml config
- Multiple output formats at once
GitHub rate limits
GitHub has limited requests per hour (up to 60), this means that if you have more than 60 mods, the rest will be excluded from github search.
If you authenticate with GitHub using mmc-export gh-login, the limit will be removed and requests will be faster. You can always log out with mmc-export gh-logout.
If you don't want to use github search by some reason, you can specify --exclude-providers GitHub as argument.
How to Install / Update
Since pypi doesn't allow us to use direct dependencies, we have to install it separately
pip install git+https://github.com/tanaydin/gql-query-builder.git@patch-2
pip install -U mmc-export
How to Use
mmc-export -i modpack.zip -c config.toml -f Modrinth packwiz -o converted_modpacks
It's recommended to fill config at least with basic info like name and version, some launchers can fail import if these values are empty.
Sub-commands
gh-login - to authrize GitHub
gh-logout - to get info how to deauthorize GitHub
purge-cache - to purge cache. Available arguments:
--web: to delete requests cache and downloaded mods
--files: to delete hashes cache
--all: equivalent to --web --files, deletes all cache (default)
Syntax
mmc-export [sub-command] [-h] [-c CONFIG] -i INPUT -f FORMAT [-o OUTPUT] [-v VERSION] [--modrinth-search SEARCH_TYPE] [--exclude-providers PROVIDERS]
Explanation
-h --help: prints help
-i --input: path to modpack, must be zip file exported from MultiMC.
-c --config: path to config, used to fill the gaps like description or lost mods.
-f --format: output formats, must be separated by spaces.
-o --output: directory where converted zip files will be stored.
-v --version: specify modpack version, will be overriden by config's value if exists
--modrinth-search: modrinth search accuracy
--exclude-providers: providers you wish to exclude from search
--provider-priority: providers priority used for packwiz
--skip-cache: don't use web cache in this run
--scheme: output filename formatting scheme, more info in #scheme-formatting
All paths can be relative to current working directory or absolute.
--format options (case-sensitive):
CurseForgeModrinthpackwizIntermediate(only for debugging, may contain sensitive data like username)
--exclude-providers options (case-sensitive):
CurseForgeModrinthGitHub
--provider-priority options (case-sensitive):
CurseForgeModrinthOtherorGitHub
--modrinth-search options:
exact- by hash (default)accurate- by hash or slugloose- by hash, slug or long name
The example for the optional --config file can be found here.
For example, if the script says
No config entry found for resource: ModName
Then you should add one of the following entries to the end of the config:
Specify source URL
[[Resource]]
name = "ModName"
filename = "the_name_of_the.jar"
url = "https://cdn.modrinth.com/data/abcdefg/versions/1.0.0/the_name_of_the.jar"
Hide the warning
[[Resource]]
name = "ModName"
filename = "the_name_of_the.jar"
action = "ignore"
Explicitly move to overrides
[[Resource]]
name = "ModName"
filename = "the_name_of_the.jar"
action = "override"
Delete the file altogether
[[Resource]]
name = "ModName"
filename = "the_name_of_the.jar"
action = "remove"
Make the mod optional
Append optional = true to any of above
Delete any file
This can be defined to delete any file that isn't downloadable from CurseForge/Modrinth, e.g. mod config or metadata file.
[[File]]
name = "Useless file.txt"
action = "remove"
Scheme Formatting
Must be used as --scheme "{keyword}_Literally any text" without file extension, follows python's format string syntax
Available keywords:
abbr- provider abbreviation, usually 2 capitals, e.g.MR,CFformat- full format name, e.g.CurseForge,Packwiznamesame aspack.name- modpack nameversionsame aspack.version- modpack versionpack- pointer to Intermediate structure
Default scheme is as simple as {abbr}_{name}
Caution: if you don't use any format specifc keywords, output files will overwrite the same file several times, can be ignored if you output to only one format. Also, be aware of your filesystem limitations, unsupported characters may lead to an error, or inaccesible file.
Metadata
Release files for mmc-export 2.8.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mmc_export-2.8.10.tar.gz | 18.7 kB | Without provenance | Details for mmc_export-2.8.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mmc_export-2.8.10-py3-none-any.whl | Python 3 | none | any | Details for mmc_export-2.8.10-py3-none-any.whl |
Total release size: 40.3 kB
Release files / mmc_export-2.8.10.tar.gz
| Download URL | mmc_export-2.8.10.tar.gz |
|---|---|
| Size | 18.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5cbbb59faed51d6e9fc5f155745774a93a50a9824ffb5ec1f2ebc9330c9a51a9
|
|
BLAKE2b-256 checksum How to use checksums |
5aee3b12a9bacede72e944d150b38e1efaf1271e039c203bd6df568660b6e6ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.13.7 Linux/6.16.7-arch1-1
|
Release files / mmc_export-2.8.10-py3-none-any.whl
| Download URL | mmc_export-2.8.10-py3-none-any.whl |
|---|---|
| Size | 21.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d98066a8881ed20d752c0a75f79c75de38f8967ecd617b8fbd7f40cad7507b94
|
|
BLAKE2b-256 checksum How to use checksums |
e44d635d1dfa1d9055c7ef152cb609dc13708e608dc2c16afdfbe1853c4b2bd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.13.7 Linux/6.16.7-arch1-1
|
Security for mmc-export 2.8.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.