// File: /d:/Dev/Noxcraft/NoxCraft-V2---Hardrock-TFC-4-Variant-pack/kubejs/server_scripts/nobitsbreaking.js
// Stops breaking blocks with bits

BlockEvents.leftClick(event => {
    // Check if the player is holding an item
    const heldItem = event.player.mainHandItem;

    // If the held item is 'chiselsandbits:bitblock', cancel the action
    if (heldItem && heldItem.id === "chiselsandbits:chiseled") {
        event.cancel();
    }
});