onEvent('recipes', event => {

    function sequencedtag(input1, input2, input3, output, loops){
        event.custom(
            {
                "type": "create:sequenced_assembly",
                "ingredient": {
                  "item": input1
                },
                "transitionalItem": {
                  "item": 'kubejs:nothing_seed'
                },
                "sequence": [
                  {
                    "type": "create:deploying",
                    "ingredients": [
                      {
                        "item": 'kubejs:nothing_seed'
                      },
                      {
                        "tag": input2
                      }
                    ],
                    "results": [
                      {
                        "item": 'kubejs:nothing_seed'
                      }
                    ]
                  },
                  {
                    "type": "create:deploying",
                    "ingredients": [
                      {
                        "item": 'kubejs:nothing_seed'
                      },
                      {
                        "item": input3
                      }
                    ],
                    "results": [
                      {
                        "item": 'kubejs:nothing_seed'
                      }
                    ]
                  }
                ],
                "results": [
                  {
                    "item": output
                  }
                ],
                "loops": loops
              }
        )
    }
    function sequenceditem(input1, input2, input3, output, loops){
        event.custom(
            {
                "type": "create:sequenced_assembly",
                "ingredient": {
                  "item": input1
                },
                "transitionalItem": {
                  "item": 'kubejs:nothing_seed'
                },
                "sequence": [
                  {
                    "type": "create:deploying",
                    "ingredients": [
                      {
                        "item": 'kubejs:nothing_seed'
                      },
                      {
                        "item": input2
                      }
                    ],
                    "results": [
                      {
                        "item": 'kubejs:nothing_seed'
                      }
                    ]
                  },
                  {
                    "type": "create:deploying",
                    "ingredients": [
                      {
                        "item": 'kubejs:nothing_seed'
                      },
                      {
                        "item": input3
                      }
                    ],
                    "results": [
                      {
                        "item": 'kubejs:nothing_seed'
                      }
                    ]
                  }
                ],
                "results": [
                  {
                    "item": output
                  }
                ],
                "loops": loops
              }
        )
    }
    function arcfurnaceitem(input, amountinput, input2, input3, output, amountoutput, time, RFamount){
      event.custom(
        {"type":"immersiveengineering:arc_furnace","results":[{"count":amountoutput,"base_ingredient":{"item":output}}],"additives":[{"item":input2}, {"item":input3}],"input":{"count":amountinput,"base_ingredient":{"item":input}},"time":time,"energy":RFamount}
      )
    }
    function arcfurnacetag(input, amountinput, input2, input3, output, amountoutput, time, RFamount){
      event.custom(
        {"type":"immersiveengineering:arc_furnace","results":[{"count":amountoutput,"base_ingredient":{"item":output}}],"additives":[{"item":input2}, {"item":input3}],"input":{"count":amountinput,"base_ingredient":{"tag":input}},"time":time,"energy":RFamount}
      )
    }
    function runic(input1, input2, input3, output, mana){
      event.custom(
        {
          "type": "botania:runic_altar",
          "output": {
            "item": output
          },
          "mana": mana,
          "ingredients": [
            {
              "item": input1
            },
            {
              "item": input1
            },
            {
              "item": input1
            },
            {
              "item": input1
            },
            {
              "item": input2
            },
            {
              "item": input2
            },
            {
              "item": input2
            },
            {
              "item": input2
            },
            {
              "item": input3
            }
          ]
        }
      )
    }
    function runic2(input1, input2, input3, output, mana){
      event.custom(
        {
          "type": "botania:runic_altar",
          "output": {
            "item": output
          },
          "mana": mana,
          "ingredients": [
            {
              "item": input1
            },
            {
              "item": input1
            },
            {
              "item": input1
            },
            {
              "item": input1
            },
            {
              "item": input1
            },
            {
              "item": input2
            },
            {
              "item": input2
            },
            {
              "item": input2
            },
            {
              "item": input2
            },
            {
              "item": input2
            },
            {
              "item": input3
            }
          ]
        }
      )
    }

    //tier1
    event.custom(
        {
            "type": "create:sequenced_assembly",
            "ingredient": {
              "item": 'mysticalagriculture:prosperity_seed_base'
            },
            "transitionalItem": {
              "item": 'kubejs:nothing_seed'
            },
            "sequence": [
              {
                "type": "create:deploying",
                "ingredients": [
                  {
                    "item": 'kubejs:nothing_seed'
                  },
                  {
                    "item": 'mysticalagriculture:inferium_block'
                  }
                ],
                "results": [
                  {
                    "item": 'kubejs:nothing_seed'
                  }
                ]
              }
            ],
            "results": [
              {
                "item": 'mysticalagriculture:inferium_seeds'
              }
            ],
            "loops": 15
          }
    )
    sequencedtag('mysticalagriculture:prosperity_seed_base', 'minecraft:logs', 'mysticalagriculture:inferium_essence', 'mysticalagriculture:wood_seeds', 10)
    sequencedtag('mysticalagriculture:prosperity_seed_base', 'forge:stone', 'mysticalagriculture:inferium_essence', 'mysticalagriculture:stone_seeds', 10)
    sequenceditem('mysticalagriculture:prosperity_seed_base', 'minecraft:dirt', 'mysticalagriculture:inferium_essence', 'mysticalagriculture:dirt_seeds', 10)
    sequenceditem('mysticalagriculture:prosperity_seed_base', 'minecraft:ice', 'mysticalagriculture:inferium_essence', 'mysticalagriculture:ice_seeds', 10)

    //tier2
    sequenceditem('mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:mystical_flower_agglomeratio', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:mystical_flower_seeds', 15)
    sequenceditem('mysticalagriculture:prosperity_seed_base', 'immersiveengineering:dust_saltpeter', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:saltpeter_seeds', 15)
    sequencedtag('mysticalagriculture:prosperity_seed_base', 'forge:ingots/copper', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:copper_seeds', 15)
    sequencedtag('mysticalagriculture:prosperity_seed_base', 'forge:ingots/aluminum', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:aluminum_seeds', 15)
    sequencedtag('mysticalagriculture:prosperity_seed_base', 'forge:dusts/sulfur', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:sulfur_seeds', 15)
    sequenceditem('mysticalagriculture:prosperity_seed_base', 'appliedenergistics2:silicon', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:silicon_seeds', 15)
    sequenceditem('mysticalagriculture:prosperity_seed_base', 'minecraft:kelp', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:turtle_seeds', 15)
    sequencedtag('mysticalagriculture:prosperity_seed_base', 'tconstruct:slime_block', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:slime_seeds', 15)
    sequencedtag('mysticalagriculture:prosperity_seed_base', 'minecraft:fishes', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:fish_seeds', 15)
    sequencedtag('mysticalagriculture:prosperity_seed_base', 'minecraft:wool', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:sheep_seeds', 15)
    sequencedtag('mysticalagriculture:prosperity_seed_base', 'minecraft:coals', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:coal_seeds', 15)
    sequenceditem('mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:honey_agglomeratio', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:honey_seeds', 15)
    sequenceditem('mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:coral_agglomeratio', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:coral_seeds', 15)
    sequenceditem('mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:nether_agglomeratio', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:nether_seeds', 15)
    sequenceditem('mysticalagriculture:prosperity_seed_base', 'excompressum:squid_bait', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:squid_seeds', 15)
    sequenceditem('mysticalagriculture:prosperity_seed_base', 'minecraft:leather', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:cow_seeds', 15)
    sequenceditem('mysticalagriculture:prosperity_seed_base', 'tconstruct:pig_iron_nugget', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:pig_seeds', 15)
    sequenceditem('mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:dye_agglomeratio', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:dye_seeds', 15)
    sequenceditem('mysticalagriculture:prosperity_seed_base', 'minecraft:feather', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:chicken_seeds', 15)
    sequenceditem('mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:nature_agglomeratio', 'mysticalagriculture:prudentium_essence', 'mysticalagriculture:nature_seeds', 15)

    //tier3
    arcfurnaceitem('minecraft:bone', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:skeleton_seeds', 1, 200, 170000)
    arcfurnaceitem('minecraft:rotten_flesh', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:zombie_seeds', 1, 200, 170000)
    arcfurnaceitem('minecraft:gunpowder', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:creeper_seeds', 1, 200, 170000)
    arcfurnaceitem('minecraft:prismarine_shard', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:prismarine_seeds', 1, 200, 170000)
    arcfurnacetag('forge:ingots/lead', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:lead_seeds', 1, 200, 170000)
    arcfurnacetag('forge:ingots/silver', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:silver_seeds', 1, 200, 170000)
    arcfurnaceitem('create:brass_ingot', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:brass_seeds', 1, 200, 170000)
    arcfurnacetag('forge:ingots/zinc', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:zinc_seeds', 1, 200, 170000)
    arcfurnaceitem('mekanism:ingot_bronze', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:bronze_seeds', 1, 200, 170000)
    arcfurnacetag('forge:gems/certus_quartz', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:certus_quartz_seeds', 1, 200, 170000)
    arcfurnaceitem('appliedenergistics2:sky_stone_block', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:sky_stone_seeds', 1, 200, 170000)
    arcfurnaceitem('botania:manasteel_ingot', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:manasteel_seeds', 1, 200, 170000)
    arcfurnaceitem('tconstruct:pig_iron_ingot', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:pig_iron_seeds', 1, 200, 170000)
    arcfurnaceitem('tconstruct:slimesteel_ingot', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:slimesteel_seeds', 1, 200, 170000)
    arcfurnaceitem('tconstruct:tinkers_bronze_ingot', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:tinkers_bronze_seeds', 1, 200, 170000)
    arcfurnaceitem('minecraft:string', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:spider_seeds', 1, 200, 170000)
    arcfurnaceitem('minecraft:rabbit_hide', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:rabbit_seeds', 1, 200, 170000)
    arcfurnacetag('forge:ingots/tin', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:tin_seeds', 1, 200, 170000)
    arcfurnaceitem('minecraft:obsidian', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:obsidian_seeds', 1, 200, 170000)
    arcfurnaceitem('minecraft:glowstone', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:glowstone_seeds', 1, 200, 170000)
    arcfurnaceitem('minecraft:iron_ingot', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:iron_seeds', 1, 200, 170000)
    arcfurnaceitem('minecraft:redstone', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:redstone_seeds', 1, 200, 170000)
    arcfurnaceitem('minecraft:quartz', 20, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:tertium_block', 'mysticalagriculture:nether_quartz_seeds', 1, 200, 170000)

    //tier4
    arcfurnaceitem('minecraft:ghast_tear', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:ghast_seeds', 1, 400, 400000)
    arcfurnaceitem('minecraft:ender_pearl', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:enderman_seeds', 1, 400, 400000)
    arcfurnaceitem('mekanism:ingot_osmium', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:osmium_seeds', 1, 400, 400000)
    arcfurnacetag('forge:ingots/nickel', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:nickel_seeds', 1, 400, 400000)
    arcfurnaceitem('botania:elementium_ingot', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:elementium_seeds', 1, 400, 400000)
    arcfurnacetag('forge:ingots/steel', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:steel_seeds', 1, 400, 400000)
    arcfurnaceitem('tconstruct:rose_gold_ingot', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:rose_gold_seeds', 1, 400, 400000)
    arcfurnaceitem('tconstruct:cobalt_ingot', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:cobalt_seeds', 1, 400, 400000)
    arcfurnaceitem('immersiveengineering:ingot_hop_graphite', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:hop_graphite_seeds', 1, 400, 400000)
    arcfurnaceitem('immersiveengineering:ingot_constantan', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:constantan_seeds', 1, 400, 400000)
    arcfurnacetag('forge:ingots/uranium', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:uranium_seeds', 1, 400, 400000)
    arcfurnaceitem('minecraft:lapis_lazuli', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:lapis_lazuli_seeds', 1, 400, 400000)
    arcfurnacetag('appliedenergistics2:crystals/fluix', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:fluix_seeds', 1, 400, 400000)
    arcfurnaceitem('immersiveengineering:ingot_electrum', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:electrum_seeds', 1, 400, 400000)
    arcfurnaceitem('mekanism:ingot_refined_obsidian', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:refined_obsidian_seeds', 1, 400, 400000)
    arcfurnaceitem('minecraft:gold_ingot', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:gold_seeds', 1, 400, 400000)
    arcfurnaceitem('mekanism:ingot_refined_glowstone', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:refined_glowstone_seeds', 1, 400, 400000)
    arcfurnaceitem('mekanism:fluorite_gem', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:fluorite_seeds', 1, 400, 400000)
    arcfurnaceitem('tconstruct:blaze_head', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:blaze_seeds', 1, 400, 400000)
    arcfurnaceitem('minecraft:enchanting_table', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:experience_seeds', 1, 400, 400000)
    arcfurnaceitem('minecraft:end_stone', 25, 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:imperium_block', 'mysticalagriculture:end_seeds', 1, 400, 400000)

    //tier5
    runic('botania:terrasteel_block', 'mysticalagriculture:supremium_block', 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:terrasteel_seeds', 250000)
    runic('minecraft:diamond_block', 'mysticalagriculture:supremium_block', 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:diamond_seeds', 250000)
    runic('minecraft:emerald_block', 'mysticalagriculture:supremium_block', 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:emerald_seeds', 250000)
    runic('minecraft:netherite_block', 'mysticalagriculture:supremium_block', 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:netherite_seeds', 250000)
    runic('kubejs:wither_bone_block', 'mysticalagriculture:supremium_block', 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:wither_skeleton_seeds', 250000)
    runic('tconstruct:manyullyn_block', 'mysticalagriculture:supremium_block', 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:manyullyn_seeds', 250000)
    runic('tconstruct:queens_slime_block', 'mysticalagriculture:supremium_block', 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:queens_slime_seeds', 250000)
    runic('tconstruct:hepatizon_block', 'mysticalagriculture:supremium_block', 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:hepatizon_seeds', 250000)

    //tier6
    runic2('minecraft:dragon_breath', 'mysticalagradditions:insanium_block', 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:dragon_egg_seeds', 500000)
    runic2('minecraft:nether_star', 'mysticalagradditions:insanium_block', 'mysticalagriculture:prosperity_seed_base', 'mysticalagriculture:nether_star_seeds', 500000)
})