// priority: 986

ServerEvents.recipes((event) => {    

    let compresseable_block = [
        ['minecraft:gold_ore', 'compressedblocks:shaped_c0_gold_ore'],
        ['minecraft:deepslate_gold_ore', 'compressedblocks:shaped_c0_deepslate_gold_ore'],
        ['minecraft:nether_gold_ore', 'compressedblocks:shaped_c0_nether_gold_ore'],

        ['minecraft:copper_ore', 'compressedblocks:shaped_c0_copper_ore'],
        ['minecraft:deepslate_copper_ore', 'compressedblocks:shaped_c0_deepslate_copper_ore'],

        ['minecraft:iron_ore', 'compressedblocks:shaped_c0_iron_ore'],
        ['minecraft:deepslate_iron_ore', 'compressedblocks:shaped_c0_deepslate_iron_ore'],

        ['minecraft:redstone_ore', 'compressedblocks:shaped_c0_redstone_ore'],
        ['minecraft:deepslate_redstone_ore', 'compressedblocks:shaped_c0_deepslate_redstone_ore'],

        ['minecraft:emerald_ore', 'compressedblocks:shaped_c0_emerald_ore'],
        ['minecraft:deepslate_emerald_ore', 'compressedblocks:shaped_c0_deepslate_emerald_ore'],

        ['minecraft:lapis_ore', 'compressedblocks:shaped_c0_lapis_ore'],
        ['minecraft:deepslate_lapis_ore', 'compressedblocks:shaped_c0_deepslate_lapis_ore'],

        ['minecraft:diamond_ore', 'compressedblocks:shaped_c0_diamond_ore'],
        ['minecraft:deepslate_diamond_ore', 'compressedblocks:shaped_c0_deepslate_diamond_ore'],
    ];

    compresseable_block.forEach(block => {
        event.replaceInput(
            { id: block[1] }, // Replace based on the recipe ID
            block[0],         // The input to replace
            block[0]          // Replacement input (same as original in this example)
        );
    });

});
