OptionalbeforeOptional RconThis function will be called when a specific block is destroyed. Changes in block permutations will not trigger this event. Fill Command and SetBlock Command can trigger this event when changing a block permutation only when using destroy mode. Custom blocks with the "minecraft:replaceable" component will not trigger the event when replaced.
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalon
Contains a set of events that will be raised for a block. This object must be bound using the BlockRegistry.
Example: registerBlockComponent_v1.ts
Example: registerBlockComponent_v2.ts