Zum Inhalt springen
SoulFire LogoSoulFire

Environment setup

Set up Java, Gradle, IntelliJ, and a source checkout that matches the SoulFire version your plugin targets.

Diese Anleitung gibt es nur auf Englisch.

This page sets up a workspace that can build and debug a SoulFire plugin.

  • Java 25: SoulFire and the plugin template build with JDK 25. An older JDK fails the build.
  • Gradle Wrapper: use the wrapper from your plugin project and from the SoulFire source checkout.
  • IntelliJ IDEA: recommended for Fabric Loom, Mixins, Lombok, and large Java source navigation.
  • A local SoulFire checkout: the most reliable API reference.

Clone the repos you need

Clone these repositories into the same parent directory:

git clone https://github.com/soulfiremc-com/SoulFire.git
git clone https://github.com/soulfiremc-com/SoulFirePluginExample.git

Use SoulFirePluginExample as the starting project. Use the SoulFire source and Javadocs to check current APIs, built-in plugins, and proto contracts. Check out the SoulFire tag that matches your SoulFire server, for example git -C SoulFire checkout 2.10.8.

  1. Open the plugin project as a Gradle project.
  2. Wait for Loom to finish its dependency setup. Errors shown before that are often false.
  3. Install Lombok support if IntelliJ prompts you.
  4. If you also open the SoulFire repository, import its inspection profile from config/intellij_inspections.xml.

Other IDEs work if they support the Gradle Kotlin DSL, annotation processing, and Loom dependency resolution.

What to inspect in the SoulFire source tree

Source locationWhy it matters
mod/src/main/java/com/soulfiremc/server/apiPublic plugin API classes such as SoulFireAPI, Plugin, and event types
mod/src/main/java/com/soulfiremc/server/settingsTyped settings model, property classes, and settings page registration
mod/src/main/java/com/soulfiremc/server/botBotConnection, ControlState, and ControlTask
mod/src/main/java/com/soulfiremc/server/pluginsBuilt-in plugins that show real patterns used by the project
mod/src/main/java/com/soulfiremc/server/grpcHow GUI and CLI actions are translated into in-process bot operations
proto/src/main/proto/soulfireThe wire contracts for server info, instance info, bot control, scripting, and more

Keep versions aligned

Match your plugin's SoulFire dependency to the SoulFire version you run. The CodeMC Maven metadata lists the published versions. The template can pin an older version. Align the template with your SoulFire server before you write code.

Next steps

Zuletzt aktualisiert am

War diese Seite hilfreich?