Overview
| Description | An object that shows a block, item or text with free position, rotation and scale. Add it from the Hierarchy context menu → Display and give it behaviour with components. It is handled separately from block objects, which are real blocks. |
|---|---|
| Status | Available |
Nodes
| Node | Pins | Notes |
|---|---|---|
Move objectobj.moveTo | object · pos · seconds | Child displays move along. |
Rotate objectobj.rotateTo | object · yaw · pitch · seconds | Child displays rotate around the parent. |
Roll objectobj.roll | object · roll · seconds | |
Scale objectobj.scaleTo | object · scale | 1.19.4 and later |
Set display textobj.text | object · text |
Nodes and the Java code below do the same thing. Each node corresponds to one Java method.
Java
Current API — The same Nodes static methods as the nodes — create displays in the scene and move them from code.
Nodes.objMoveTo(this, "sign", new Nodes.Pos(10.5, 70, 3.5), 1);
Nodes.objRotateTo(this, "sign", 90, 0, 0.5);
Nodes.objRoll(this, "sign", 15, 0.5);
Nodes.objScaleTo(this, "sign", 1.5);
Nodes.objText(this, "sign", "§aOpen");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 Sign extends Component {
@Override public void onStart() {
TextDisplay t = scene().create(TextDisplay.class, transform().position().add(0, 2, 0));
t.text("§eShop").billboard(Billboard.CENTER).scale(1.5);
BlockDisplay gem = scene().create(BlockDisplay.class, transform().position());
gem.block(Blocks.EMERALD_BLOCK).scale(0.5);
gem.add(Spin.class).speed(90);
}
}In game
| Player | What they see |
|---|---|
| Vanilla client | On 1.19.4 and later it is shown as a display entity with free position, rotation (including roll) and scale; movement is interpolated smoothly on 1.20.2 and later. On 1.19.3 and earlier an invisible armor stand is used: blocks and items appear on its head at about 0.6 size and text appears as a name tag. Scale is fixed at 1 in that case. |
| With the server resource pack | Item displays can use resource-pack models and text displays can use font glyphs. |
| Crux client | Same as 1.19.4 and later. |
Supported versions · server software
| Target | Method |
|---|---|
| 1.19.4 to 26.3 | Display entities |
| 1.12.2 to 1.19.3 | Invisible armor stands |
| Paper · Fabric | Handled through server commands, so there is no difference between server software. Displays exist only while running and are removed when stopped. |
Where to configure
| Server window (operation) | Not applicable |
|---|---|
| Crux Editor (creation) | Hierarchy context menu → Display (block, item, text) · Inspector Transform · Add Component |
Planned
- Showing rotation and scale exactly in the editor scene view
CRUX