The PrimitiveShape class in @minecraft/server.
Class in @minecraft/server
Extended by TextPrimitive
import { PrimitiveShape } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”attachedTo
Section titled “attachedTo”optional
attachedTo?: Entity;Types
color: RGBA;Types
dimension
Section titled “dimension”read-only
readonly dimension: Dimension;Types
hasDuration
Section titled “hasDuration”read-only
readonly hasDuration: boolean;location
Section titled “location”read-only
readonly location: Vector3;Types
maximumRenderDistance
Section titled “maximumRenderDistance”optional
maximumRenderDistance?: number;rotation
Section titled “rotation”rotation: Vector3;Types
scale: number;timeLeft
Section titled “timeLeft”optional
timeLeft?: number;totalTimeLeft
Section titled “totalTimeLeft”read-only optional
readonly totalTimeLeft?: number;visibleTo
Section titled “visibleTo”visibleTo: Player[];Types
Methods
Section titled “Methods”remove
Section titled “remove”remove(): void;setLocation
Section titled “setLocation”setLocation(location: DimensionLocation | Vector3): void;Parameters
locationDimensionLocation | Vector3