onEvent('recipes', event =>{

    const id_prefix = 'bloodmagic:kubejs/altar';

    const recipes = [
        {
            result: 'bloodmagic:blankslate',
            ingredient: 'appliedenergistics2:smooth_sky_stone_slab',
            level: 0,
            syphon: 1000,
            id: 'blankslate'
        },
        {
            result: 'bloodmagic:woodbrickpath',
            ingredient: 'eidolon:polished_planks',
            level: 0,
            syphon: 500,
            id: 'woodbrickpath'
        },
        {
            result: 'bloodmagic:stonebrickpath',
            ingredient: 'tconstruct:scorched_road',
            level: 0,
            syphon: 500,
            id: 'stonebrickpath'
        },
        {
            result: 'bloodmagic:weakbloodorb',
            ingredient: 'kubejs:scarlet_gem',
            level: 0,
            syphon: 2000,
            id: 'weakbloodorb'
        },
        {
            result: 'bloodmagic:apprenticebloodorb',
            ingredient: 'emendatusenigmatica:enderium_block',
            level: 1,
            syphon: 5000,
            id: 'apprenticebloodorb'
        },
        {
            result: 'bloodmagic:magicianbloodorb',
            ingredient: Item.of('jaept:overcharged_alloy', '{Energy:1024000}'),
            level: 2,
            syphon: 25000,
            id: 'magicianbloodorb'
        },
        {
            result: 'bloodmagic:masterbloodorb',
            ingredient: 'atum:idol_of_labor',
            level: 3,
            syphon: 40000,
            id: 'masterbloodorb'
        },
        {
            result: 'jaept:scarlet_rope',
            ingredient: 'farmersdelight:rope',
            level: 3,
            syphon: 4000,
            id: 'scarlet_rope'
        },
        {
            result: 'bloodmagic:etherealslate',
            ingredient: 'bloodmagic:demonslate',
            level: 4,
            syphon: 50000,
            id: 'etherealslate'
        },
        {
            result: 'bloodmagic:strong_tau',
            ingredient: 'bloodmagic:weak_tau',
            level: 4,
            syphon: 100000,
            id: 'strong_tau'
        }
    ];

    recipes.forEach((recipe) => {
        var rate = recipe.syphon*(recipe.level+1)/400;
        event.recipes.bloodmagic
            .altar(recipe.result, recipe.ingredient)
            .upgradeLevel(recipe.level)
            .altarSyphon(recipe.syphon)
            .consumptionRate(rate)
            .drainRate(rate)
            .id(`${id_prefix}/${recipe.id}`);
    });
    
})