BlockEvents.broken('minecraft:spawner', event => {
    // 1. Send a message to the player (Optional)
    event.player.displayClientMessage(Text.red("You strike the iron, but the echoes of the past weave the cage back together."), true);
    
    // 2. Cancel the block break event
    event.cancel();
});