onEvent('recipes', (event) => {
    
    const id_prefix = 'apotheosis:kubejs/fleching';

    const recipes = [
        {
            ingredients: [
                'minecraft:blaze_powder',
                '#forge:rods/wooden',
                '#forge:feathers'
            ],
            result: '6x archers_paradox:blaze_arrow',
            id: 'blaze_arrow'
        },
        {
            ingredients: [
                'minecraft:diamond',
                '#forge:rods/wooden',
                '#forge:feathers'
            ],
            result: '6x archers_paradox:diamond_arrow',
            id: 'diamond_arrow'
        },
        {
            ingredients: [
                'minecraft:ender_pearl',
                '#forge:rods/wooden',
                '#forge:feathers'
            ],
            result: '6x archers_paradox:ender_arrow',
            id: 'ender_arrow'
        },
        {
            ingredients: [
                'thermal:explosive_grenade',
                '#forge:rods/wooden',
                '#forge:feathers'
            ],
            result: '6x archers_paradox:explosive_arrow',
            id: 'explosive_arrow'
        },
        {
            ingredients: [
                'thermal:blizz_powder',
                '#forge:rods/wooden',
                '#forge:feathers'
            ],
            result: '6x archers_paradox:frost_arrow',
            id: 'frost_arrow'
        },
        {
            ingredients: [
                'minecraft:glowstone_dust',
                '#forge:rods/wooden',
                '#forge:feathers'
            ],
            result: '6x archers_paradox:glowstone_arrow',
            id: 'glowstone_arrow'
        },
        {
            ingredients: [
                'thermal:blitz_powder',
                '#forge:rods/wooden',
                '#forge:feathers'
            ],
            result: '6x archers_paradox:lightning_arrow',
            id: 'lightning_arrow'
        },
        {
            ingredients: [
                'cofh_core:ectoplasm',
                '#forge:rods/wooden',
                '#forge:feathers'
            ],
            result: '2x archers_paradox:phantasmal_arrow',
            id: 'phantasmal_arrow'
        },
        {
            ingredients: [
                'minecraft:quartz',
                '#forge:rods/wooden',
                '#forge:feathers'
            ],
            result: '6x archers_paradox:quartz_arrow',
            id: 'quartz_arrow'
        },
        {
            ingredients: [
                'minecraft:redstone',
                '#forge:rods/wooden',
                '#forge:feathers'
            ],
            result: '6x archers_paradox:redstone_arrow',
            id: 'redstone_arrow'
        },
        {
            ingredients: [
                '#forge:slimeballs',
                '#forge:rods/wooden',
                '#forge:feathers'
            ],
            result: '6x archers_paradox:slime_arrow',
            id: 'silme_arrow'
        },
        {
            ingredients: [
                'minecraft:mycelium',
                'minecraft:arrow',
                'minecraft:bone_meal'
            ],
            result: '4x archers_paradox:spore_arrow',
            id: 'spore_arrow'
        },
        {
            ingredients: [
                'minecraft:grass_block',
                'minecraft:arrow',
                'minecraft:bone_meal'
            ],
            result: '4x archers_paradox:verdant_arrow',
            id: 'verdant_arrow'
        },
        {
            ingredients: [
                'minecraft:rabbit_hide',
                '#forge:rods/wooden',
                '#forge:feathers'
            ],
            result: '6x archers_paradox:training_arrow',
            id: 'training_arrow'
        },
        {
            ingredients: [
                'occultism:crushed_end_stone',
                'minecraft:end_rod',
                '#forge:feathers'
            ],
            result: '6x archers_paradox:shulker_arrow',
            id: 'shulker_arrow'
        },
        {
            ingredients: [
                'minecraft:prismarine_shard',
                '#forge:rods/wooden',
                'minecraft:prismarine_crystals'
            ],
            result: '6x archers_paradox:prismarine_arrow',
            id: 'prismarine_arrow'
        },
        {
            ingredients: [
                'minecraft:emerald',
                'archers_paradox:training_arrow',
                'minecraft:lapis_lazuli'
            ],
            result: '2x archers_paradox:challenge_arrow',
            id: 'challenge_arrow'
        }
    ];

    recipes.forEach(recipe => {

        recipe.type = 'apotheosis:fletching';
        recipe.conditions = [{
            type: 'apotheosis:module',
            module: 'village'
        }];
        recipe.ingredients = recipe.ingredients.map((input) =>Ingredient.of(input).toJson());
        recipe.result = Item.of(recipe.result).toResultJson();

        event.custom(recipe).id(`${id_prefix}/${recipe.id}`);

    })

});
