Visual scripting
- A node graph is logic made of event, flow, action and value nodes joined by links. It runs on the server.
- Where graphs live: graph components on objects, graph files (shared by several objects) and function files (graphs with inputs and outputs).
- One node is one Java method. Java view in the node editor, Export to Java and View Java as nodes. Details
- Full node list and support by version: All nodes page. All nodes
Event node fields
| Field | Applies to | Values |
|---|---|---|
| Where | Cancellable events with a block or entity | Anywhere · only on this object |
| Vanilla behavior | All cancellable events | Keep vanilla · graph instead of vanilla |
| Key · state · name | UI, key, quest, command, state and signal events | Empty = all; a value = that one only |
| Seconds | Timer, while in trigger, area stay | Repeat interval |
- Node "Vanilla behavior" runs the original Minecraft behavior on a line set to graph instead of vanilla; the next node runs on the next tick. Details
- Node "Cancel" cancels the event; effective only before a wait.
Sensing · triggers
- Trigger and region templates are collider sensor boxes with enter, stay and exit events.
- Trigger command text (enter, exit and stay commands) runs with the same sensing rules. Commands can use {player} {x} {y} {z}.
Live view
- Run with the graph open in the node editor: visited nodes highlight, values appear on links, and time per second (ms), run count and variable values are shown.
- Sent only to the person watching; unwatched graphs have no overhead.
- Profiler window: the eight slowest graphs over the last second.
Commands · .mcfunction
- Project "+" menu, Import .mcfunction: creates a function graph with one command node per line (comments and blank lines skipped).
- Right-click a graph file, Export as .mcfunction: available when the line contains only command nodes; otherwise the number of other nodes is shown.
- Command names are checked against the version command tree. 1.12.2 has no command tree, so no check.
CRUX