//priority: 60

onEvent("recipes", recipesEvent => {

  let removeOutputList = [
    "better_diving:wetsuit_leggings",
    "better_diving:improved_wetsuit_leggings",
    "better_diving:reinforced_wetsuit_leggings",
    "better_diving:fins",
    "better_diving:ultra_glide_fins",
    "better_diving:reinforced_fins",
    "better_diving:standard_o2_tank",
    "better_diving:high_capacity_o2_tank",
    "better_diving:reinforced_o2_tank",
    "better_diving:diving_mask",
    "better_diving:rebreather",
    "better_diving:reinforced_diving_mask",
    "better_diving:power_cell",
    "better_diving:seamoth",
    "better_diving:titanium_ingot",
    "better_diving:copper_ingot",
    "better_diving:silver_ingot",
    "better_diving:lead_ingot",
    "better_diving:lithium_ingot",
    "better_diving:titanium_block",
    "better_diving:copper_block",
    "better_diving:silver_block",
    "better_diving:lead_block",
    "better_diving:lithium_block",
    "eidolon:pewter_blend",
    "simplyjetpacks:particle_none",
    "simplyjetpacks:particle_default",
    "simplyjetpacks:particle_smoke",
    "simplyjetpacks:particle_rainbow",
    "theoneprobe:probe",
    "theoneprobe:creativeprobe",
    "theoneprobe:probenote",
    "theoneprobe:diamond_helmet_probe",
    "theoneprobe:gold_helmet_probe",
    "theoneprobe:iron_helmet_probe",
    "aquaculture:neptunium_fillet_knife",
    "byg:emeraldite_shards",
    "byg:ametrine_gems",
    "byg:ametrine_block",
    "byg:ametrine_helmet",
    "byg:ametrine_chestplate",
    "byg:ametrine_leggings",
    "byg:ametrine_boots",
    "byg:ametrine_horse_armor",
    "byg:raw_pendorite_block",
    "byg:pendorite_block",
    "byg:raw_pendorite",
    "byg:pendorite_ingot",
    "byg:pendorite_scraps",
    "byg:pendorite_axe",
    "byg:pendorite_pickaxe",
    "byg:pendorite_sword",
    "byg:pendorite_battleaxe",
    "byg:pendorite_shovel",
    "byg:pendorite_hoe",
    "byg:pendorite_horse_armor",
    "spartanshields:shield_basic_platinum",
    "spartanshields:shield_tower_platinum",
    "minecraft:coarse_dirt",
    "subwild:dirt_slab",
    "subwild:dirt_stairs",
    "quark:dirt_bricks",
    "subwild:mossy_dirt",
    "farmersdelight:organic_compost",
    "armorplus:ardite_helmet",
    "armorplus:ardite_chestplate",
    "armorplus:ardite_leggings",
    "armorplus:ardite_boots",
    "armorplus:cobalt_helmet",
    "armorplus:cobalt_chestplate",
    "armorplus:cobalt_leggings",
    "armorplus:cobalt_boots",
    "armorplus:knight_slime_helmet",
    "armorplus:knight_slime_chestplate",
    "armorplus:knight_slime_leggings",
    "armorplus:knight_slime_boots",
    "armorplus:pig_iron_helmet",
    "armorplus:pig_iron_chestplate",
    "armorplus:pig_iron_leggings",
    "armorplus:pig_iron_boots",
    "armorplus:manyullyn_helmet",
    "armorplus:manyullyn_chestplate",
    "armorplus:manyullyn_leggings",
    "armorplus:manyullyn_boots",
    "create:andesite_alloy",
    "create:andesite_funnel",
    "create:andesite_tunnel"
  ];

  for (item of removeOutputList) {
    recipesEvent.remove({ output: item });
  }

  var shapedRecipes = [
    {
      "output": "better_diving:wetsuit_leggings",
      "pattern": [
        "RRR",
        "F F",
        "F F"
      ],
      "ingredients": {
        R: "thermal:cured_rubber",
        F: "better_diving:fiber_mesh"
      }
    },
    {
      "output": "better_diving:improved_wetsuit_leggings",
      "pattern": [
        "TTT",
        "FDF",
        "F F"
      ],
      "ingredients": {
        D: "better_diving:wetsuit_leggings",
        T: "thermal:tin_ingot",
        F: "thermal:diving_fabric"
      }
    },
    {
      "output": "better_diving:reinforced_wetsuit_leggings",
      "pattern": [
        "CCC",
        "IDI",
        "I I"
      ],
      "ingredients": {
        D: "better_diving:wetsuit_leggings",
        C: "minecraft:diamond",
        I: "thermal:invar_ingot"
      }
    },
    {
      "output": "better_diving:fins",
      "pattern": [
        "   ",
        "R R",
        "F F"
      ],
      "ingredients": {
        R: "thermal:cured_rubber",
        F: "better_diving:fiber_mesh"
      }
    },
    {
      "output": "better_diving:ultra_glide_fins",
      "pattern": [
        "   ",
        "F F",
        "TDT"
      ],
      "ingredients": {
        D: "better_diving:fins",
        T: "thermal:tin_ingot",
        F: "thermal:diving_fabric"
      }
    },
    {
      "output": "better_diving:reinforced_fins",
      "pattern": [
        "   ",
        "I I",
        "CDC"
      ],
      "ingredients": {
        D: "better_diving:fins",
        C: "minecraft:diamond",
        I: "thermal:invar_ingot"
      }
    },
    {
      "output": "better_diving:standard_o2_tank",
      "pattern": [
        " R ",
        "FTF",
        "FTF"
      ],
      "ingredients": {
        R: "thermal:cured_rubber",
        F: "better_diving:fiber_mesh",
        T: "thermal:tin_ingot"
      }
    },
    {
      "output": "better_diving:high_capacity_o2_tank",
      "pattern": [
        "I I",
        "ITI",
        "LLL"
      ],
      "ingredients": {
        T: "better_diving:standard_o2_tank",
        I: "minecraft:iron_ingot",
        L: "thermal:lead_ingot"
      }
    },
    {
      "output": "better_diving:reinforced_o2_tank",
      "pattern": [
        "I I",
        "ITI",
        "DDD"
      ],
      "ingredients": {
        T: "better_diving:standard_o2_tank",
        I: "thermal:invar_ingot",
        D: "minecraft:diamond"
      }
    },
    {
      "output": "better_diving:diving_mask",
      "pattern": [
        "   ",
        "FFF",
        "R R"
      ],
      "ingredients": {
        R: "thermal:cured_rubber",
        F: "better_diving:fiber_mesh"
      }
    },
    {
      "output": "better_diving:rebreather",
      "pattern": [
        "   ",
        "FFF",
        "TDT"
      ],
      "ingredients": {
        D: "better_diving:diving_mask",
        T: "thermal:tin_ingot",
        F: "thermal:diving_fabric"
      }
    },
    {
      "output": "better_diving:reinforced_diving_mask",
      "pattern": [
        "   ",
        "III",
        "CDC"
      ],
      "ingredients": {
        D: "better_diving:diving_mask",
        I: "thermal:invar_ingot",
        C: "minecraft:diamond"
      }
    },
    {
      "output": "better_diving:power_cell",
      "pattern": [
        " CT",
        "CPC",
        "TC "
      ],
      "ingredients": {
        C: "thermal:copper_ingot",
        T: "thermal:tin_ingot",
        P: "thermal:rf_potato"
      }
    },
    {
      "output": "better_diving:seamoth",
      "pattern": [
        "SPS",
        "GGG",
        "ILI"
      ],
      "ingredients": {
        S: "thermal:silver_ingot",
        P: "thermal:rf_potato",
        G: "thermal:obsidian_glass",
        I: "thermal:invar_block",
        L: "thermal:lead_block"
      }
    },
    {
      "output": "simplyjetpacks:thruster_te1",
      "pattern": [
        " P ",
        "PRP",
        "   "
      ],
      "ingredients": {
        P: "thermal:lead_plate",
        R: "#forge:dusts/redstone"
      }
    },
    {
      "output": "simplyjetpacks:thruster_te2",
      "pattern": [
        " P ",
        "PRP",
        "   "
      ],
      "ingredients": {
        P: "thermal:invar_plate",
        R: "#forge:dusts/redstone"
      }
    },
    {
      "output": "simplyjetpacks:thruster_te3",
      "pattern": [
        " P ",
        "PRP",
        "   "
      ],
      "ingredients": {
        P: "thermal:electrum_plate",
        R: "#forge:dusts/redstone"
      }
    },
    {
      "output": "simplyjetpacks:thruster_te4",
      "pattern": [
        " P ",
        "PRP",
        "   "
      ],
      "ingredients": {
        P: "thermal:enderium_plate",
        R: "#forge:dusts/redstone"
      }
    },
    {
      "output": "simplyjetpacks:jetpack_te1",
      "pattern": [
        " F ",
        "LSL",
        "T T"
      ],
      "ingredients": {
        F: "thermal:rf_coil",
        L: "thermal:lead_plate",
        S: "simplyjetpacks:leather_strap",
        T: "simplyjetpacks:thruster_te1"
      }
    },
    {
      "output": "simplyjetpacks:jetpack_te2",
      "pattern": [
        " C ",
        "PJP",
        "T T"
      ],
      "ingredients": {
        C: "thermal:upgrade_augment_1",
        P: "thermal:invar_plate",
        J: "simplyjetpacks:jetpack_te1",
        T: "simplyjetpacks:thruster_te2"
      }
    },
    {
      "output": "simplyjetpacks:jetpack_te3",
      "pattern": [
        " C ",
        "PJP",
        "T T"
      ],
      "ingredients": {
        C: "thermal:upgrade_augment_2",
        P: "thermal:electrum_plate",
        J: "simplyjetpacks:jetpack_te2",
        T: "simplyjetpacks:thruster_te3"
      }
    },
    {
      "output": "simplyjetpacks:jetpack_te4",
      "pattern": [
        " C ",
        "PJP",
        "T T"
      ],
      "ingredients": {
        C: "thermal:upgrade_augment_3",
        P: "thermal:enderium_plate",
        J: "simplyjetpacks:jetpack_te3",
        T: "simplyjetpacks:thruster_te4"
      }
    },
    {
      "output": "simplyjetpacks:particle_none",
      "pattern": [
        " G ",
        "GCG",
        " G "
      ],
      "ingredients": {
        G: "#forge:glass",
        C: "#minecraft:coals"
      }
    },
    {
      "output": "simplyjetpacks:particle_default",
      "pattern": [
        " T ",
        "TCT",
        " T "
      ],
      "ingredients": {
        T: "#chipped:torch",
        C: "#minecraft:coals"
      }
    },
    {
      "output": "simplyjetpacks:particle_smoke",
      "pattern": [
        " C ",
        "CCC",
        " C "
      ],
      "ingredients": {
        C: "#minecraft:coals"
      }
    },
    {
      "output": "simplyjetpacks:particle_rainbow",
      "pattern": [
        " R ",
        " C ",
        "G B"
      ],
      "ingredients": {
        R: "#forge:dyes/red",
        G: "#forge:dyes/green",
        B: "#forge:dyes/blue",
        C: "#minecraft:coals"
      }
    },
    {
      "output": "grapple_hooks:hook_stone",
      "pattern": [
        " S ",
        "SHS",
        " S "
      ],
      "ingredients": {
        H: "grapple_hooks:hook_wooden",
        S: "#forge:stone"
      }
    },
    {
      "output": "grapple_hooks:hook_iron",
      "pattern": [
        " I ",
        "IHI",
        " I "
      ],
      "ingredients": {
        H: "grapple_hooks:hook_stone",
        I: "#forge:ingots/iron"
      }
    },
    {
      "output": "grapple_hooks:hook_golden",
      "pattern": [
        " G ",
        "GHG",
        " G "
      ],
      "ingredients": {
        H: "grapple_hooks:hook_iron",
        G: "#forge:ingots/gold"
      }
    },
    {
      "output": "grapple_hooks:hook_diamond",
      "pattern": [
        " D ",
        "DHD",
        " D "
      ],
      "ingredients": {
        H: "grapple_hooks:hook_golden",
        D: "#forge:gems/diamond"
      }
    },
    {
      "output": "4x minecraft:coarse_dirt",
      "pattern": [
        "DG ",
        "GD ",
        "   ",
      ],
      "ingredients": {
        D: "#forge:dirt",
        G: "minecraft:gravel"
      }
    },
    {
      "output": "6x subwild:dirt_slab",
      "pattern": [
        "   ",
        "DDD",
        "   ",
      ],
      "ingredients": {
        D: "#forge:dirt"
      }
    },
    {
      "output": "4x subwild:dirt_stairs",
      "pattern": [
        "D  ",
        "DD ",
        "DDD",
      ],
      "ingredients": {
        D: "#forge:dirt"
      }
    },
    {
      "output": "4x quark:dirt_bricks",
      "pattern": [
        "CD ",
        "DD ",
        "   ",
      ],
      "ingredients": {
        C: "quark:cobblestone_bricks",
        D: "#forge:dirt"
      }
    },
    {
      "output": "armorplus:cobalt_helmet",
      "pattern": [
        "CCC",
        "C C",
        "   "
      ],
      "ingredients": {
        C: "tconstruct:cobalt_ingot"
      }
    },
    {
      "output": "armorplus:cobalt_chestplate",
      "pattern": [
        "C C",
        "CCC",
        "CCC"
      ],
      "ingredients": {
        C: "tconstruct:cobalt_ingot"
      }
    },
    {
      "output": "armorplus:cobalt_leggings",
      "pattern": [
        "CCC",
        "C C",
        "C C"
      ],
      "ingredients": {
        C: "tconstruct:cobalt_ingot"
      }
    },
    {
      "output": "armorplus:cobalt_boots",
      "pattern": [
        "C C",
        "C C",
        "   "
      ],
      "ingredients": {
        C: "tconstruct:cobalt_ingot"
      }
    },
    {
      "output": "armorplus:pig_iron_helmet",
      "pattern": [
        "PPP",
        "P P",
        "   "
      ],
      "ingredients": {
        P: "tconstruct:pig_iron_ingot"
      }
    },
    {
      "output": "armorplus:pig_iron_chestplate",
      "pattern": [
        "P P",
        "PPP",
        "PPP"
      ],
      "ingredients": {
        P: "tconstruct:pig_iron_ingot"
      }
    },
    {
      "output": "armorplus:pig_iron_leggings",
      "pattern": [
        "PPP",
        "P P",
        "P P"
      ],
      "ingredients": {
        P: "tconstruct:pig_iron_ingot"
      }
    },
    {
      "output": "armorplus:pig_iron_boots",
      "pattern": [
        "P P",
        "P P",
        "   "
      ],
      "ingredients": {
        P: "tconstruct:pig_iron_ingot"
      }
    },
    {
      "output": "armorplus:manyullyn_helmet",
      "pattern": [
        "MMM",
        "M M",
        "   "
      ],
      "ingredients": {
        M: "tconstruct:manyullyn_ingot"
      }
    },
    {
      "output": "armorplus:manyullyn_chestplate",
      "pattern": [
        "M M",
        "MMM",
        "MMM"
      ],
      "ingredients": {
        M: "tconstruct:manyullyn_ingot"
      }
    },
    {
      "output": "armorplus:manyullyn_leggings",
      "pattern": [
        "MMM",
        "M M",
        "M M"
      ],
      "ingredients": {
        M: "tconstruct:manyullyn_ingot"
      }
    },
    {
      "output": "armorplus:manyullyn_boots",
      "pattern": [
        "M M",
        "M M",
        "   "
      ],
      "ingredients": {
        M: "tconstruct:manyullyn_ingot"
      }
    },
    {
      "output": "create:andesite_alloy",
      "pattern": [
        "NI ",
        "IN ",
        "   "
      ],
      "ingredients": {
        N: "minecraft:iron_nugget",
        I: "#unearthed:igneous"
      }
    },
    {
      "output": "create:andesite_alloy",
      "pattern": [
        "NI ",
        "IN ",
        "   "
      ],
      "ingredients": {
        N: "create:zinc_nugget",
        I: "#unearthed:igneous"
      }
    },
    {
      "output": "create:andesite_funnel",
      "pattern": [
        "   ",
        "AKA",
        " K "
      ],
      "ingredients": {
        A: "create:andesite_alloy",
        K: "thermal:cured_rubber"
      }
    },
    {
      "output": "create:andesite_tunnel",
      "pattern": [
        "AA ",
        "KK ",
        "   "
      ],
      "ingredients": {
        A: "create:andesite_alloy",
        K: "thermal:cured_rubber"
      }
    }
  ];

  for (recipe of shapedRecipes) {
    let { output, pattern, ingredients } = recipe;
    recipesEvent.shaped(output, pattern, ingredients);
  }

  var shapelessRecipes = [
    {
      "input": [
        "thermal:tin_ingot",
        "thermal:lead_ingot"
      ],
      "output": "2x eidolon:pewter_blend"
    },
    {
      "input": [
        "9x environmental:koi"
      ],
      "output": "fish_in_planks:koi_barrel"
    },
    {
      "input": [
        "#forge:dirt",
        "2x minecraft:rotten_flesh",
        "2x farmersdelight:straw",
        "4x minecraft:bone_meal"
      ],
      "output": "farmersdelight:organic_compost",
    },
    {
      "input": [
        "#forge:dirt",
        "2x farmersdelight:straw",
        "2x minecraft:bone_meal",
        "4x farmersdelight:tree_bark"
      ],
      "output": "farmersdelight:organic_compost",
    },
    {
      "input": [
        "#forge:dirt",
        "minecraft:vine"
      ],
      "output": "subwild:mossy_dirt"
    },
    {
      "input": "unearthed:regolith",
      "output": "minecraft:dirt"
    }
  ]

  for (recipe of shapelessRecipes) {
    let { input, output } = recipe;
    recipesEvent.shapeless(output, input);
  }
});