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.
Recommended stack
- 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.gitUse 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.
Recommended IntelliJ setup
- Open the plugin project as a Gradle project.
- Wait for Loom to finish its dependency setup. Errors shown before that are often false.
- Install Lombok support if IntelliJ prompts you.
- 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 location | Why it matters |
|---|---|
mod/src/main/java/com/soulfiremc/server/api | Public plugin API classes such as SoulFireAPI, Plugin, and event types |
mod/src/main/java/com/soulfiremc/server/settings | Typed settings model, property classes, and settings page registration |
mod/src/main/java/com/soulfiremc/server/bot | BotConnection, ControlState, and ControlTask |
mod/src/main/java/com/soulfiremc/server/plugins | Built-in plugins that show real patterns used by the project |
mod/src/main/java/com/soulfiremc/server/grpc | How GUI and CLI actions are translated into in-process bot operations |
proto/src/main/proto/soulfire | The 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?
