This repository shows how to setup a Gradle project with the Weave Gradle plugin to develop mods for Weave in Kotlin. This template uses Kotlin, if you want to use Java instead, check out the Java Template.
Note
If you prefer developing in Java instead of Kotlin, check out the Java template repository at Weave-MC/ExampleMod.
To use this repository as a template, click on the green Use this template button.
Alternatively, you can simply clone this repository with the following commands:
# You can change "MyCoolMod" to anything you'd like
git clone https://github.com/Weave-MC/ExampleMod-Kotlin MyCoolMod
cd MyCoolModBuilding requires a JDK of version 17 or higher. A good JDK distribution can be downloaded from Adoptium.net, but any OpenJDK compatible JDK suffices.
To build a Weave mod, you can simply run:
./gradlew buildYou can find the built jar files in ./build/libs/*.jar.