on_craftengine_block_break_event
Triggers when a CraftEngine custom block is broken — misc entry.
Entry Information
| Property | Value |
|---|---|
| Entry ID | on_craftengine_block_break_event |
| Type | Misc |
| Color | Red |
| Icon | mdi:hammer |
Fields
| Field | Type | Description |
|---|---|---|
blockId | String | The custom block ID that triggers this event (e.g., 'namespace:block_id'). Leave empty for any custom block. |
location | Optional<Var<Position>> | The location where the block was broken (optional) |
itemsInHand | List<String> | List of item IDs that the player must have in hand to trigger this event. Leave empty to allow any item or no item. |
Usage Example
- entry: on_craftengine_block_break_event
name: "Triggers when a CraftEngine custom block is broken"
blockId: ""
location: ""
itemsInHand: []