Class BlockBehaviorPushEventOnBlockBroken
- Namespace
- Vintagestory.GameContent
- Assembly
- VSSurvivalMod.dll
Publishes the BlockPos when a Block is broken with the given event name. Likely used in tandem with code mods. Uses the "PushEventOnBlockBroken" code.
[DocumentAsJson]
public class BlockBehaviorPushEventOnBlockBroken : BlockBehavior
- Inheritance
-
BlockBehaviorPushEventOnBlockBroken
Examples
"behaviorsByType": {
"bamboo-grown-*": [
{
"name": "PushEventOnBlockBroken",
"properties": { "eventName": "testForDecay" }
}
]
}
Fields
eventName (Required)
The name of the event to call. Use Api.Event.RegisterEventBusListener in code to register an event.
[DocumentAsJson("Required", "", false)]
private string eventName