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
Section titled “Constructor”constructor();Methods
Section titled “Methods”setColorRGB
Section titled “setColorRGB”setColorRGB(variableName: string, color: RGB): void;Sets variableName.r, .g and .b.
Parameters
variableNamestringcolorRGB
Types
setColorRGBA
Section titled “setColorRGBA”setColorRGBA(variableName: string, color: RGBA): void;Sets variableName.r, .g, .b and .a.
Parameters
variableNamestringcolorRGBA
Types
setFloat
Section titled “setFloat”setFloat(variableName: string, number: number): void;Parameters
variableNamestringnumbernumber
setSpeedAndDirection
Section titled “setSpeedAndDirection”setSpeedAndDirection(variableName: string, speed: number, direction: Vector3): void;Sets variableName.speed and .direction_x, _y and _z.
Parameters
variableNamestringspeednumberdirectionVector3
Types
setVector3
Section titled “setVector3”setVector3(variableName: string, vector: Vector3): void;Sets variableName.x, .y and .z.
Parameters
variableNamestringvectorVector3
Types