Overview
| Description | Shows 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. |
|---|---|
| Status | Available |
Nodes
| Node | Pins | Notes |
|---|---|---|
Show UI panelui.show | panel · player | Pressing a popup button fires the 'On window answer' event (key = panel:button). |
Hide UI panelui.hide | panel · player | |
Set UI elementui.set | panel · element · text · value · color · player | Applied per player. |
UI panel shownui.visible | panel · player → result | |
HUD linecrux.hud | ref · text | Shown on the action bar for players without the Crux client. |
HUD barcrux.hudBar | ref · text · anchor · color · bar(0~1) · barColor | |
Live HUDcrux.hudLive | ref · template · seconds | {player} and PlaceholderAPI (Paper) |
Hide vanilla HUDcrux.hudVanilla | hide | Hotbar, health, armor, food, air |
Clear HUDcrux.clearHud | — | |
Boss barui.bossbar | ref · text · progress · barColor · show · viewer | Vanilla — all players |
Action baract.actionbar | text | Vanilla |
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
| Player | What they see |
|---|---|
| Vanilla client | A 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 pack | Images 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 client | UI 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
| Target | Method |
|---|---|
| Crux client — all 15 supported versions | HUD 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 node | 1.13+ (/bossbar command) |
| Server software | Any 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