On Craftengine Block Interact Event
Triggers when a CraftEngine custom block is interacted with
Fields
| Field | Type | Default | Description |
|---|---|---|---|
blockId | String | — | The custom block ID that triggers this event (e.g., 'namespace:block_id'). Leave empty for any custom block. |
action | CraftEngineInteractAction | ANY | Which click triggers this event.Values:ANYLEFT_CLICKRIGHT_CLICK |
location | Optional<Var<Position>> | — | The location where the block was interacted with (optional) |
repeatGuardMillis | Int | 250 | Milliseconds a held button is treated as one click. A held left click otherwise fires this every tick. Set to 0 to fire on every repeat. |
Common TypeWriter fields (triggers)
| Field | Type | Default | Description |
|---|---|---|---|
triggers | List<Ref<TriggerableEntry>> | empty | — |