Skip to content
BasaltSoftware
Bedrock 1.26.60

Site colour

Discord
Esc

    ↑↓ moveEnter openEsc close

    Keyboard shortcuts
    Ctrl K
    Search the whole site, from any page
    /
    Jump to the sidebar search, or search the whole site where there isn't one
    Enter
    Open the top search result
    Esc
    Clear the search, or close this panel
    ?
    Show these shortcuts
    World

    TextPrimitive

    The TextPrimitive class in @minecraft/server.

    Class in @minecraft/server

    Extends PrimitiveShape

    import { TextPrimitive } from '@minecraft/server';
    constructor(location: DimensionLocation | Vector3, text: RawMessage | string);
    Parameters
    location
    DimensionLocation | Vector3
    text
    RawMessage | string
    backfaceVisible: boolean;

    optional

    backgroundColorOverride?: RGBA;
    Types
    depthTest: boolean;
    lineGapHeight: number;

    read-only

    readonly text: RawMessage | string;
    textBackfaceVisible: boolean;
    useRotation: boolean;
    setText(text: RawMessage | string): void;
    Parameters
    text
    RawMessage | string

    PrimitiveShapesManager.addText, PrimitiveShapesManager.removeText

    From PrimitiveShape: attachedTo, color, dimension, hasDuration, location, maximumRenderDistance, rotation, scale, timeLeft, totalTimeLeft, visibleTo, remove, setLocation