On Craftengine Furniture Hit Event
Triggers when a player hits CraftEngine furniture
Fires when a player hits furniture without breaking it, which the break event never reports.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
furnitureId | String | — | The furniture ID that triggers this event (e.g., 'namespace:furniture_id'). Leave empty for any furniture. |
location | Optional<Var<Position>> | — | The location of the furniture that was hit (optional) |
permission | String | — | A permission the player must hold for the hit to be allowed. Leave empty to skip the check. |
allowWhen | List<Criteria> | empty | Facts the player must satisfy for the hit to be allowed. When unmet, the hit is refused. |
cancel | Boolean | true | Whether to stop the hit when the requirements are unmet. Turn off to only fire the triggers. |
repeatGuardMillis | Int | 250 | Milliseconds a held button is treated as one hit. 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 | — |