Optional
beforeThis function will be called before a player places the block.
Optional
onThis function will be called when an entity falls onto the block that this custom component is bound to.
Optional
onThis function will be called when the block that this custom component is bound to is placed.
Optional
onThis function will be called when a player destroys a specific block.
Optional
onThis function will be called when a player sucessfully interacts with the block that this custom component is bound to.
Optional
onThis function will be called when a block randomly ticks.
Optional
onThis function will be called when an entity steps off the block that this custom component is bound to.
Optional
onThis function will be called when an entity steps onto the block that this custom component is bound to.
Optional
onThis function will be called when a block ticks.
Contains a set of events that will be raised for a block. This object must be bound using the BlockRegistry.
Example
registerBlockComponent.ts