CRUX

Object model · scene files

Object = Transform + components

  • Every object in the hierarchy: an id, one Transform and a list of components.
  • What an object is (how it looks and exists in the world) is decided by its components, not by a type name.
  • Hierarchy icon and scene colour follow the representative component.
  • The in-game body (real blocks, displays, entities, interaction entities) is chosen by the server from the components.

Identity components

ComponentRoleFields
Minecraft block mcblockOccupies cells as real blocks. While attached, the Transform snaps to cells, 90° and scale 1Width · height · depth · clear cells on destroy
Look: display look.displayShown as a block, item or text display (free position, rotation, scale)Kind · block · item · text · billboard · glow · background
Look: model look.modelCrux model (bones, animation)Model · clip
Look: item look.itemDropped item entityItem · count · pickup · gravity
Entity entityPlaces an entity such as an NPCEntity type · facing
Light lightLight blockLevel
  • Look, entity and light appear in the frame section at the top of the Inspector; Minecraft block appears as a component card.

Transform

ValueMeaning
posAnchor = bottom centre of the object (for one block: x and z at .5, y at the block floor)
rot[yaw, pitch, roll] in degrees
scaleScale (1 while a Minecraft block is attached)
  • Transform section at the top of the Inspector. Snapping applies only to Minecraft blocks and placed prefabs.
  • When a Minecraft block object is moved by physics while running, the Inspector shows "Minecraft block: moving".
  • Cell ranges (block objects, sensor boxes) are computed from the Transform and the Minecraft block size or collider boxes. Only prefab sources keep a min/max content range.

Templates = component sets

Templates in the Object menu are empty objects with components already attached. Adding or removing components later follows the same rules.

TemplateComponents
Block · block groupMinecraft block (width · height · depth)
DisplayLook: display
ModelLook: model
NPCEntity
Item entityLook: item
LightLight
Physics formCollider (box list) · Rigidbody · one display child per box
Trigger · regionCollider sensor box

Parents and children

  • One Transform hierarchy. Whatever moves the parent (gizmo, node, physics, animation), children and grandchildren move and rotate with it.
  • Changing the parent while running: node obj.setParent (world position kept). Reading: obj.parent · obj.children.

Destroy · clone · toggles

ItemRule
Destroy obj.destroyThe object and all children. Minecraft blocks clear their cells according to "clear cells on destroy"
Clone obj.cloneSame path as spawning a prefab; output pin = clone id
ActivePer object. Off stops all components and the in-game body while running
EnabledPer component
HiddenHidden in the editor scene view only. No effect in game
LockedBlocks selection and editing in the editor

Units

  • Velocity and force: blocks per second (nodes, Java and Inspector fields alike). Time: seconds. Angles: degrees.

Scene files

  • Global layer (server, players): global.json. One scene per world: worlds/<world>.json. Location: the editor data folder on the server.
  • Prefabs: the prefabs folder, holding the object tree, overrides and placement data.
  • Kinds of saved data and export scope: Run rules page.

Related: Transform · Components · Run rules

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