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
| Component | Role | Fields |
|---|---|---|
Minecraft block mcblock | Occupies cells as real blocks. While attached, the Transform snaps to cells, 90° and scale 1 | Width · height · depth · clear cells on destroy |
Look: display look.display | Shown as a block, item or text display (free position, rotation, scale) | Kind · block · item · text · billboard · glow · background |
Look: model look.model | Crux model (bones, animation) | Model · clip |
Look: item look.item | Dropped item entity | Item · count · pickup · gravity |
Entity entity | Places an entity such as an NPC | Entity type · facing |
Light light | Light block | Level |
- Look, entity and light appear in the frame section at the top of the Inspector; Minecraft block appears as a component card.
Transform
| Value | Meaning |
|---|---|
pos | Anchor = bottom centre of the object (for one block: x and z at .5, y at the block floor) |
rot | [yaw, pitch, roll] in degrees |
scale | Scale (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.
| Template | Components |
|---|---|
| Block · block group | Minecraft block (width · height · depth) |
| Display | Look: display |
| Model | Look: model |
| NPC | Entity |
| Item entity | Look: item |
| Light | Light |
| Physics form | Collider (box list) · Rigidbody · one display child per box |
| Trigger · region | Collider 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
| Item | Rule |
|---|---|
Destroy obj.destroy | The object and all children. Minecraft blocks clear their cells according to "clear cells on destroy" |
Clone obj.clone | Same path as spawning a prefab; output pin = clone id |
| Active | Per object. Off stops all components and the in-game body while running |
| Enabled | Per component |
| Hidden | Hidden in the editor scene view only. No effect in game |
| Locked | Blocks 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