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
    Entities

    MolangVariableMap

    Molang variables for a particle effect, as Player.spawnParticle takes them.

    Class in @minecraft/server

    Molang variables for a particle effect, as Player.spawnParticle takes them.

    import { MolangVariableMap } from '@minecraft/server';
    constructor();
    setColorRGB(variableName: string, color: RGB): void;

    Sets variableName.r, .g and .b.

    Parameters
    variableName
    string
    color
    RGB
    Types
    setColorRGBA(variableName: string, color: RGBA): void;

    Sets variableName.r, .g, .b and .a.

    Parameters
    variableName
    string
    color
    RGBA
    Types
    setFloat(variableName: string, number: number): void;
    Parameters
    variableName
    string
    number
    number
    setSpeedAndDirection(variableName: string, speed: number, direction: Vector3): void;

    Sets variableName.speed and .direction_x, _y and _z.

    Parameters
    variableName
    string
    speed
    number
    direction
    Vector3
    Types
    setVector3(variableName: string, vector: Vector3): void;

    Sets variableName.x, .y and .z.

    Parameters
    variableName
    string
    vector
    Vector3
    Types

    Player.spawnParticle, Dimension.spawnParticle