Player template
- "All players" under Players in the hierarchy is the template applied to every connected player. A specific player object with a component of the same family overrides the template for that person.
- Child objects under the template are player-scoped as well (they run separately for each person).
- Default children are created once on first connection. Deleted children are not recreated. When an editor update adds a new kind of default child, only that kind is added.
- Unedited default children leave vanilla as is, at zero cost.
- Crux client elements: only fields the server sets are overridden. Empty or default fields keep that user's own Crux client settings. Removing the component, stopping the run or disconnecting restores the user's settings.
| Default child | Component | Default |
|---|---|---|
| Camera | camera | View "Player setting" (none) |
| HUD | 15 HUD element children | All shown |
| Name tag | nametag | Shown |
Faces per element
| Element | Vanilla client | Crux client |
|---|---|---|
| Camera | Not supported | Spring arm, fixed offset, first person, field of view, roll, wall collision, look-at, shake, moves, blending |
| HUD elements | Hiding not supported | Hide all 15 |
| Block outline | Not supported | Colour and width |
| Client features | Not applicable (no such features) | Block 13 features |
| Visible name tags | Not supported | Viewing distance, hide all |
| Input block | Not supported | Block 14 vanilla controls |
| Name tag | Hide (team setting) | Hide (team setting) |
| Movement | Attribute base values, smooth (versions with the attribute) | Same as vanilla |
Camera camera
- Component on the "Camera" child of the player template. Computed every frame by the Crux client; the server sends settings only when they change.
- Attaches to: Players, All players, a specific player. Crux-route projects only.
| Field | Meaning | Default |
|---|---|---|
| View | none = player setting · first = first person · back = spring arm behind · front = facing from the front · shoulder = over the shoulder · fixed = fixed offset from the eyes | back |
| Distance | Spring arm length (blocks) | 4 |
| Height, side, forward offset | Shoulder position (up, right) and forward distance for fixed | 0 |
| Field of view | 0 = player setting; the player's zoom factor still applies | 0 |
| Roll | Screen roll (degrees) | 0 |
| Follow lag | Spring (seconds); 0 = rigid | 0.12 |
| Rotation lag | Seconds to follow the direction | 0 |
| Wall collision radius | Pulls the arm in at walls; 0 = off | 0.3 |
| Pitch minimum, maximum | Camera pitch range (degrees) | -90 · 90 |
| Blend time | Seconds to blend when settings change | 0.4 |
| Mouse orbit | The mouse orbits the camera around the player instead of turning the body (back, front, shoulder views); the body keeps its direction | Off |
| Node | Action |
|---|---|
crux.camSet · crux.camReset | Override one camera field for that person while running; clear overrides |
crux.camMove · crux.camRelease | Move to a position and direction over seconds and hold; blend back to the normal camera |
crux.camLook | Keep looking at a position or an NPC object; On off = stop |
crux.camShake · crux.camFov · crux.camRoll | Decaying shake (strength, seconds, frequency); field of view and roll over seconds |
- Target = player selection (expand the scope by person, tag, state or scoreboard condition). Empty = all players.
- Cutscenes: chain Move camera with Wait nodes in a graph. Example: tag the player who pressed a button, then a global graph controls the cameras of tagged players only.
- Java: crux.engine.Camera.of(player) — set, reset, move, release, shake, fov, roll, lookAt, stopLooking (same path as the nodes).
- When the camera leaves the body the player is drawn in third person. Releasing restores the player's view.
HUD elements hud.element
- Elements: crosshair, hotbar, health, armor, food, air, experience, effect icons, boss bar, action bar, sidebar, title, chat, tab list, debug (F3).
- "Shown" off hides the element on that player's screen (Crux client). All 15 can be hidden.
- Version notes: title and action bar on 1.21+; tab list and experience on 1.7.10 with Forge only.
- Hidden chat = no chat lines even with the chat window open (typing still works; block it with Input block → chat). Hidden debug = the F3 screen is not drawn.
- A deleted HUD element child leaves vanilla as is (it does not hide the element).
Name tag nametag
- "Shown" off hides the name above the head, using nametagVisibility never on the team crux_hidetag (all clients, all versions).
- Players in another team leave that team while hidden.
- Showing again, removing the component or stopping leaves the team.
Visible name tags nametag.view
- How far that player sees other name tags (1–64 blocks), or hide them all. Distance 0 with hide off = player setting.
- Hiding this player's own tag from others is the Name tag component above.
- Crux client on every version and loader. Beyond 64 blocks is not supported (vanilla limit).
Input block input.block
- Blocks the unchecked vanilla controls for that player (pressing does nothing). All on = the player's own controls.
- Controls: move (forward, back, sideways), jump, sneak, sprint, attack and break, use and place, pick block, drop, inventory, swap hands, hotbar number keys, chat and command, player list, change perspective.
- Escape is never blocked. Scrolling the hotbar with the mouse wheel still works. Swap hands on 1.9+.
- New keys: node crux.registerKey (the "Crux server" section of Controls).
Movement movement
| Field | Attribute | Player default |
|---|---|---|
| Walk speed | movement_speed | 0.1 |
| Jump strength | jump_strength | 0.42 |
| Gravity | gravity | 0.08 |
| Step height | step_height | 0.6 |
| Safe fall distance | safe_fall_distance | 3 |
| Fall damage multiplier | fall_damage_multiplier | 1 |
| Scale | scale | 1 |
| Block reach | block_interaction_range | 4.5 |
| Break speed | block_break_speed | 1 |
- Empty field = vanilla as is. A value sets that player's attribute base.
- Attribute names are matched to the server version automatically (for example generic.jump_strength on 1.21.1, jump_strength on 26.3). Versions without the attribute log one console line.
- Clearing the field, removing the component or stopping restores the original value (the defaults above where the driver cannot read it).
- Attaches to: Players, All players, a specific player.
Block outline block.outline
- Colour and width (1–8) of the block outline that player sees. Empty colour and width 0 = player setting.
- Crux client on every version and loader.
Client features client.features
- Turns off the unchecked Crux client features for that player while on the server. All on = player settings.
- Features: freelook, snaplook, reach display, combo display, fullbright, zoom, auto sprint, hitboxes, custom time, custom weather, TNT timer, waypoints, minimap.
- Combined with the feature limits in the server config. Blocked features show the reason in the settings screen.
Versions · drivers
| Element | 26.3 · 1.21.x | 1.18.2 · 1.16.5 | 1.12.2 |
|---|---|---|---|
| Movement | All 9 fields | Walk speed only (jump strength is a horse-only attribute) | Not supported (no attribute command) |
| Name tag | Supported | Supported | Supported |
| Camera | Crux client (Fabric, Forge, NeoForge) | Crux client (Fabric, Forge, NeoForge) | Crux client (Forge, including 1.8.9 and 1.7.10); detached camera uses a stand-in view entity |
| HUD elements · block outline · client features · visible name tags · input block | Crux client (Fabric, Forge, NeoForge) | Crux client (Fabric, Forge, NeoForge); title and action bar cannot be hidden | Crux client (Forge); title and action bar cannot be hidden |
- Server: Paper and Fabric (editor server component). Forge and NeoForge servers are not supported.
- Per-version details: Support table
Related: Screen overlay · Components
CRUX