import { world } from "@minecraft/server"; import BlockDestructionHandler from "./block_destruction_handler.js"; world.beforeEvents.worldInitialize.subscribe((eventData) => { eventData.blockComponentRegistry.registerCustomComponent( "cmc:on_player_destroyed", { onPlayerDestroy: (e) => { const { player, block, dimension } = e; const handler = new BlockDestructionHandler(player, block, dimension); handler.handleDestruction(); } } ); }); // \u0062\u0079 \u0041\u006e\u0064\u0069\u0075\u0062\u0065\u0072 \u00a9\u0054\u0045\u0041\u004d \u0043\u0055\u0042\u0049\u0054\u004f\u0053 \u004d\u0043 //