Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / Pos

Variable: Pos โ€‹

Pos: (...coords) => PosValue & object

Defined in: core/values/pos.ts:117

An absolute position, e.g. Pos(10, 64, -3). Pos.rel gives ~, Pos.local gives ^, and Pos.here() is ~ ~ ~.

Type Declaration โ€‹

abs โ€‹

abs: (n) => Coord

One absolute axis (0) inside an otherwise relative/local vector.

Parameters โ€‹

n โ€‹

number

Returns โ€‹

Coord

caret โ€‹

caret: (n) => Coord

One local axis (^n).

Parameters โ€‹

n โ€‹

number

Returns โ€‹

Coord

exact โ€‹

exact: (...coords) => PosValue

Absolute, pinned to the exact coordinate (0.0) instead of the block centre.

Parameters โ€‹

coords โ€‹

...CoordArg[]

Returns โ€‹

PosValue

here โ€‹

here: () => PosValue

~ ~ ~ - the executor's own position.

Returns โ€‹

PosValue

local โ€‹

local: (...coords) => PosValue

Local, relative to facing (^).

Parameters โ€‹

coords โ€‹

...CoordArg[]

Returns โ€‹

PosValue

raw โ€‹

raw: (text) => PosValue

Wrap a raw coordinate string (legacy escape hatch); renders verbatim.

Parameters โ€‹

text โ€‹

string

Returns โ€‹

PosValue

rel โ€‹

rel: (...coords) => PosValue

Relative to the executor (~).

Parameters โ€‹

coords โ€‹

...CoordArg[]

Returns โ€‹

PosValue

tilde โ€‹

tilde: (n) => Coord

One relative axis (~n) inside an otherwise absolute vector.

Parameters โ€‹

n โ€‹

number

Returns โ€‹

Coord

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.