Skip to content

Building

WildToastyMop edited this page Nov 26, 2026 · 1 revision

Building

Every loader and Minecraft version is built from the same source tree with Stonecutter. Each combination is a Gradle project under versions/, ten in total at the moment.

Requirements

  • Java 25 to run Gradle. Toolchains for the older Minecraft versions (21 and 17) are downloaded on the first build.
  • IntelliJ IDEA with the Stonecutter Dev and Minecraft Development plugins, if you want the IDE to understand the versioned comments.
  • The Gradle wrapper. Always use ./gradlew, not a system Gradle.

Building everything

./gradlew buildAndCollect

This builds all ten projects and collects the jar, sources and javadoc of each into build/libs/<mod version>/ at the repo root.

Local builds are marked with -SNAPSHOT, release builds are not. The file name carries the loader and Minecraft version:

combatlog-2.8.6-SNAPSHOT-fabric+1.21.1.jar

Building one version

Make the version active, then build it:

./gradlew "Set active project to 1.21.1-fabric"
./gradlew buildAndCollect

The active version is stored in .sc_active_version and processed into the shared sources. ./gradlew "Reset active project" returns to 26.1.2-fabric.

A single project can also be built without changing the active version:

./gradlew :1.20.1-forge:build

Running

runServer is usually the one you want, because the mod is server-side:

./gradlew runActiveServer
./gradlew runActiveClient

These launch the active version. Any project can be run directly instead:

./gradlew :1.21.1-neoforge:runServer

Clone this wiki locally