MRPackDownloader

command module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2025 License: MIT Imports: 11 Imported by: 0

README

MRPackDownloader

A tool/script to download content from a modrinth modpack (.mrpack files). It extracts and saves all mods, resource packs, and other assets listed in the modpack.

Image

The tool downloading jars for the Performium modpack with a deliberate 404 on one of the mods.

Image of the tool

Requirements

  • Go 1.18+

Usage

  1. Run the following:

    go install github.com/nxrmqlly/MRPackDownloader@latest
    
    • or, Get the latest binary from the Releases Tab
  2. Open your <modpack>.mrpack file using 7Zip, WinRAR or similar and extract it.

  3. Run the script:

    mrpackdownloader 
    
  4. Enter the path to the modrinth.index.json file (from the modpack) OR paste the contents of it into ./modrinth.index.json (created automatically)

  • Alternatively, you can run it with command line arg:

    ./mrpackdownloader path/to/modrinth.index.json
    

Building

Build a binary with the following.

git clone https://github.com/nxrmqlly/MRPackDownloader
cd MRPackDownloader
go mod tidy
go build -o mrpackdownloader .

How?

  • Modrinth modpacks are just compressed archives, and you can open them using software like 7Zip or WinRAR.
  • All this script does is read the modrinth.index.json file and save all the mods, resourcepacks etc.
  • Files are saved in the output/ directory, preserving the folder structure.

Contributing

Contributions are welcome! Please ensure your code follows best practices and includes necessary documentation.

License

MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL