Skip to main content

mc-mod-getter License: MIT Package Pypi

I made this tool to download & update mods using MultiMC but you can use this as a standalone python module as well

Usage

MultiMC

  1. Create or Edit a minecraft instance

    NOTE: Ensure there are no spaces in the instance name or the directory paths

  2. Install your loader of choice

  3. Download the binary from releases or build your own binary from scratch

  4. Copy the binary to your MultiMC's instance .minecraft folder

  5. Create a yaml file in the same .minecraft directory

  6. Enable Custom Commands under in your instance's Settings & paste the following in the Pre-launch command box

    MacOS

    $INST_MC_DIR/mc-mod-getter --file $INST_MC_DIR/<FILENAME>.yaml
    

    Windows:

    $INST_MC_DIR/mc-mod-getter.exe --file $INST_MC_DIR/<FILENAME>.yaml
    
  7. Launch your instance

Python

Install it from PyPi to an env:

python3 -m pip install mc-mod-getter

Run the tool:

python3 -m mc-mod-getter --file /path/to/file.yaml

YAML File Structure

The tool takes a yaml file as input (Tabs for indentations, space after hyphens) Here's an example yaml file:

loader: fabric
version: 1.17.1
mod_dir: C:\Games\mmc-stable-win32\MultiMC\instances\fabric-1.17.1\.minecraft\mods
mods:
    curseforge:
        - Cloth Config API (Fabric)
    modrinth:
        - Fabric API
        - FallingTree
        - EasierVillagerTrading
        - Mod Menu
        - Starlight
        - Hydrogen
        - Sodium
        - Lithium
        - Indium
        - DashLoader
        - Enhanced Block Entities
        - Seamless Loading Screen
        - Falling Leaves

Supported Mod Hosts:

Modrinth

Curseforge

Building Your Own Binary

Activate an env and navigate to the root project directory

make build

or if you don't have make

python3 -m pip install pyinstaller 
python3 -m PyInstaller --onefile mc_mod_getter/__main__.py

Metadata

Release files for mc-mod-getter 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mc-mod-getter 1.1.2
File Size Uploaded
mc-mod-getter-1.1.2.tar.gz 7.4 kB Details

Release files / mc-mod-getter-1.1.2.tar.gz

Download URL mc-mod-getter-1.1.2.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f2ae48f8c856475e23ada78c5a921d1ddd864ce3c09b8ff0e36c6b85d03964a4
BLAKE2b-256 checksum
How to use checksums
6c7923b0c24cc0618911c6381b3b7bdf3efabdf9e7b7d47c4c216e8354973c70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

Release history Release notifications | RSS feed

This release

1.1.2 This release

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page