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

helix / Relation

Variable: Relation โ€‹

const Relation: object

Defined in: core/values/enums.ts:71

execute on <relation>: switch the executor to a related entity.

The only way to reach state NBT doesn't expose, like a mob's current attack TARGET. No match means no executor, so the chain does nothing.

Type Declaration โ€‹

ATTACKER โ€‹

readonly ATTACKER: "attacker" = "attacker"

CONTROLLER โ€‹

readonly CONTROLLER: "controller" = "controller"

LEASHER โ€‹

readonly LEASHER: "leasher" = "leasher"

ORIGIN โ€‹

readonly ORIGIN: "origin" = "origin"

OWNER โ€‹

readonly OWNER: "owner" = "owner"

PASSENGERS โ€‹

readonly PASSENGERS: "passengers" = "passengers"

TARGET โ€‹

readonly TARGET: "target" = "target"

VEHICLE โ€‹

readonly VEHICLE: "vehicle" = "vehicle"

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