//priority: 10
//Create Live 5 Custom Recipes
//Author: Blizzor

let hideItemsFromEMI = [
  "vintageimprovements:calorite_rod",
  "vintageimprovements:ostrum_rod",
  "vintageimprovements:desh_rod",
  "vintageimprovements:calorite_wire",
  "vintageimprovements:ostrum_wire",
  "vintageimprovements:desh_wire",
  "vintageimprovements:calorite_spring",
  "vintageimprovements:ostrum_spring",
  "vintageimprovements:desh_spring",
  "vintageimprovements:small_calorite_spring",
  "vintageimprovements:small_ostrum_spring",
  "vintageimprovements:small_desh_spring",
  "toms_storage:ts.inventory_connector",
  "toms_storage:ts.trim",
  "toms_storage:ts.painted_trim",
  "toms_storage:ts.open_crate",
  "toms_storage:ts.inventory_cable",
  "toms_storage:ts.inventory_cable_framed",
  "toms_storage:ts.inventory_cable_connector",
  "toms_storage:ts.inventory_cable_connector_filtered",
  "toms_storage:ts.inventory_cable_connector_framed",
  "toms_storage:ts.inventory_proxy",
  "toms_storage:ts.inventory_hopper_basic",
  "toms_storage:ts.level_emitter",
  "toms_storage:ts.paint_kit",
  "toms_storage:ts.wireless_terminal",
  "toms_storage:ts.adv_wireless_terminal",
  "toms_storage:ts.item_filter",
  "toms_storage:ts.polymorphic_item_filter",
  "toms_storage:ts.tag_item_filter",
  "createdeco:andesite_sheet",
  "createdeco:zinc_sheet",
  "createdeco:industrial_iron_sheet",
  "minecraft:coal_ore",
  "minecraft:deepslate_coal_ore",
  "minecraft:iron_ore",
  "minecraft:deepslate_iron_ore",
  "minecraft:copper_ore",
  "minecraft:deepslate_copper_ore",
  "minecraft:gold_ore",
  "minecraft:deepslate_gold_ore",
  "minecraft:redstone_ore",
  "minecraft:deepslate_redstone_ore",
  "minecraft:emerald_ore",
  "minecraft:deepslate_emerald_ore",
  "minecraft:lapis_ore",
  "minecraft:deepslate_lapis_ore",
  "minecraft:diamond_ore",
  "minecraft:deepslate_diamond_ore",
  "minecraft:nether_gold_ore",
  "minecraft:nether_quartz_ore",
  "create:zinc_ore",
  "create:deepslate_zinc_ore",
  "create:zinc_ore",
  "create_dd:deepslate_tin_ore",
  "create_dd:tin_ore",
  "create_new_age:thorium_ore",
  "create_new_age:reactor_casing",
  "create_new_age:reactor_rod",
  "create_new_age:reactor_glass",
  "create_new_age:reactor_fuel_acceptor",
  "create_new_age:reactor_heat_vent",
  "skyblockbuilder:structure_saver",
  "skyblockbuilder:spawn_block",
  "create_dd:copycat_block",
  "create_dd:copycat_slab",
  "create_connected:copycat_block",
  "create_connected:copycat_slab",
  "create_connected:copycat_beam",
  "create_connected:copycat_stairs",
  "create_connected:copycat_vertical_step",
  "create_connected:copycat_stairs",
  "create_connected:copycat_fence",
  "create_connected:copycat_fence_gate",
  "create_connected:copycat_wall",
  "create_connected:copycat_board",
  "create_connected:copycat_box",
  "create_connected:copycat_catwalk",
  "create_dd:infagranite",
  "create_dd:infaandesite",
  "create_dd:infacalcite",
  "create_dd:infatuff",
  "create_dd:infadripstone_block",
  "create_dd:infacoarse_dirt",
  "create_dd:infamud",
  "create_dd:infasand",
  "create_dd:infared_sand",
  "create_dd:infagravel",
  "create_dd:infaobsidian",
  "create_dd:infaice",
  "create_dd:infasnow_block",
  "create_dd:infasoul_sand",
  "create_dd:infaend_stone",
  "create_dd:infanetherrack",
  "create_dd:infamagma_block",
  "create_dd:infamoss_block",
];

let removeItemsByID = [
  "create_dd:filling/aethersite",
  "create_dd:filling/frozen_nugget",
  "create_dd:sequenced_assembly/stargaze_singularity",
  "create_dd:mechanical_crafting/shimmer_bucket",
  "minecraft:andesite",
  "minecraft:glass",
  "minecraft:granite",
  "minecraft:quartz_from_blasting",
  "create_sa:netherrack_recipe",
  "create_dd:mixing/caramel",
  "create_sa:quartz_gem_crushing",
  "create_new_age:energising/splash_water_bottle",
  "create_dd:acompat/create_mechanical_extruder/extruding/gabbro",
  "create_dd:acompat/create_mechanical_extruder/extruding/deepslate",
  "create_dd:acompat/create_mechanical_extruder/extruding/dripstone",
  "create_dd:acompat/create_mechanical_extruder/extruding/calcite",
  "create_dd:acompat/create_mechanical_extruder/extruding/scoria_milkshake",
  "create_dd:acompat/create_mechanical_extruder/extruding/scorchia",
  "create_dd:acompat/create_mechanical_extruder/extruding/potassic_cobble",
  "create_bic_bit:compat/oil_extruding",
  "create_dd:acompat/create_mechanical_extruder/extruding/asurine_cobble",
  "create_dd:acompat/create_mechanical_extruder/extruding/ochrum_cobble",
  "create_dd:acompat/create_mechanical_extruder/extruding/blackstone",
  "create_dd:acompat/create_mechanical_extruder/extruding/scoria",
  "create_dd:acompat/create_mechanical_extruder/extruding/veridium_cobble",
  "create_dd:acompat/create_mechanical_extruder/extruding/limestone",
  "create_mechanical_extruder:extruding/stone",
  "create:crushing/tuff_recycling",
  "create:crushing/veridium_recycling",
  "create:crushing/crimsite_recycling",
  "create:crushing/asurine_recycling",
  "create:crushing/ochrum_recycling",
  "create:crushing/tuff",
  "create:milling/gravel",
  "create_dd:mixing/mithril_ingot",
  "minecraft:netherite_ingot",
  "create:crafting/materials/andesite_alloy",
  "create:mixing/andesite_alloy",
  "create:milling/calcite",
  "create:smelting/scoria",
  "create_enchantment_industry:filling/experience_bottle_filling",
  "create_dd:emptying/sap_from_jungle_wood",
  "create_dd:emptying/sap_from_jungle_log",
  "create_dd:emptying/sap_from_dark_oak_wood",
  "create_dd:emptying/sap_from_dark_oak_log",
  "create_dd:emptying/sap_from_oak_wood",
  "create_dd:emptying/sap_from_oak_log",
  "create_dd:emptying/sap_from_acacia_wood",
  "create_dd:emptying/sap_from_acacia_log",
  "create_dd:emptying/sap_from_spruce_wood",
  "create_dd:emptying/sap_from_spruce_log",
  "create_dd:emptying/sap_from_rubber_wood",
  "create_dd:emptying/sap_from_rubber_log",
  "create_dd:superheating/crushed_raw_copper",
  "create_dd:crushing/potassic",
  "create_dd:crushing/potassic_recycling",
  "create:crushing/obsidian",
  "createdeco:iron_sheet_metal",
  "create_mechanical_spawner:mixing/enderman",
  "create_mechanical_spawner:mixing/blaze",
  "create:compacting/blaze",
  "create:crushing/diorite_recycling",
  "create:crushing/diorite",
  "createbigcannons:compacting/iron_to_cast_iron_ingot",
  "create:crafting/appliances/dough",
  "create:milling/sunflower",
  "createbigcannons:cutting/autocannon_cartridge_sheet_copper",
  "createbigcannons:cutting/autocannon_cartridge_sheet_gold",
  "createbigcannons:cutting/autocannon_cartridge_sheet_iron",
  "create_central_kitchen:sequenced_assembly/hamburger",
  "create_bic_bit:mixing/frying_oil_recipe",
  "create_bic_bit:mixing/frying_oil_recipe",
  "create_dd:crafting/diamond_shard_compacting",
  "create_dd:crafting/diamond_shard_from_decompacting",
  "vintageimprovements:pressing/andesite_alloy",
  "create_dd:mixing/hot_chocolate",
];

let removeItemsByInput = [
  "create_new_age:reactor_casing",
  "create_new_age:reactor_rod",
  "create_new_age:reactor_glass",
  "create_new_age:reactor_fuel_acceptor",
  "create_new_age:reactor_heat_vent",
  "create_new_age:nuclear_fuel",
  "minecraft:ancient_debris",
  "minecraft:coal_ore",
  "minecraft:deepslate_coal_ore",
  "minecraft:iron_ore",
  "minecraft:deepslate_iron_ore",
  "minecraft:copper_ore",
  "minecraft:deepslate_copper_ore",
  "minecraft:gold_ore",
  "minecraft:deepslate_gold_ore",
  "minecraft:redstone_ore",
  "minecraft:deepslate_redstone_ore",
  "minecraft:emerald_ore",
  "minecraft:deepslate_emerald_ore",
  "minecraft:lapis_ore",
  "minecraft:deepslate_lapis_ore",
  "minecraft:diamond_ore",
  "minecraft:deepslate_diamond_ore",
  "minecraft:nether_gold_ore",
  "minecraft:nether_quartz_ore",
  "create:zinc_ore",
  "create:deepslate_zinc_ore",
  "create:zinc_ore",
  "create_dd:deepslate_tin_ore",
  "create_dd:tin_ore",
  "create_new_age:thorium_ore",
  "minecraft:iron_horse_armor",
  "minecraft:golden_horse_armor",
  "minecraft:diamond_horse_armor",
  "create_dd:potassic_cobble",
  "create_dd:crimsite_cobble",
  "create_dd:ochrum_cobble",
  "create_dd:veridium_cobble",
  "create_dd:asurine_cobble",
];

let removeItemsByOutput = [
  "#travelersbackpack:sleeping_bags",
  "create:hand_crank",
  "minecraft:diorite",
  "create_new_age:reactor_casing",
  "create_new_age:reactor_rod",
  "create_new_age:reactor_glass",
  "create_new_age:reactor_fuel_acceptor",
  "create_new_age:reactor_heat_vent",
  "create_new_age:nuclear_fuel",
  "minecraft:ancient_debris",
  "minecraft:ender_eye",
  "kubejs:powdered_snow_bucket",
  "toms_storage:ts.inventory_connector",
  "toms_storage:ts.storage_terminal",
  "toms_storage:ts.trim",
  "toms_storage:ts.open_crate",
  "toms_storage:ts.inventory_cable",
  "toms_storage:ts.inventory_cable_framed",
  "toms_storage:ts.inventory_cable_connector",
  "toms_storage:ts.inventory_cable_connector_filtered",
  "toms_storage:ts.inventory_cable_connector_framed",
  "toms_storage:ts.inventory_proxy",
  "toms_storage:ts.crafting_terminal",
  "toms_storage:ts.inventory_hopper_basic",
  "toms_storage:ts.level_emitter",
  "toms_storage:ts.paint_kit",
  "toms_storage:ts.wireless_terminal",
  "toms_storage:ts.adv_wireless_terminal",
  "toms_storage:ts.item_filter",
  "toms_storage:ts.polymorphic_item_filter",
  "toms_storage:ts.tag_item_filter",
  "create_dd:potassic_cobble",
  "create_dd:crimsite_cobble",
  "create_dd:ochrum_cobble",
  "create_dd:veridium_cobble",
  "create_dd:asurine_cobble",
  "create:item_vault",
  "create:propeller",
  "create_sa:copper_jetpack_chestplate",
  "create_sa:andesite_jetpack_chestplate",
  "create_sa:brass_jetpack_chestplate",
  "create_things_and_misc:mending_rune",
  "create_connected:item_silo",
  "create_dd:infared_sand",
  "create_dd:infatuff",
  "create_dd:infasand",
  "create_dd:infaice",
  "create_dd:infaend_stone",
  "create_dd:infadripstone_block",
  "create_dd:infamagma_block",
  "create_dd:infacoarse_dirt",
  "create_dd:infasnow_block",
  "create_dd:infacalcite",
  "create_dd:infanetherrack",
  "create_dd:infamud",
  "create_dd:infasoul_sand",
  "create_dd:infared_sand",
  "create_dd:infagranite",
  "create_dd:infamoss_block",
  "create_dd:infagravel",
  "create_dd:infaobsidian",
  "create_dd:infaandesite",
  "create_dd:infared_sand",
  "createdeco:andesite_sheet",
  "createdeco:zinc_sheet",
  "createdeco:industrial_iron_sheet",
  "create_things_and_misc:powdered_obsidian_block",
  "minecraft:netherite_upgrade_smithing_template",
  "create_new_age:basic_solar_heating_plate",
  "create_new_age:advanced_solar_heating_plate",
  "minecraft:end_crystal",
  "create_new_age:stirling_engine",
  "create_sa:block_picker",
  "constructionwand:core_destruction",
  "constructionwand:infinity_wand",
  "create_new_age:heat_pump",
  "minecraft:sentry_armor_trim_smithing_template",
  "minecraft:vex_armor_trim_smithing_template",
  "minecraft:wild_armor_trim_smithing_template",
  "minecraft:coast_armor_trim_smithing_template",
  "minecraft:dune_armor_trim_smithing_template",
  "minecraft:wayfinder_armor_trim_smithing_template",
  "minecraft:raiser_armor_trim_smithing_template",
  "minecraft:shaper_armor_trim_smithing_template",
  "minecraft:host_armor_trim_smithing_template",
  "minecraft:ward_armor_trim_smithing_template",
  "minecraft:silence_armor_trim_smithing_template",
  "minecraft:tide_armor_trim_smithing_template",
  "minecraft:snout_armor_trim_smithing_template",
  "minecraft:rib_armor_trim_smithing_template",
  "minecraft:eye_armor_trim_smithing_template",
  "minecraft:spire_armor_trim_smithing_template",
  "create_sa:vault_component",
  "create:crushed_raw_tin",
  "create_new_age:redstone_magnet",
  "create_new_age:layered_magnet",
  "create_new_age:fluxuated_magnetite",
  "create_new_age:netherite_magnet",
  "create_dd:copycat_block",
  "create_dd:copycat_slab",
  "farmersdelight:organic_compost",
];

ServerEvents.tags("item", (event) => {
  hideItemsFromEMI.forEach((item) =>
    event.add("c:hidden_from_recipe_viewers", item)
  );
});

ServerEvents.recipes((event) => {
  event.remove({ mod: "create_power_loader" });

  removeItemsByID.forEach((item) => event.remove({ id: item }));
  removeItemsByInput.forEach((item) => event.remove({ input: item }));
  removeItemsByOutput.forEach((item) => event.remove({ output: item }));

  event.replaceInput(
    { input: "createdeco:andesite_sheet" },
    "createdeco:andesite_sheet",
    "create_dd:andesite_sheet"
  );
  event.replaceInput(
    { input: "createdeco:zinc_sheet" },
    "createdeco:zinc_sheet",
    "create_dd:zinc_sheet"
  );
  event.replaceInput(
    { input: "createdeco:industrial_iron_sheet" },
    "createdeco:industrial_iron_sheet",
    "create_dd:industrial_iron_sheet"
  );
});
