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

twine / Zone

Type Alias: Zone โ€‹

Zone = { center: Vec3; radius: number; shape: "sphere"; } | { from: Vec3; shape: "cuboid"; to: Vec3; }

Defined in: twine/src/core/area.ts:14

A volume a player can be inside. Several zones in one zones trigger form a union.

  • sphere: within radius blocks of center, in 3D.
  • cuboid: inside the box between corners from and to (inclusive, any order).

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