onEvent('recipes', (event) => {
    const id_prefix = 'enigmatica:base/mekanism/sawing/';
    const recipes = [
        {
            input: '#minecraft:planks',
            output: Item.of('minecraft:stick', 6),
            extraOutput: Item.of('emendatusenigmatica:wood_dust').chance(0.25),
            id: 'mekanism:sawing/planks'
        },
        {
            input: '#minecraft:wooden_slabs',
            output: Item.of('minecraft:stick', 3),
            extraOutput: Item.of('emendatusenigmatica:wood_dust').chance(0.125),
            id: 'mekanism:sawing/slabs'
        },
        {
            input: '#minecraft:wooden_stairs',
            output: Item.of('minecraft:stick', 9),
            extraOutput: Item.of('emendatusenigmatica:wood_dust').chance(0.375),
            id: 'mekanism:sawing/stairs'
        },
        {
            input: ['naturesaura:ancient_log'],
            output: Item.of('6x naturesaura:ancient_planks'),
            extraOutput: Item.of('emendatusenigmatica:wood_dust').chance(0.25),
            id: `${id_prefix}ancient_planks_from_log`
        },
        {
            input: ['naturesaura:ancient_bark'],
            output: Item.of('6x naturesaura:ancient_planks'),
            extraOutput: Item.of('emendatusenigmatica:wood_dust').chance(0.25),
            id: `${id_prefix}ancient_planks_from_bark`
        },
        {
            input: ['botania:livingwood'],
            output: Item.of('6x botania:livingwood_planks'),
            extraOutput: Item.of('emendatusenigmatica:wood_dust').chance(0.25),
            id: `${id_prefix}livingwood_planks_from_livingwood`
        },
        {
            input: ['astralsorcery:infused_wood'],
            output: Item.of('6x astralsorcery:infused_wood_planks'),
            extraOutput: Item.of('astralsorcery:stardust').chance(0.05),
            id: `${id_prefix}infused_wood_planks_from_infused_wood`
        },
        {
            input: ['#forge:storage_blocks/quartz'],
            output: Item.of('3x pneumaticcraft:aphorism_tile'),
            extraOutput: Item.of('emendatusenigmatica:quartz_dust').chance(0.375),
            id: `${id_prefix}aphorism_tile`
        }
    ];
    recipes.forEach((recipe) => {
        event.recipes.mekanism.sawing(recipe.output, recipe.input, recipe.extraOutput).id(recipe.id);
    });
});
