const global_item_id = [
    "wooden_sword",
    "stone_sword",
    "iron_sword",
    "golden_sword",
    "diamond_sword",
    "netherite_sword",
    "wooden_axe",
    "stone_axe",
    "iron_axe",
    "golden_axe",
    "diamond_axe",
    "netherite_axe",
    "wooden_pickaxe",
    "stone_pickaxe",
    "iron_pickaxe",
    "golden_pickaxe",
    "diamond_pickaxe",
    "netherite_pickaxe",
    "wooden_shovel",
    "stone_shovel",
    "iron_shovel",
    "golden_shovel",
    "diamond_shovel",
    "netherite_shovel",
    "wooden_hoe",
    "stone_hoe",
    "iron_hoe",
    "golden_hoe",
    "diamond_hoe",
    "netherite_hoe"
];

// Changes all inputs and outputs from vanilla to kubejs
onEvent('recipes', event => {
    for (let tool of global_item_id){
        event.replaceInput({}, Item.of(`minecraft:${tool}`).ignoreNBT(), `kubejs:${tool}`);
        event.replaceOutput({}, Item.of(`minecraft:${tool}`).ignoreNBT(), `kubejs:${tool}`)
    };
});