Gate

Field cell-object reference. Type tag: gate. The key words MUST, MUST NOT, and MAY are used as in RFC 2119. See the Cell Objects index and the Field Stage Lifecycle for how objects are spawned and persisted.

Config schema

Fields authored on this object in the stage JSON:

FieldTypeDefaultNote
position [x, y, z] stage-local spawn position
kind string "normal" | "key" | "area"
link_id string for area gates — the target section / connection

Spawn behavior

A barrier across a cell exit, placed from the stage config. Its direction resolves through StageRotation so a rotated cell still opens the correct physical exit.

Persisted state

Persisted as opened / closed. An opened gate MUST stay open on re-entry.

Interactions

Three kinds: a normal gate unlocks once every enemy in the room is cleared (kill_all); a key gate is opened with a section key (pickup_key then open_gate); an area gate is an area_warp connecting to a different section.

Notes

Keys are section-scoped: any key found anywhere in a section opens any key gate in that section.

← Cell Objects