main
Packwiz Modpack with Gitea Actions / Cloudflare Pages
This repo is a template for creating a packwiz modpack with an auto-updating prism launcher modpack using Gitea Actions to push updates to Cloudflare Pages and Gitea Releases. It can also publish updates to Curseforge and/or Modrinth, provided a token and project ID.
Usage
- Clone/Fork/Download this template onto your pc
- Enter the assets folder and edit the
pack.tomlor runpackwiz init -r - Edit the
instance.cfg, specifically thenameandPreLaunchCommandvariables - Create a new instance in Prism Launcher with your desired Minecraft and modloader versions, and copy the
mmc-pack.jsonfile from that instance into theassetsfolder - Replace or remove
modpack.pngand update or remove theiconKeyininstance.cfgaccordingly - Replace this
README.mdand theLICENSE.mdfiles as appropriate for your modpack - Use
packwizto add mods to your pack in thepackwizfolder - Test modrith export:
packwiz modrinth export. If it fails with notification about manual downloads, you'll need to add those mods from Modrinth instead of Curseforge. If they are not availible on Modrith, do not add the jar files to the mods folder or add them via direct download url instead, as this would violate the licence terms of those mods. - Commit and push to Gitea.
- (optional) In your repo settings on Gitea, add the
MODRINTH_TOKENandMODRINTH_IDand/orCURSEFORGE_TOKENandCURSEFORGE_IDaction runner secrets to enable automated releases on the respective site.
Release notes are automatically generated from your commit messages. To kick off a new release, push a new git tag. Leave the pack version at "0.0.0" to have it auto-updated from the git tag.
Note that the prism pack requires a system installation of java version 21 or higher for the packwiz updater.