ServerEvents.recipes(event => {
  // 机器框架
  event.replaceInput({ mod: 'thermal', type: 'crafting_shaped', output: 'thermal:machine_frame' }, '#forge:ingots/iron', 'etshtinker:hardlead_plate')
  event.replaceInput({ mod: 'thermal', type: 'crafting_shaped', output: 'thermal:machine_frame' }, '#forge:gears/tin', '#forge:gears/steel')
  //磨粉机
  event.recipes.thermal.pulverizer(Item.of('minecraft:diamond').withChance(3.5), 'createoreexcavation:raw_diamond').energy(1000)
  event.recipes.thermal.pulverizer(Item.of('minecraft:redstone').withChance(6.5), 'createoreexcavation:raw_redstone').energy(1000)
  event.recipes.thermal.pulverizer(Item.of('minecraft:emerald').withChance(3.5), 'createoreexcavation:raw_emerald').energy(1000)
  event.recipes.thermal.pulverizer(Item.of('minecraft:amethyst_shard').withChance(6.5), 'minecraft:amethyst_cluster').energy(1000)
  event.recipes.thermal.pulverizer([Item.of('etshtinker:bismuthinite').withChance(2.1), Item.of('create:experience_nugget').withChance(0.6)], 'etshtinker:bismuthinite_ore_deepslate').energy(10000)
  //冲压机
  event.recipes.thermal.press('8x ae2:printed_silicon', ['8x #forge:silicon', 'kubejs:universal_press']).energy(2000)
  event.recipes.thermal.press('kubejs:universal_press', ['#forge:storage_blocks/iron', 'kubejs:universal_press']).energy(2000)
  event.recipes.thermal.press('8x ae2:printed_calculation_processor', ['8x ae2:certus_quartz_crystal', 'kubejs:universal_press']).energy(2000)
  event.recipes.thermal.press('8x ae2:printed_engineering_processor', ['8x #forge:gems/diamond', 'kubejs:universal_press']).energy(2000)
  event.recipes.thermal.press('8x ae2:printed_logic_processor', ['8x #forge:ingots/gold', 'kubejs:universal_press']).energy(2000)
  //感应炉
  event.recipes.thermal.smelter('4x etshtinker:hardlead_plate', ['3x #forge:ingots/lead', 'etshtinker:bismuth_ingot']).energy(10000)
  event.recipes.thermal.smelter(Item.of('etshtinker:bismuth_ingot').withChance(1.25), ['etshtinker:bismuthinite']).energy(20000)
  //罐装机器
  event.recipes.thermal.bottler('immersiveengineering:treated_wood_horizontal', ['#minecraft:planks', Fluid.of('immersiveengineering:creosote',125)]).energy(400)
  event.recipes.thermal.bottler('cti:advanced_dyano_augment', ['kubejs:unfinished_advanced_dyano_augment', Fluid.of('kubejs:fluid_pyrotheum', 1000)]).energy(10000)
  event.recipes.thermal.bottler('cti:advanced_output_augment', ['kubejs:unfinished_advanced_output_augment', Fluid.of('kubejs:fluid_petrotheum', 1000)]).energy(10000)
  event.recipes.thermal.bottler('cti:advanced_speed_augment', ['kubejs:unfinished_advanced_speed_augment', Fluid.of('kubejs:fluid_cryotheum', 1000)]).energy(10000)
  event.recipes.thermal.bottler('cti:upgrade_augment_6', ['kubejs:uncomplete_upgrade_augment_6', Fluid.of('tinkersinnovation:molten_polychrome_alloy', 810)]).energy(10000)
  //精炼机
  event.recipes.thermal.refinery([Item.of('etshtinker:protonium').withChance(1), Fluid.of('etshtinker:molten_electronium', 10)],Fluid.of('etshtinker:overchargedneutronium', 100))
  event.recipes.thermal.refinery([Item.of('thermal:sulfur_dust').withChance(1.25), Fluid.of('thermal:refined_fuel',100)],Fluid.of('thermal:light_oil', 100))
  event.recipes.thermal.refinery([Item.of('thermal:tar').withChance(1.25), Fluid.of('thermal:refined_fuel',100)],Fluid.of('thermal:heavy_oil', 100))
  event.recipes.thermal.refinery([Item.of('thermal:bitumen').withChance(0.1), Fluid.of('thermal:light_oil',50),Fluid.of('thermal:heavy_oil',50)],Fluid.of('thermal:crude_oil',100))
  //结晶器
  event.recipes.thermal.crystallizer('2x obscure_api:astral_dust', ['obscure_api:astral_dust', Fluid.of('manaliquidizer:mana_fluid', 16000)]).energy(10000)
  event.recipes.thermal.crystallizer('6x mekanism:fluorite_gem', ['mekanism:fluorite_gem', Fluid.of('kubejs:crystal_growth', 100)]).energy(2000)
  event.recipes.thermal.crystallizer('4x ae2:fluix_crystal', ['ae2:fluix_crystal', Fluid.of('kubejs:crystal_growth', 100)]).energy(2000)
  event.recipes.thermal.crystallizer('2x ae2:quartz_cluster', ['ae2:certus_quartz_crystal', Fluid.of('kubejs:crystal_growth', 100)]).energy(2000)
  event.recipes.thermal.crystallizer('ae2:flawless_budding_quartz', ['ae2:flawed_budding_quartz', Fluid.of('manaliquidizer:mana_fluid', 32000)]).energy(32000)
  //熔岩炉
  event.recipes.thermal.crucible(Fluid.of('kubejs:fluid_cryotheum', 250), 'kubejs:dust_cryotheum').energy(100000)
  event.recipes.thermal.crucible(Fluid.of('kubejs:fluid_pyrotheum', 250), 'kubejs:dust_pyrotheum').energy(200000)
  event.recipes.thermal.crucible(Fluid.of('kubejs:fluid_petrotheum', 250), 'kubejs:dust_petrotheum').energy(100000)
  //压缩能源炉
  event.recipes.thermal.compression_fuel(Fluid.of('immersivepetroleum:diesel', 1000)).energy(3200000)
  event.recipes.thermal.compression_fuel(Fluid.of('immersiveengineering:ethanol', 1000)).energy(560000)
  event.recipes.thermal.compression_fuel(Fluid.of('immersivepetroleum:gasoline', 1000)).energy(4900000)
  event.recipes.thermal.compression_fuel(Fluid.of('immersivepetroleum:ethylene', 1000)).energy(7200000)
  event.recipes.thermal.compression_fuel(Fluid.of('immersivepetroleum:napalm', 1000)).energy(6250000)
  event.recipes.thermal.compression_fuel(Fluid.of('industrialforegoing:biofuel', 1000)).energy(795000)
  //冷冻机
  event.recipes.thermal.chiller(Item.of('thermal:rubber'),Fluid.of('thermal:latex',250)).energy(800)
  //催化剂
  event.recipes.thermal.insolator_catalyst('kubejs:phytogro_zero').primaryMod(4.0).secondaryMod(2.0).energyMod(0.6).minChance(0.0).useChance(0.1)
  event.recipes.thermal.pulverizer_catalyst('kubejs:dust_petrotheum').primaryMod(3.0).secondaryMod(2.0).energyMod(8.0).minChance(0.05).useChance(0.1)
  //更多插件
  event.shaped(Item.of('kubejs:unfinished_advanced_speed_augment', 1),
    [
      'AAA',
      'BCD',
      'AAA'
    ],
    {
      A: 'kubejs:zirconium_alloy',
      B: 'thermal:machine_speed_augment',
      C: 'pneumaticcraft:printed_circuit_board',
      D: 'thermal:machine_efficiency_augment',
    }
  )
  event.shaped(Item.of('cti:advanced_catalyst_augment', 1), [
    'AAA',
    'BCB',
    'AAA'
  ],
    {
      A: 'kubejs:zirconium_alloy',
      B: 'thermal:machine_catalyst_augment',
      C: 'pneumaticcraft:printed_circuit_board',
    }
  )
  event.shaped(Item.of('kubejs:unfinished_advanced_dyano_augment', 1),
    [
      'AAA',
      'BCD',
      'AAA'
    ],
    {
      A: 'kubejs:zirconium_alloy',
      B: 'thermal:dynamo_fuel_augment',
      C: 'pneumaticcraft:printed_circuit_board',
      D: 'thermal:dynamo_throttle_augment',
    }
  )
  event.shaped(Item.of('cti:advanced_range_augment', 1),
    [
      'AAA',
      'BCB',
      'AAA'
    ],
    {
      A: 'kubejs:zirconium_alloy',
      B: 'thermal:area_radius_augment',
      C: 'pneumaticcraft:printed_circuit_board',
    }
  )
  event.shaped(Item.of('kubejs:unfinished_advanced_output_augment', 1),
    [
      'AAA',
      'BCB',
      'AAA'
    ],
    {
      A: 'kubejs:zirconium_alloy',
      B: 'thermal:machine_output_augment',
      C: 'pneumaticcraft:printed_circuit_board',
    }
  )
  event.shaped(Item.of('cti:upgrade_augment_4', 1),
    [
      'ABA',
      'CDC',
      'ABA'
    ],
    {
      A: 'kubejs:zirconium_alloy',
      B: 'gobber2:gobber2_glass',
      C: 'thermal:enderium_gear',
      D: 'thermal:upgrade_augment_3',
    }
  )
  event.shaped(Item.of('cti:upgrade_augment_5', 1),
    [
      'ABA',
      'CDC',
      'ABA'
    ],
    {
      A: 'etshtinker:chroma_plate',
      B: 'gobber2:gobber2_glass_nether',
      C: 'pneumaticcraft:compressed_iron_gear',
      D: 'cti:upgrade_augment_4',
    }
  )
  event.shaped(Item.of('kubejs:uncomplete_upgrade_augment_6', 1),
    [
      'ABA',
      'CDC',
      'ABA'
    ],
    {
      A: 'kubejs:overchargedultradense',
      B: 'kubejs:compressed_activated_chroma_plate',
      C: 'thermal:netherite_gear',
      D: 'cti:upgrade_augment_5',
    }
  )
  event.shapeless(Item.of('kubejs:dust_petrotheum', 1), [
    '#forge:dusts/obsidian',
    'thermal:basalz_powder',
    'minecraft:clay_ball',
    'minecraft:redstone',
  ]
  )
  event.shapeless(Item.of('kubejs:dust_cryotheum', 1), [
    'powah:dry_ice',
    'thermal:blizz_powder',
    'thermal:niter',
    'minecraft:redstone',
  ]
  )
  event.shapeless(Item.of('kubejs:dust_pyrotheum', 1), [
    '#forge:dusts/sulfur',
    'minecraft:blaze_powder',
    '#forge:dusts/coal',
    'minecraft:redstone',
  ]
  )
})