Перейти к содержанию
SoulFire LogoSoulFire

Development

Build a plugin when visual scripting cannot provide the Minecraft or SoulFire access that you need.

Это руководство доступно только на английском.

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:

  1. Environment setup to align Java, IntelliJ, and your local source checkout
  2. Build your first plugin to get one jar loading inside SoulFire
  3. Gradle and project layout when you start changing the template
  4. Event system and Settings and metadata for normal plugin work
  5. Bot control and direct access only when you need real runtime objects or ControlTask sequences
  6. Mixins and access wideners only when the public API is not enough
  7. 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.

Последнее обновление:

Полезна ли эта страница?