Setting up a development environment
Prerequisites
Install Packwiz
go install github.com/packwiz/packwiz@latest
Set up development instance of Minecraft
Open PrismLauncher and add a new instance with the Fabric version listed in pack.toml and run the instance once.
Download and add the latest Packwiz Development installer to the minecraft/ directory of the instance, make sure it is called packwiz-installer-bootstrap.jar. See below for the directory structure.
minecraft/
- packwiz-installer-bootstrap.jar
Now go into the settings of your instance, enter the Custom Commands tab. Enable Custom Commands and add the following as the pre-launch command:
"$INST_JAVA" -jar $INST_MC_DIR/packwiz-installer-bootstrap.jar http://localhost:8080/pack.toml
Now your instance is ready to be used for development and testing!
Launch the modpack in the development instance
Clone the git repository.
git clone https://github.com/jordyslagter/torimon.git
Enter the repository.
cd torimon
Install dev tools.
mise install
Install dev dependencies and prepare repository for development.
mise run prepare
Enter the Minecraft packwiz repository.
cd torimon
Run packwiz for development.
packwiz serve
Now you can run your development instance and it will sync with your local changes.
Refer to the packwiz tutorial for adding, removing and pinning mods.