Skip to content

twine / Zone

Type Alias: Zone

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

Defined in: area.ts:19

A single volume a player can be inside. Combine many into one area's bounds via the zones trigger (a player is "in" the area if inside ANY zone).

  • sphere - within radius blocks of center (@a[distance=..radius], measured in 3D, so height counts).
  • cuboid - inside the axis-aligned box spanning the two corners from/to (inclusive, order-independent; an @a[x=…,dx=…,…] volume selector).

Released under the MIT License · Credits