Development
Build a plugin when visual scripting cannot provide the Minecraft or SoulFire access that you need.
Ten poradnik jest dostępny tylko po angielsku.
Use plugins when visual scripting cannot provide the control that you need. Plugins can add low-level hooks, Mixins, packet handling, settings pages, and direct access to Minecraft objects.
SoulFire plugins can access internal code. A SoulFire update can break integrations that use this access. Keep your plugin version, the current Javadocs, and the current SoulFire source tree aligned.
Choose the right tool
Stay in Scripting when:
- you can express the behavior as triggers, actions, conditions, and data flow
- you want a stable, visual workflow that non-developers can edit
- you do not need custom Mixins, packet hooks, or direct Minecraft internals
Move to plugin development when:
- you need custom logic inside the bot tick loop or entity tick loop
- you need new settings pages, custom commands, or plugin-owned state
- you need to inspect, replace, or suppress packets
- you need Fabric mod APIs, Mixins, or access wideners
- you need direct access to
BotConnection,LocalPlayer,ClientPacketListener, or other low-level objects
Read in this order
For your first plugin, read these pages in order:
- Environment setup to align Java, IntelliJ, and your local source checkout
- Build your first plugin to get one jar loading inside SoulFire
- Gradle and project layout when you start changing the template
- Event system and Settings and metadata for normal plugin work
- Bot control and direct access only when you need real runtime objects or
ControlTasksequences - Mixins and access wideners only when the public API is not enough
- Architecture and protocols when you need to trace how SoulFire wires the internals together
Developer resources lists the Javadocs, Maven coordinates, and source links.
The constructor and @EventHandler methods cover most plugin work.
To offer RPCs, events, or tasks to SDK clients, override onLoad(PluginContext) in the same plugin class, and start runtime work in onEnable.
Plugin APIs covers that lifecycle.
Related pages
- Plugins for the high-level Fabric-based model
- Install plugins for loading a built jar into SoulFire
- Built-in plugins for the currently shipped plugin list
- Scripting if your use case can stay in the visual editor
Ostatnia aktualizacja:
Czy ta strona jest pomocna?
