跳到主要内容

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.