Перейти к основному содержимому

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.

Поля

ПолеТипПо умолчаниюОписание
blockIdString—The Nexo custom block ID that triggers this event (e.g., 'my_block'). Leave empty for any custom block.
locationOptional<Var<Position>>—The location of the block being damaged (optional)
Общие поля TypeWriter (triggers)
ПолеТипПо умолчаниюОписание
triggersList<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.