CRUX

Screen overlay — UI panels · HUD

Overview

DescriptionShows text, bars, icons and buttons on the player's screen. Create a UI panel in the editor Project tab and lay out an always-visible HUD or a popup that opens and closes by dragging elements on a canvas. Use nodes to show or hide panels and change element contents. HUD line nodes can also draw directly from code without a panel.
StatusAvailable

Nodes

NodePinsNotes
Show UI panel
ui.show
panel · playerPressing a popup button fires the 'On window answer' event (key = panel:button).
Hide UI panel
ui.hide
panel · player
Set UI element
ui.set
panel · element · text · value · color · playerApplied per player.
UI panel shown
ui.visible
panel · player → result
HUD line
crux.hud
ref · textShown on the action bar for players without the Crux client.
HUD bar
crux.hudBar
ref · text · anchor · color · bar(0~1) · barColor
Live HUD
crux.hudLive
ref · template · seconds{player} and PlaceholderAPI (Paper)
Hide vanilla HUD
crux.hudVanilla
hideHotbar, health, armor, food, air
Clear HUD
crux.clearHud
—
Boss bar
ui.bossbar
ref · text · progress · barColor · show · viewerVanilla — all players
Action bar
act.actionbar
textVanilla

Nodes and the Java code below do the same thing. Each node corresponds to one Java method.

Java

Current API — Plugin development: Crux API (crux-api.jar, compileOnly) · editor Java components: Nodes

// Plugin — import crux.api.*;
CruxApi api = CruxApi.get();
if (api.isCruxPlayer(player.getUniqueId()))
    api.hud(player.getUniqueId(), "quest", "Wolves 3 / 5");

// Editor Java component — show UI panel 'quest_hud' and update element 'wolves'
Nodes.uiShow(this, player, "quest_hud");
Nodes.uiSet(this, player, "quest_hud", "wolves", "Wolves 3 / 5", 0.6, "");

Upcoming API (crux.engine) — A package that combines editor Java components and the plugin Crux API. Names and signatures may change before release.

import crux.engine.*;

public class QuestHud extends Component {
    @Override public void onTrigger(Player player) {
        UiPanel hud = player.ui("quest_hud");
        hud.show();
        hud.text("wolves", "Wolves 3 / 5").value(0.6);
        player.hud().vanilla().hide(HudPart.FOOD);
    }
}

In game

PlayerWhat they see
Vanilla clientA UI panel HUD appears on the action bar when it has one line and on the sidebar when it has several (one panel at a time on the sidebar). Bars are shown as 10 ■ cells. Popups open as chest menus, or as chat buttons on server software without chest menus. Positioning and hiding vanilla HUD parts do not apply.
With the server resource packImages in the server resource pack become crux:ui font glyphs, so <glyph:name> in text and UI panel icons also appear on the vanilla action bar, sidebar (1.20.3+) and chat (1.16+).
Crux clientUI panels appear exactly as laid out on the canvas, with position, colour, bars and icons (Crux API 7+), and popups open as Crux windows. Multiple HUD lines, anchors, live lines, hiding and moving vanilla HUD parts, and screen styles (server theme) are supported.

Supported versions · server software

TargetMethod
Crux client — all 15 supported versionsHUD lines, bars, live lines (Crux API 2, 3); UI panels and hiding/moving vanilla HUD need API 7+
UI panels (vanilla clients)All 5 main versions (26.3, 1.21.1, 1.18.2, 1.16.5, 1.12.2) — action bar 1.11+, sidebar on every version, chest menus on all Paper versions and Fabric 26.3, font glyphs 1.16+. Older Fabric versions do not support popups.
Boss bar node1.13+ (/bossbar command)
Server softwareAny server with the Crux plugin or server mod (Paper family, Fabric, Forge, NeoForge)

Where to configure

Server window (operation)Server window, Server API tab UI settings — default hiding/moving of vanilla HUD parts, screen style
Crux Editor (creation)Project tab + → New UI panel (type HUD or popup; show on join or by nodes only) → drag elements on the canvas, enter values on the right → save. Nodes, Java components, RPG (quest progress HUD)

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