Modrinth Server Packer

一个用于将 Modrinth 整合包(.mrpack)打包成 Minecraft 服务端的 Python 脚本。

功能

优化特点

使用方法

使用 Python 脚本

python modrinth_server_packer.py <modpack_file> [--output OUTPUT_DIR]

使用可执行文件(推荐)

脚本已打包为单个可执行文件,无需安装 Python 或依赖库。下载 modrinth_server_packer.exe 并直接运行。

modrinth_server_packer.exe <modpack_file> [--output OUTPUT_DIR]

示例

# 使用自动输出目录
python modrinth_server_packer.py "modpack"
# 或使用可执行文件
modrinth_server_packer.exe "modpack"

# 指定输出目录
python modrinth_server_packer.py "modpack" --output my_server
modrinth_server_packer.exe "modpack" --output my_server

输出结构

输出目录将包含:

依赖

安装依赖:

pip install -r requirements.txt

注意事项