ServerEvents.recipes(event => {
    let remove = ['bloodmagic:alchemy_table',
        'bloodmagic:alchemytable/reagent_water',
        'bloodmagic:alchemytable/reagent_lava',
        'bloodmagic:alchemytable/reagent_sight',
        'bloodmagic:alchemytable/reagent_air',
        'bloodmagic:alchemytable/reagent_fastminer',
        'bloodmagic:alchemytable/reagent_void',
        'bloodmagic:alchemytable/reagent_growth',
        'bloodmagic:alchemytable/reagent_holding',
        'bloodmagic:alchemytable/reagent_magnetism',
        'bloodmagic:alchemytable/reagent_blood_light',
        'bloodmagic:alchemytable/reagent_binding',
        'bloodmagic:alchemytable/reagent_suppression',
        'bloodmagic:alchemytable/reagent_teleposition'
    ]
    remove.forEach(r => {
        event.remove({ id: r })
    })
    event.recipes.avaritia.shaped_table(2,
        Item.of('bloodmagic:alchemytable', 1), [
            "     ",
            "   A ",
            "BBCBB",
            " DED ",
            "FGHGI"
        ], {
            A: Item.of('bloodmagic:alchemy_flask', '{Damage:0}'),
            B: 'gtceu:dark_steel_plate',
            C: 'minecraft:red_wool',
            D: 'bloodmagic:reinforcedslate',
            E: 'gtceu:iron_rod',
            F: 'botania:rune_pride',
            G: 'gtceu:dark_steel_block',
            H: 'gtceu:small_terra_steel_gear',
            I: 'botania:rune_greed'
        })


    event.recipes.avaritia.shaped_table(4, 
        Item.of('kubejs:snow_city_sword', 1), [
            "      AA ",
            "      A A",
            "     AAAA",
            "    ABAAA",
            "   ABA   ",
            "AAABA    ",
            "AAAA     ",
            "A A      ",
            " AA      "
        ], {
            A: 'gtceu:snow_steel_ingot',
            B: '#gtceu:circuits/luv'
        })
    event.recipes.avaritia.shaped_table(4, 
        Item.of('kubejs:yharim', 9), [
            "ABBCCCBBA",
            "BDDDDDDDB",
            "BDEEEEEDB",
            "CDEGGGEDC",
            "CDEGFGEDC",
            "CDEGGGEDC",
            "BDEEEEEDB",
            "BDDDDDDDB",
            "ABBCCCBBA",
        ], {
            A: 'gtceu:neutronium_ingot',
            B: 'gtceu:aether_ingot',
            C: 'gtceu:ultra_mana_ingot',
            D: 'gtceu:boundless_ingot',
            E: 'minecraft:honeycomb',
            F: 'minecraft:bee_nest',
            G: 'gtceu:infinity_catalyst_dust'

        })
    event.recipes.avaritia.shaped_table(4, 
        Item.of('kubejs:ark_of_homo', 1), [
            " D D D D ",
            " D D D D ",
            " A D D A ",
            "C AD DA C",
            " CCDBDCC ",
            "   D D   ",
            "  GG GG  ",
            " G G G G ",
            "G  G G  G",
        ], {
            A: 'gtceu:neutronium_ingot',
            B: 'gtceu:aether_ingot',
            C: 'gtceu:ultra_mana_ingot',
            D: 'gtceu:boundless_ingot',
            G: 'kubejs:yharim'

    })
    event.recipes.avaritia.shaped_table(4, 
        Item.of('kubejs:ark_of_homo', 1), [
        " D D D D ",
        " D D D D ",
        " A D D A ",
        "C AD DA C",
        " CCDBDCC ",
        "   D D   ",
        "  GG GG  ",
        " G G G G ",
        "G  G G  G",
    ], {
        A: 'gtceu:neutronium_ingot',
        B: 'gtceu:aether_ingot',
        C: 'gtceu:ultra_mana_ingot',
        D: 'gtceu:boundless_ingot',
        G: 'kubejs:yharim'

    })
    //water
    event.custom({
            "type": "bloodmagic:alchemytable",
            "input": [{
                    "item": "alexscaves:bioluminesscence"
                },
                {
                    "item": "minecraft:ink_sac"
                },
                {
                    "item": "botania:rune_water"
                }
            ],
            "output": {
                "item": "bloodmagic:reagentwater"
            },
            "syphon": 500,
            "ticks": 10,
            "upgradeLevel": 2
        })
        //lava
    event.custom({
            "type": "bloodmagic:alchemytable",
            "input": [{
                    "item": "biomesoplenty:burning_blossom"
                },
                {
                    "item": "botania:quartz_blaze"
                },
                {
                    "tag": "forge:obsidian"
                },
                {
                    "item": "botania:rune_fire"
                }
            ],
            "output": {
                "item": "bloodmagic:reagentlava"
            },
            "syphon": 500,
            "ticks": 10,
            "upgradeLevel": 2
        })
        //air
    event.custom({
            "type": "bloodmagic:alchemytable",
            "input": [{
                    "item": "gtceu:air_bucket"
                },
                {
                    "item": "create:windmill_bearing"
                },
                {
                    "item": "botania:ender_air_bottle"
                },
                {
                    "item": "botania:rune_air"
                }
            ],
            "output": {
                "item": "bloodmagic:reagentair"
            },
            "syphon": 500,
            "ticks": 10,
            "upgradeLevel": 2
        })
        //miner
    event.custom({
            "type": "bloodmagic:alchemytable",
            "input": [{
                    "item": "botania:lens_mine"
                },
                {
                    "item": "gtceu:coal_dust"
                },
                {
                    "item": "minecraft:flint"
                },
                {
                    "item": "botania:rune_earth"
                }
            ],
            "output": {
                "item": "bloodmagic:reagentfastminer"
            },
            "syphon": 500,
            "ticks": 10,
            "upgradeLevel": 2
        })
        //void
    event.custom({
            "type": "bloodmagic:alchemytable",
            "input": [{
                    "item": "sophisticatedbackpacks:void_upgrade"
                },
                {
                    "item": "cataclysm:void_eye"
                },
                {
                    "item": "ae2:void_card"
                },
                {
                    "item": "botania:rune_winter"
                }
            ],
            "output": {
                "item": "bloodmagic:reagentvoid"
            },
            "syphon": 2000,
            "ticks": 40,
            "upgradeLevel": 3
        })
        //growth
    event.custom({
            "type": "bloodmagic:alchemytable",
            "input": [{
                    "item": "gtceu:fertilizer"
                },
                {
                    "item": "create:tree_fertilizer"
                },
                {
                    "item": "minecraft:bone_meal"
                },
                {
                    "item": "botania:rune_spring"
                }
            ],
            "output": {
                "item": "bloodmagic:reagentgrowth"
            },
            "syphon": 2000,
            "ticks": 40,
            "upgradeLevel": 3
        })
        //holding
    event.custom({
            "type": "bloodmagic:alchemytable",
            "input": [{
                    "item": "create:railway_casing"
                },
                {
                    "item": "botania:lens_piston"
                },
                {
                    "item": "minecraft:chest_minecart"
                },
                {
                    "item": "botania:rune_summer"
                }
            ],
            "output": {
                "item": "bloodmagic:reagentholding"
            },
            "syphon": 2000,
            "ticks": 40,
            "upgradeLevel": 3
        })
        //sight
    event.custom({
            "type": "bloodmagic:alchemytable",
            "input": [{
                    "item": "minecraft:spyglass"
                },
                {
                    "item": "botania:cosmetic_engineer_goggles"
                },
                {
                    "item": "minecraft:ender_pearl"
                },
                {
                    "item": "botania:rune_autumn"
                }
            ],
            "output": {
                "item": "bloodmagic:reagentsight"
            },
            "syphon": 500,
            "ticks": 40,
            "upgradeLevel": 3
        })
        //magnetism
    event.custom({
            "type": "bloodmagic:alchemytable",
            "input": [{
                    "item": "sophisticatedbackpacks:magnet_upgrade"
                },
                {
                    "item": "enderio:electromagnet"
                },
                {
                    "item": "alexscaves:scarlet_magnet"
                },
                {
                    "item": "alexscaves:azure_magnet"
                },
                {
                    "item": "botania:rune_greed"
                }
            ],
            "output": {
                "item": "bloodmagic:reagentmagnetism"
            },
            "syphon": 4000,
            "ticks": 80,
            "upgradeLevel": 4
        })
        //bloodlight
    event.custom({
            "type": "bloodmagic:alchemytable",
            "input": [{
                    "tag": "forge:dusts/glowstone"
                },
                {
                    "item": "bloodmagic:tauoil"
                },
                {
                    "item": "botania:terra_sword"
                },
                {
                    "item": "bloodmagic:life_essence_bucket"
                },
                {
                    "item": "botania:rune_wrath"
                }
            ],
            "output": {
                "item": "bloodmagic:reagentbloodlight"
            },
            "syphon": 4000,
            "ticks": 80,
            "upgradeLevel": 4
        })
        //binding
    event.custom({
            "type": "bloodmagic:alchemytable",
            "input": [{
                    "item": "bloodmagic:steadfastcrystal"
                },
                {
                    "item": "bloodmagic:corrosivecrystal"
                },
                {
                    "item": "bloodmagic:vengefulcrystal"
                },
                {
                    "item": "bloodmagic:destructivecrystal"
                },
                {
                    "item": "mythicbotany:asgard_rune"
                }
            ],
            "output": {
                "item": "bloodmagic:reagentbinding"
            },
            "syphon": 4000,
            "ticks": 80,
            "upgradeLevel": 4
        })
        //suppression
    event.custom({
            "type": "bloodmagic:alchemytable",
            "input": [{
                    "item": "bloodmagic:teleposer"
                },
                {
                    "item": "bloodmagic:reagentlava"
                },
                {
                    "item": "bloodmagic:reagentwater"
                },
                {
                    "item": "bloodmagic:reagentvoid"
                },
                {
                    "item": "bloodmagic:reagentholding"
                },
                {
                    "item": "bloodmagic:reagentmagnetism"
                }
            ],
            "output": {
                "item": "bloodmagic:reagentsuppression"
            },
            "syphon": 10000,
            "ticks": 160,
            "upgradeLevel": 5
        })
        //teleposition
    event.custom({
        "type": "bloodmagic:alchemytable",
        "input": [{
                "item": "bloodmagic:teleposer"
            },
            {
                "item": "bloodmagic:reagentair"
            },
            {
                "item": "bloodmagic:reagentfastminer"
            },
            {
                "item": "bloodmagic:reagentgrowth"
            },
            {
                "item": "bloodmagic:reagentsight"
            },
            {
                "item": "bloodmagic:reagentbloodlight"
            }
        ],
        "output": {
            "item": "bloodmagic:reagentteleposition"
        },
        "syphon": 10000,
        "ticks": 200,
        "upgradeLevel": 5
    })
})