Download & Update Mods for Minecraft
Project description
mc-mod-getter
I made this tool to download & update mods using MultiMC but you can use this as a standalone python module as well
Usage
MultiMC
-
Create or Edit a minecraft instance
NOTE: Ensure there are no spaces in the instance name or the directory paths
-
Install your loader of choice
-
Download the binary from releases or build your own binary from scratch
-
Copy the binary to your MultiMC's instance .minecraft folder
-
Create a yaml file in the same .minecraft directory
-
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
-
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:
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.