-
Notifications
You must be signed in to change notification settings - Fork 0
Core Concepts
DarkBladeDev edited this page Dec 27, 2025
·
1 revision
Every multiblock has exactly one Controller block. This is the "brain" of the structure.
- It serves as the Anchor Point (0, 0, 0) for all coordinate offsets.
- It is the block players interact with to trigger events.
- If the controller is broken, the multiblock is destroyed.
Structures are defined using offsets relative to the Controller.
- Rotation is automatic: If you define a pattern facing NORTH, the plugin automatically calculates positions for EAST, SOUTH, and WEST.
- The plugin detects which way the player or block is facing when creating the structure.
When a player builds a structure and right-clicks the controller, a MultiblockInstance is created.
- Persistent: Saved to the database (SQLite/MySQL).
- Stateful: Each instance has its own State (ACTIVE, INACTIVE) and Variables.
The engine runs on a reactive system:
- Event: Something happens (Interact, Tick, Break).
- Condition: Are requirements met? (Is player sneaking? Is state ACTIVE?).
- Action: Execute logic (Send message, spawn item, change state).