Expand description
Environment triggers and the props a player interacts with.
Structs§
- EnvTrigger
- A stage-5 environment trigger (DSL v0.4). Emission uses vanilla-intended
primitives only (spec-0008 §7):
strike/useread aminecraft:interactionentity’s attack/interaction records;approachis adistanceselector on the tick. Look-at / break-attempt detection is excluded on principle (no vanilla primitive). - Prop
- A prop block for an
interactobjective or ausetrigger (DSL v0.4; spec-0093 §6.5). The block is the affordance the player interacts with; its id is validated against the pinned 1.21.11 block registry (DW0193).
Enums§
- Trigger
Audience - Who an
EnvTrigger’s effects address (DSL v0.11). - Trigger
On - The event an
EnvTriggerwatches (DSL v0.4).
Constants§
- SEALED_
BODY_ UNANSWERED - (v0.11) A sealed body with no press answer, uniformly over the
pressable class. A
shortcuts[]door or aclose-gate’s wall is sealed, and nothing says what it answers when the party presses it — nousetrigger anchored on it, and (for aclose-gate) no authoredsealed_hint. - TRIGGER_
AUDIENCE_ UNATTRIBUTABLE - (v0.11) A press answer addressed to a click vanilla cannot attribute.
A trigger declares
audience: presseron something other than anon: useor anon: step. - TRIGGER_
ID_ RESERVED - (v0.11) A trigger id in the compiler’s reserved
dw-namespace. The compiler synthesizes triggers of its own — today the press answer every sealed gate and shortcut door gives (trigger/dw-press-…) — and two triggers sharing an id would share onedw_trig_…tag and one emitted function, so one of them would silently disappear. Reserving the prefix makes the collision impossible by construction instead of improbable. - TRIGGER_
INVALID - (v0.4) An environment trigger id is malformed (
DW0110-style) or duplicated within the stage-5triggersnamespace. - USE_
TRIGGER_ ON_ NPC - (v0.4, added round-6) A
usetrigger anchored where an NPC stands. Right-click on an NPC already belongs to its dialogue advancement; a second interaction hitbox in the same cell makes the client’s entity ray-pick ambiguous, and whichever entity loses the tie is silently dead — the round-6 island soft-lock class (an exactly co-located hitbox starved the giant’s dialogue of every right-click).striketriggers are exempt: a left-click has no dialogue meaning, so the compiler rides the trigger’s tag on the NPC’s own hitbox instead of summoning a second one. Validation-tier (exit 1).