Nexo on Customblock Damage Event
Triggers when a player starts breaking a Nexo custom block
Fires while the player is breaking a Nexo block, before it actually breaks. Use the break event when you only care about blocks that were destroyed.
Поля
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
blockId | String | — | The Nexo custom block ID that triggers this event (e.g., 'my_block'). Leave empty for any custom block. |
location | Optional<Var<Position>> | — | The location of the block being damaged (optional) |
Общие поля TypeWriter (triggers)
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
triggers | List<Ref<TriggerableEntry>> | empty | — |
How to use it
Fires while the player is mining a Nexo block, before it breaks. Use On Block Break when you only care about blocks that were destroyed. The furniture damage event fires when a player hits furniture without breaking it.