Skip to content

Machine Blueprints ​

MBD2 21.1.1KilaGraph 21.1.0.13

A blueprint is a node graph that reacts to a machine's events. It reaches everything the KubeJS machine events reach — states, traits, recipe logic, redstone, custom data, effects, even the machine UI — but it lives inside the machine project, so a machine ships its behaviour with itself.

Blueprint canvas with a Machine Tick entry node feeding a Branch that either sets a machine state or cancels the event
A blueprint graph: an event entry node on the left, reads below it, a decision in the middle, and machine actions on the right.

When to use one ​

You wantUse
Behaviour that ships with the machine, editable in gameA blueprint
Behaviour a modpack author overrides per packKubeJS
A new storage model, content type, or conditionJava
Amount, duration, or parallel scalingRecipe modifiers first — they are cheaper

Blueprints and KubeJS handlers coexist: both receive the same event, blueprints first.

The shortest useful one ​

MBD2 ships twelve worked blueprints. The smallest is redstone_control — an event, a read, a decision, a write:

The redstone_control built-in blueprint: Machine Tick and Machine Info feeding Redstone Power, then a comparison and XOR into Set Working Enabled
`built-in(mbd2:redstone_control)`. The yellow notes are part of the graph — every built-in explains itself on its own canvas.

Bind it to a machine, set requiresSignal and threshold in the machine's Inspector, and the machine has redstone control. No graph editing at all.

PageCovers
ConceptsEvents, the machine target, parameters, binding, execution and failure
Node referenceWhat is in the palette, by group
Built-in blueprintsThe twelve MBD2 ships, their parameters and what each one teaches
The editor blueprint library listing the built-in blueprints as resources
The blueprint library, in the editor's Resources pane.

Requirements ​

Blueprints need KilaGraph 21.1.0.12 or newer, which MBD2 depends on. The palette is KilaGraph's ~300 generic nodes (math, logic, string, list, map, flow, mc.*) plus MBD2's 235 machine nodes.

Where the graphs live

A blueprint is a .bp resource in the editor's blueprint library, or a built-in MBD2 ships in memory. A binding either references one by path or inlines a snapshot into the machine.

Released under the MIT License.