// priority: 200

global.idsToRemove = new Set([
    'palmon:crafting/shapeless/plank_from_wood',
    'sophisticatedbackpacks:backpack',
    'botania:mana_infusion/mana_cookie',
    'sophisticatedbackpacks:iron_backpack',
    'sophisticatedbackpacks:iron_backpack_from_copper',
    'quark:building/crafting/furnaces/deepslate_furnace',
    'nethersdelight:blackstone_furnace',
    'quark:building/crafting/furnaces/blackstone_furnace',
    'palmon:crafting/shaped/processing_station',
    'palmon:crafting/shaped/production_machine',
    'ad_astra:nasa_workbench',
    'ad_astra:steel_engine',
    'ad_astra:steel_tank',
    'ad_astra:alloying/steel_ingot_from_alloying_iron_ingot_and_coals',
    'ad_astra:nasa_workbench/tier_2_rocket_from_nasa_workbench',
    'botania:petal_apothecary/entropinnyum',
    'computercraft:computer_command',
    'thermal:machines/press/press_enderium_ingot_to_coin',
    'thermal:machines/press/press_enderium_nugget_to_coin',
    'tconstruct:smeltery/casting/metal/enderium/coin_gold_cast',
    'tconstruct:smeltery/casting/metal/enderium/coin_sand_cast',
    'thermal:machines/press/press_signalum_ingot_to_coin',
    'thermal:machines/press/press_signalum_nugget_to_coin',
    'tconstruct:smeltery/casting/metal/signalum/coin_gold_cast',
    'tconstruct:smeltery/casting/metal/signalum/coin_sand_cast',
    'thermal:machines/press/press_lumium_ingot_to_coin',
    'thermal:machines/press/press_lumium_nugget_to_coin',
    'tconstruct:smeltery/casting/metal/lumium/coin_gold_cast',
    'tconstruct:smeltery/casting/metal/lumium/coin_sand_cast',
    'thermal:machines/press/press_netherite_ingot_to_coin',
    'tconstruct:smeltery/casting/metal/netherite/coin_gold_cast',
    'tconstruct:smeltery/casting/metal/netherite/coin_sand_cast',
    'botania:alfheim_portal',
    'create:crafting/materials/andesite_alloy',
    'create:crafting/materials/andesite_alloy_from_zinc',
    'create:mixing/andesite_alloy',
    'create:mixing/andesite_alloy_from_zinc',
    'tconstruct:compat/create/andesite_alloy_iron',
    'tconstruct:compat/create/andesite_alloy_zinc',
    'thermal:compat/create/smelter_create_alloy_andesite_alloy',
    'create:item_application/brass_casing_from_log',
    'create:item_application/brass_casing_from_wood',
    'create:item_application/brass_casing_from_log_using_deployer',
    'create:item_application/brass_casing_from_wood_using_deployer',
    'mekanism:bin/basic',
    'mekanism:bin/advanced',
    'mekanism:bin/elite',
    'mekanism:bin/ultimate',
    'mekanism_extras:bin/absolute',
    'mekanism_extras:bin/supreme',
    'mekanism_extras:bin/cosmic',
    'mekanism_extras:bin/infinite',
    'tfc_ie_addon:anvil/hammer_head',
    'tfc_ie_addon:anvil/wirecutter_head',
    'tconstruct:tables/crafting_station_from_logs',
    'tconstruct:tables/crafting_station',
    'tconstruct:tables/tinker_station',
    'tconstruct:tables/part_builder',
    'embers:mechanical_core',
    'embers:ember_activator',
    'embers:melter',
    'embers:stamper',
    'embers:alchemy_tablet',
    'integratedterminals:crafting/part_terminal_storage',
    'compactmachines:wall',
    'oceanworld:sea_key',
    'botania:fertilizer_dye',
    'botania:apothecary_default',
    'botania:apothecary_forest',
    'botania:apothecary_plains',
    'botania:apothecary_mountain',
    'botania:apothecary_fungal',
    'botania:apothecary_swamp',
    'botania:apothecary_desert',
    'botania:apothecary_taiga',
    'botania:apothecary_mesa',
    'botania:apothecary_mossy',
    'botania:apothecary_livingrock',
    'botania:apothecary_deepslate',
    'botania:pure_daisy/livingrock',
    'botania:pure_daisy/livingwood',
    'botania:mana_pool',
    'ae2:network/blocks/inscribers',
    'jaopcaextras:inscriber.circuit.fluix',
    'jaopcaextras:inscriber.processor.fluix',
    'industrialforegoing:machine_frame_pity',
    'ad_astra:cryo_freezer',
    'jaopcaextras:inscriber.circuit.calorite',
    'cobblefordays:tier_1',
    'cobblefordays:tier_2',
    'cobblefordays:tier_3',
    'cobblefordays:tier_4',
    'cobblefordays:tier_5',
    'nuclearcraft:manufactory',
    'ars_nouveau:imbuement_chamber',
    'ars_nouveau:novice_spell_book',
    'ars_nouveau:apprentice_spell_book_upgrade',
    'ars_nouveau:ritual_brazier',
    'tfc:crafting/vanilla/crafting_table',
    'draconicevolution:components/draconium_core',
    'draconicevolution:components/wyvern_energy_core',
    'draconicevolution:compress/draconium_block',
    'botania:elven_trade/elementium',
    'industrialforegoing:mob_slaughter_factory',
    'industrialforegoing:fluid_laser_base',
    'industrialforegoing:dissolution_chamber/supreme_machine_frame',
    'occultism:crafting/chalk_red_impure',
    'ad_astra:nasa_workbench/tier_3_rocket_from_nasa_workbench',
    'thermal:machine_frame',
    'modularrouters:modular_router',
    'sfm:cable',
    'sfm:manager',
    'fluxnetworks:fluxcore',
    'rftoolsbase:machine_frame',
    'malum:spirit_infusion/runic_workbench',
    'malum:spirit_infusion/void_tablet',
    'malum:spirit_altar',
    'forestry:sturdy_machine',
    'forestry:carpenter',
    'forestry:squeezer',
    'forestry:carpenter/hardened_casing',
    'forestry:fabricator/electron_tubes/flexible_casing',
    'jaopcaextras:inscriber.processor.calorite',
    'industrialforegoing:enchantment_factory',
    'industrialforegoing:enchantment_extractor',
    'industrialforegoing:enchantment_applicator',
    'industrialforegoing:ore_laser_base',
    'industrialforegoing:potion_brewer',
    'industrialforegoing:marine_fisher',
    'industrialforegoing:material_stonework_factory',
    'tiab:time_in_a_bottle',
    'integrateddynamics:crafting/logic_director',
    'rftoolsutility:flight_module',
    'botanicalmachinery:mana_emerald_block_decompress',
    'botanicalmachinery:mana_infusion/mana_emerald_block',
    'hostilenetworks:prediction_matrix',
    'deeperdarker:reinforced_echo_shard',
    'nuclearcraft:fusion_reactor_casing',
    'mythicbotany:rune_holder',
    'mythicbotany:central_rune_holder',
    'mythicbotany:kvasir_mead',
    'aetherworks:metal_former_block',
    'aetherworks:alchemy/aether_amalgam',
    'dustandash:crafting/ionizer',
    'nuclearcraft:rock_crusher/ancient_debris',
    'expatternprovider:water_cell',
    'expatternprovider:cobblestone_cell',
    'techreborn:crafting_table/parts/energy_flow_chip',
    'techreborn:crafting_table/parts/data_storage_chip',
    'techreborn:crafting_table/parts/data_storage_core',
    'mekanism:steel_casing',
    'mekanism:metallurgic_infusing/alloy/infused',
    'mekanism:control_circuit/basic',
    'draconicevolution:awakened_draconium_block',
    'mekanismgenerators:fission_reactor/casing',
    'mekanismgenerators:fission_reactor/fuel_assembly',
    'mekanism:isotopic_centrifuge',
    'mekanism:chemical_infuser',
    'mekanism:chemical_oxidizer',
    'mekanism:electrolytic_separator',
    'mekanism:configurator',
    'mekanism:transmitter/logistical_transporter/basic',
    'techreborn:crafting_table/machine_block/basic_machine_casing',
    'techreborn:crafting_table/machine_block/basic_machine_casing_alt',
    'techreborn:crafting_table/machine_block/advanced_machine_casing_alt',
    'techreborn:crafting_table/machine_block/industrial_machine_casing_alt',
    'tinkers_advanced:table/resonance_crystal',
    'tinkers_advanced:table/voltaic_crystal',
    'sophisticatedbackpacks:feeding_upgrade',
    'sophisticatedbackpacks:advanced_feeding_upgrade',
    'sophisticatedstorage:backpack_feeding_upgrade_from_storage_feeding_upgrade',
    'sophisticatedstorage:backpack_advanced_feeding_upgrade_from_storage_advanced_feeding_upgrade',
    'sophisticatedstorage:advanced_feeding_upgrade',
    'sophisticatedstorage:feeding_upgrade',
    'sophisticatedstorage:storage_advanced_feeding_upgrade_from_backpack_advanced_feeding_upgrade',
    'sophisticatedstorage:storage_feeding_upgrade_from_backpack_feeding_upgrade',
    'ae2things:cells/disk_drive_256k',
    'ae2things:cells/disk_drive_64k',
    'ae2things:cells/disk_drive_16k',
    'ae2things:cells/disk_drive_4k',
    'ae2things:cells/disk_drive_1k',
    'ae2things:cells/disk_housing',
    'techreborn:crafting_table/machine/iron_furnace',
    'forestry:ingot_bronze_alloying',
    'tfc:crafting/blast_furnace',
    'tfc:crafting/bloomery',
    'thermal:machines/press/unpacking/press_wheat_unpacking',
    'sakura:lumber_bamboo',
    'sakura:papers_from_lumbers',
    'nuclearcraft:alloy_smelter',
    'dustandash:crafting/iron_nugget',
    'tconstruct:smeltery/casting/metal/iron/nugget_sand_cast',
    'tconstruct:smeltery/casting/metal/iron/nugget_gold_cast',
    'cookingforblockheads:sink',
    'jaopca:thermal_expansion.material_to_plate.cast_iron',
    'tconstruct:smeltery/melting/metal/iron/nugget_3',
    'tconstruct:smeltery/melting/metal/gold/powered_rail',
    'tconstruct:smeltery/melting/metal/iron/ingot_1',
    'nuclearcraft:manufactory/ender_pearl',
    'jaopca:thermal_expansion.material_to_gear.cast_iron',
    'jaopca:thermal_expansion.material_to_storage_block.cast_iron',
    'create:crafting/kinetics/belt_connector',
    'tconstruct:tables/tinkers_anvil',
    'tconstruct:tables/scorched_anvil',
    'industrialforegoing:dissolution_chamber/speed_addon_2',
    'industrialforegoing:dissolution_chamber/efficiency_addon_2',
    'industrialforegoing:dissolution_chamber/processing_addon_2',
    'botanicalmachinery:mana_infusion/mana_emerald',
    'botania:elven_trade/elementium_block',
    'sophisticatedstorage:backpack_stack_upgrade_omega_tier_from_storage_stack_upgrade_omega_tier',
    'sophisticatedbackpacks:stack_upgrade_omega_tier',
    'sophisticatedstorage:storage_stack_upgrade_omega_tier_from_backpack_stack_upgrade_omega_tier',
    'sophisticatedstorage:stack_upgrade_omega_tier',
    'avaritia:sculk_crafting_table',
    'techreborn:crafting_table/parts/iridium_neutron_reflector',
    'techreborn:crafting_table/machine/fusion_coil',
    'techreborn:crafting_table/machine/fusion_control_computer',
    'mekanism:thermal_evaporation/block',
    'mekanism_extras:infusion_conversion/radiance/from_dust',
    'mekanism_extras:enriching/enriched/dust_radiance',
    'nuclearcraft:crystallizer/uranium_oxide',
    'packagedauto:package_component',
    'packagedauto:me_package_component',
    'avaritia:neutron_collector',
    'avaritia:neutron_compressor',
    'mekanism_extras:processing/enriched_spectrum/from_enriched_shining',
    'mekanism:mekasuit_helmet',
    'mekanism:mekasuit_bodyarmor',
    'mekanism:mekasuit_pants',
    'mekanism:mekasuit_boots',
    'bfr:reactor/frame',
    'mekanism:fluidic_plenisher',
    'mekanism_extras:upgrade/filter',
    'avaritia:record_fragment',
    'nuclearcraft:irradiator/ingots_platinum',
    'mekanism_extras:naquadah_reactor/controller',
    'nuclearcraft:chamber_terminal',
    'mekanismgenerators:reactor/controller',
    'mekanismgenerators:reactor/frame',
    'avaritia:ultimate_stew',
    'avaritia:cosmic_meatballs',
    'avaritia:infinity_catalyst_eternal',
    'avaritia:mek_creative_bin',
    'avaritia:botania_mana_tablet',
    'avaritia:de_creative_capacitor',
    'avaritia:de_creative_op_capacitor',
    'avaritia:mek_creative_energy_cube',
    'mekanism_extras:expand_radioactive_waste_barrel',
    'avaritia:tc3_creative_slot_upgrades',
    'avaritia:tc3_creative_slot_souls',
    'avaritia:tc3_creative_slot_ability',
    'avaritia:tc3_creative_slot_defense',
    'avaritia:mek_creative_chemical_tank',
    'appbot:mana_cell_housing',
    'avaritia:botania_creative_pool',
    'avaritia:mek_creative_fluid_tank',
    'avaritia:infinity_helmet',
    'avaritia:infinity_chestplate',
    'avaritia:infinity_pants',
    'avaritia:infinity_boots',
    'slashblade:kanze_masamune',
    'botania:flighttiara_0',
    'tinkers_advanced:compat/ae2/printed_calculation_processor',
    'tinkers_advanced:compat/ae2/printed_engineering_processor',
    'tinkers_advanced:compat/ae2/printed_logic_processor',
    'tinkers_advanced:compat/ae2/printed_silicon',
    'tinkers_advanced:compat/ae2/tinkers_calibration/printed_engineering_processor',
    'tinkers_advanced:compat/ae2/tinkers_calibration/printed_silicon',
    'jaopca:storage_blocks.to_storage_block.cast_iron',
    'ae2:misc/tiny_tnt',
    'tconstruct:smeltery/alloys/molten_refined_obsidian',
    'tconstruct:compat/refined_glowstone_ingot',
    'sjap_adder:kamuyex_fire',
    'sjap_adder:kamuyex_life',
    'sjap_adder:kamuyex_ligghtning',
    'sjap_adder:kamuyex_water',
    'sjap_adder:nihilbxex',
    'sjap_adder:nihilulex'
])

ServerEvents.recipes(event => {
    // 使用Set一次性移除所有配方
    global.idsToRemove.forEach(id => event.remove({ id: id }))

    event.remove({ output: 'jaopca:gears.unknown' })
    event.remove({ output: 'jaopca:plates.unknown' })
    event.remove({ output: 'jaopca:circuits.unknown' })
    event.remove({ output: 'jaopca:processors.unknown' })
    event.remove({ output: 'jaopca:rods.unknown' })
    event.remove({ output: 'jaopca:circuits.iesnium' })
    event.remove({ output: 'jaopca:processors.iesnium' })
    event.remove({ output: 'techreborn:mixed_metal_ingot' })
    event.remove({ output: 'nuclearcraft:plate_basic' })
    event.remove({ output: 'thermal:enderium_coin' })
    event.remove({ output: 'thermal:signalum_coin' })
    event.remove({ output: 'thermal:lumium_coin' })
    event.remove({ output: 'ars_nouveau:ritual_flight' })
    event.remove({ output: 'minecraft:furnace' })
    event.remove({ output: 'techreborn:advanced_alloy_ingot', not: { type: 'minecraft:crafting_shapeless' } })
    event.remove({ output: 'draconicevolution:awakened_draconium_ingot', not: { type: 'minecraft:crafting_shapeless' } })
    event.remove({ input: 'immersiveengineering:hammer', not: { id: 'immersiveengineering:crafting/survey_tools' } })
    event.remove({ output: '#cobblemon:poke_balls' })
    event.remove({ type: 'minecraft:crafting_shaped', output: '#forge:gears' })
    event.remove({ type: 'minecraft:crafting_shapeless', input: 'embers:tinker_hammer' })
    event.remove({ type: 'tconstruct:melting', input: '#forge:gears' })
})

MoreJSEvents.villagerTrades(event => {
    event.removeModdedTrades(["ars_nouveau:shady_wizard"], 3)
    event.removeModdedTrades(["techreborn:metallurgist"], 4)
    event.removeModdedTrades(["nuclearcraft:nuclear_scientist"], 4)
    event.removeModdedTrades(["nuclearcraft:nuclear_scientist"], 5)
})