Aller au contenu principal

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.

Champs

ChampTypePar défautDescription
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)
Champs TypeWriter communs (triggers)
ChampTypePar défautDescription
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.