CRUX

Minecraft behavior · default graphs

Layers for changing Minecraft

When several layers give the same result, the lowest one is used. Lower layers look smoother on vanilla clients.

LayerTargetHowVanilla client
① Data fieldsStates, attributes, data components, game rules, server settingsComponent field valuesFully smooth
② Events + vanilla behaviorWhat Minecraft code does: doors, chests, block breaking, mob damageEditing an event line of the default graphSmooth (a one-tick correction when prediction differs)
③ Server engineWhat Minecraft lacks (Rigidbody, collider, joint, animator, UI)Crux engine componentsDisplays with interpolation
④ Client onlyWhat the vanilla client hardcodes (free camera, hand, right-click delay)Crux client; same nodes, shown yellow for vanillaNot supported

Minecraft base systems tree

  • A virtual row under Global hierarchy → Server (directly under Global hierarchy before connecting). Not saved in the scene; edits are stored in the experience file.
  • Rows: server settings, game rules, attributes, blocks, items, entities, effects, enchantments, recipes, loot tables, advancements, tags, damage types, commands, server software settings files.
  • Selecting a row opens the window that edits the whole type (Types, Experience, Commands). Edits on an object apply to that object; edits in the tree apply to every instance of the type.
  • Rows under each type list the entries changed in the experience file (selecting one opens it).
  • Server software settings: opens server.properties, bukkit.yml, spigot.yml and the Paper settings files in the default editor; changes apply on restart.

Behavior families · default graphs

Hardcoded behavior of blocks and entities, grouped into families with a default graph each. Families are assigned automatically by name pattern and block state properties.

FamilySelectionDefault graph lines
Command blockThe three command blocksUse → command editor · Redstone → run command (fixed) · Break → loot
ContainersChests, barrels, furnaces, hoppers, shulker boxes and similarUse → open screen · Break → spill contents
OpenableState open (doors, trapdoors, fence gates)Use → open/close · Redstone → follows the signal (fixed)
Redstone sourcesState powered or power (levers, buttons, pressure plates)Use → turn on · Step → turn on (fixed)
Mob basicsLiving entitiesHit → knockback and damage · Use → trade, tame, ride · Every tick → AI goals (fixed) · Death → loot (fixed)
Basic blockAll other blocksBreak → loot · Place → place
  • Location: default behavior lines in the Minecraft defaults tab of a block or NPC object Inspector.
  • Unedited lines do not run on the server: vanilla as is, zero cost.
  • Editing a line copies only that line into a graph component on the object; edited lines are shown in bold.
  • Revert: "To vanilla" per line, or "Revert all to vanilla". When no edited line remains, the component is removed.
  • Fixed lines: behavior that cannot be overridden yet, shown grey.
  • Family definitions: one file each in editor/nodes/families/*.json.

Overriding an event line

Event node fieldValues
WhereAnywhere · only on this object (blocks: inside its cell box; entities: its hitbox or NPC)
Vanilla behaviorKeep vanilla · graph instead of vanilla (the event is cancelled first)
  • Node "Vanilla behavior" (vanilla.call) runs the original Minecraft behavior again (un-cancels the event). The next node runs after vanilla has finished (next tick).
  • A line without the Vanilla behavior node has no vanilla behavior.
  • Vanilla behavior cannot be called after a wait (one console line).
  • Only cancellable events can be overridden: breaking, placing, using blocks, using entities, damage and similar.
  • Java components follow the same rules (NodeRuntime.onSelf · e.cancel).
  • Overridable events: 18 on Paper, 4 to 6 on Fabric (varies by version). Forge and NeoForge servers are not supported. Support table

Deep layer · mob goals

NodePaper 1.16.5+Others (Paper 1.12.2 · Fabric)
mob.goal empty goalWhole AI on/offWhole AI on/off
mob.goal goal nameThat goal only (priority kept)Not supported · one console line
mob.goalsGoal names (disabled ones prefixed with -)Empty list
  • Goal name examples: random_stroll · look_at_player · melee_attack · nearest_attackable.
  • All disabled goals and AI are restored when a scene-based run stops.

Data layer

  • A schema per version: blocks, items, entities, attributes, effects, enchantments, recipes, loot tables, game rules, tags, block entities and the command tree.
  • 1.12.2 (no data generator): blocks, items, entities, effects and enchantments are filled from the running server registry.

Related: Player template · Visual scripting

crux-docs · client 0.3.25 · plugin 1.4.0 · mc 26.3 · updated 2026-10-11 · report a mistake