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

helix / Detector

Type Alias: Detector โ€‹

Detector = (chain) => void

Defined in: core/frontend/detect.ts:32

A condition, as clauses appended to an execute chain.

Only guards and context shifts: no run or side effects, since detectors get combined and emitted at several sites. detect finishes the chain.

ts
const pressed: Detector = (c) => c.ifBlock(pos, Block.STONE_BUTTON.state({ powered: true
}));

Parameters โ€‹

chain โ€‹

ExecuteBuilder

Returns โ€‹

void

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