ServerEvents.recipes(event => {







    //TFMG
        event.shaped(
            Item.of('tfmg:pumpjack_hammer_head', 1), 
            [
            'A',
            'B',
            'B'
            ],
            {
            A: 'tfmg:heavy_plate',
            B: 'railcraft:steel_block'
            }
        )

        event.shaped(
            Item.of('tfmg:hardened_planks', 2), 
            [
            'ABA',
            'BAB',
            'ABA'
            ],
            {
            A: 'immersiveengineering:treated_wood_horizontal',
            B: '#tfc:hardened_metamorphic_stone'
            }
        )

        event.shaped(
            Item.of('tfmg:exhaust', 1), 
            [
            'ABA',
            'ABA',
            'CCC'
            ],
            {
            A: 'tfc:metal/bars/steel',
            B: 'tfmg:cast_iron_pipe',
            C: 'tfc:metal/ingot/cast_iron'
            }
        )

        event.shaped(
            Item.of('tfmg:steel_fluid_tank', 1), 
            [
            'B',
            'A',
            'B'
            ],
            {
            A: 'tfc:metal/ingot/steel',
            B: 'pneumaticcraft:pressure_chamber_glass'
            }
        )

       
        event.shaped(
            Item.of('tfmg:compact_engine', 1), 
            [
            'ABA',
            'ACA',
            'DED'
            ],
            {
            A: 'tfmg:engine_chamber',
            B: 'tfmg:exhaust',
            C: 'tfmg:engine_base',
            D: 'tfmg:heavy_plate',
            E: 'tfmg:steel_pipe'
            }
        )

        event.shaped(
            Item.of('tfmg:steel_fluid_valve', 1), 
            [
            'AB'
            ],
            {
            A: 'tfc:metal/sheet/wrought_iron',
            B: 'tfmg:steel_pipe'
            }
        )

        event.shaped(
            Item.of('tfmg:cast_iron_smart_fluid_pipe', 1), 
            [
            'A',
            'B',
            'C'
            ],
            {
            A: 'tfc:metal/sheet/brass',
            B: 'tfmg:cast_iron_pipe',
            C: 'create:electron_tube'
            }
        )

        event.shaped(
            Item.of('tfmg:cast_iron_fluid_valve', 1), 
            [
            'AB'
            ],
            {
            A: 'tfc:metal/sheet/wrought_iron',
            B: 'tfmg:cast_iron_pipe'
            }
        )

        event.shaped(
            Item.of('tfmg:brass_smart_fluid_pipe', 1), 
            [
            'A',
            'B',
            'C'
            ],
            {
            A: 'tfc:metal/sheet/brass',
            B: 'tfmg:brass_pipe',
            C: 'create:electron_tube'
            }
        )

        event.shaped(
            Item.of('tfmg:brass_fluid_valve', 1), 
            [
            'AB'
            ],
            {
            A: 'tfc:metal/sheet/wrought_iron',
            B: 'tfmg:brass_pipe'
            }
        )

        event.shaped(
            Item.of('tfmg:plastic_smart_fluid_pipe', 1), 
            [
            'A',
            'B',
            'C'
            ],
            {
            A: 'tfc:metal/sheet/brass',
            B: 'tfmg:plastic_pipe',
            C: 'create:electron_tube'
            }
        )

        event.shaped(
            Item.of('tfmg:plastic_fluid_valve', 1), 
            [
            'AB'
            ],
            {
            A: 'tfc:metal/sheet/wrought_iron',
            B: 'tfmg:plastic_pipe'
            }
        )

        event.shaped(
            Item.of('tfmg:aluminum_smart_fluid_pipe', 1), 
            [
            'A',
            'B',
            'C'
            ],
            {
            A: 'tfc:metal/sheet/brass',
            B: 'tfmg:aluminum_pipe',
            C: 'create:electron_tube'
            }
        )

        event.shaped(
            Item.of('tfmg:aluminum_fluid_valve', 1), 
            [
            'AB'
            ],
            {
            A: 'tfc:metal/sheet/wrought_iron',
            B: 'tfmg:aluminum_pipe'
            }
        )

        event.shaped(
            Item.of('tfmg:rebar_formwork_block', 1), 
            [
            'AB'
            ],
            {
            A: 'railcraft:rebar',
            B: 'tfmg:formwork_block'
            }
        )

        event.shaped(
            Item.of('tfmg:screwdriver', 1), 
            [
            ' A',
            'B '
            ],
            {
            A: 'railcraft:rebar',
            B: 'immersiveengineering:ingot_aluminum'
            }
        )

        event.shaped(
            Item.of('tfmg:turbine_blade', 1), 
            [
            'A',
            'B',
            'A'
            ],
            {
            A: 'create:propeller',
            B: 'create:shaft'
            }
        )

        event.shaped(
            Item.of('tfmg:casting_basin', 1), 
            [
            'ABA',
            'AAA'
            ],
            {
            A: 'tfc:metal/double_ingot/black_steel',
            B: 'tfc:crucible'
            }
        )

        event.shaped(
            Item.of('tfmg:casting_spout', 1), 
            [
            'AAA',
            'ABA',
            ' C '
            ],
            {
            A: 'tfc:metal/double_ingot/black_steel',
            B: 'create:spout',
            C: 'tfmg:steel_pipe'
            }
        )  
 
        event.shaped(
          Item.of('tfmg:plastic_pipe', 12), 
          [
          'AAA',
          '   ',
          'AAA'
          ],
          {
          A: 'pneumaticcraft:plastic'
          }
        )    
 
        event.shaped(
          Item.of('tfmg:aluminum_pipe', 12), 
          [
          'AAA',
          '   ',
          'AAA'
          ],
          {
          A: 'tfc_ie_addon:metal/sheet/aluminum'
          }
        )    
 
        event.shaped(
          Item.of('tfmg:cast_iron_pipe', 8), 
          [
          'AAA',
          '   ',
          'AAA'
          ],
          {
          A: 'tfc:metal/sheet/cast_iron'
          }
        )    
 
        event.shaped(
          Item.of('tfmg:brass_pipe', 12), 
          [
          'AAA',
          '   ',
          'AAA'
          ],
          {
          A: 'tfc:metal/sheet/brass'
          }
        )    
 
        event.shaped(
          Item.of('tfmg:steel_pipe', 12), 
          [
          'AAA',
          '   ',
          'AAA'
          ],
          {
          A: 'tfc:metal/sheet/steel'
          }
        )  
        
        event.shaped(
          Item.of('tfmg:diesel_engine_expansion', 1), 
          [
          'PMP',
          'TCT',
          'PTP'
          ],
          {
          C: 'tfmg:heavy_machinery_casing',
          M: 'tfc:metal/bars/wrought_iron',
          T: 'tfmg:steel_fluid_tank',
          P: 'tfmg:industrial_pipe'
          
              }
          )


          event.shaped(
          Item.of('tfmg:air_intake', 2), 
          [
              ' S ',
              'BCB',
              ' F '
          ],
          {
              C: 'tfmg:heavy_machinery_casing',
              B: 'tfc:metal/bars/wrought_iron',
              F: 'create:propeller',
              S: 'create:shaft'
          }
      )
      
      event.shaped(
      Item.of('tfmg:flarestack', 1), 
      [
          'SIS',
          'MIM',
          'AAA'
      ],
      {
          A: 'create:andesite_alloy',
          M: 'tfc:metal/bars/wrought_iron',
          I: 'tfmg:industrial_pipe',
          S: 'tfmg:spark_plug'
      }
      )  









        

        //Pressure Chamber
        
event.custom({
    "type": "pneumaticcraft:pressure_chamber",
    "inputs": [
      {
        "type": "pneumaticcraft:stacked_item",
        "count": 1,
        "item": "tfmg:hardened_planks"
      },
      {
        "type": "pneumaticcraft:stacked_item",
        "count": 1,
        "item": "tfc:metal/ingot/steel"
      }
    ],
    "pressure": 4,
    "results": [
      {
        "item": "tfmg:steel_casing"
      }
    ]
  }
  )
  
  event.custom({
    "type": "pneumaticcraft:pressure_chamber",
    "inputs": [
      {
        "type": "pneumaticcraft:stacked_item",
        "count": 1,
        "item": "tfmg:steel_casing"
      },
      {
        "type": "pneumaticcraft:stacked_item",
        "count": 1,
        "item": "tfmg:heavy_plate"
      }
    ],
    "pressure": 4.75,
    "results": [
      {
        "item": "tfmg:heavy_machinery_casing"
      }
    ]
  }
  )





  //Sequenced Assembly

  event.custom({
    "type": "create:sequenced_assembly",
    "ingredient": {
      "item": "tfc:metal/double_sheet/black_steel"
    },
    "transitionalItem": {
      "item": "kubejs:unprocessed_heavy_plate"
    },
    "sequence": [
      {
        "type": "create:pressing",
        "ingredients": [
          {
            "item": "kubejs:unprocessed_heavy_plate"
          }
        ],
        "results": [
          {
            "item": "kubejs:unprocessed_heavy_plate"
          }
        ]
      },
      {
        "type": "create:pressing",
        "ingredients": [
          {
            "item": "kubejs:unprocessed_heavy_plate"
          }
        ],
        "results": [
          {
            "item": "kubejs:unprocessed_heavy_plate"
          }
        ]
      },
      {
        "type": "create:pressing",
        "ingredients": [
          {
            "item": "kubejs:unprocessed_heavy_plate"
          }
        ],
        "results": [
          {
            "item": "kubejs:unprocessed_heavy_plate"
          }
        ]
      }
    ],
    "results": [
      {
        "item": "tfmg:heavy_plate"
      }
    ],
    "loops": 1
    }
  )

  






  //Mechanical Crafter
  
  
  event.custom({
    "type": "create:mechanical_crafting",
    "pattern": [
      "IHI",
      "SCK",
      "EEK"
    ],
    "key": {
  
      "I": {
        "item": "tfmg:heavy_plate"
      },
  
    "C": {
      "item": "tfmg:heavy_machinery_casing"
    },
      "H": {
        "item": "minecraft:compass"
      },
      "S": {
        "item": "create:shaft"
      },
      "E": {
        "item": "tfmg:steel_mechanism"
      },
      "K": {
        "item": "tfc:metal/sheet/copper"
      }
  
  
    },
    "result": {
      "item": "tfmg:surface_scanner"
    },
    "acceptMirrored": true
  }
  )

  event.custom({
    "type": "create:mechanical_crafting",
    "pattern": [
      "HPH",
      "PTP",
      "HPH"
    ],
    "key": {
      "T": {
        "item": "tfmg:steel_fluid_tank"
      },
      "H": {
        "item": "tfmg:heavy_plate"
      },
      "P": {
        "item": "tfmg:steel_pipe"
      }
    },
    "result": {
      "item": "tfmg:steel_distillation_output"
    },
    "acceptMirrored": true
  }
  )

  event.custom({
    "type": "create:mechanical_crafting",
    "pattern": [
      "HIH",
      "PDP",
      "ECE"
    ],
    "key": {
      "P": {
        "item": "tfmg:steel_mechanism"
      },
      "I": {
        "item": "tfmg:industrial_pipe"
      },
      "H": {
        "item": "tfmg:heavy_plate"
      },
    "C": {
      "item": "tfmg:heavy_machinery_casing"
    },
      "D": {
        "item": "create:display_board"
      },
      "E": {
        "item": "create:electron_tube"
      }
  
    },
    "result": {
      "item": "tfmg:steel_distillation_controller"
    },
    "acceptMirrored": true
  }
  )

  event.custom({
    "type": "create:mechanical_crafting",
    "pattern": [
      "H H",
      "SCS",
      "   "
    ],
    "key": {
  
      "H": {
        "item": "tfmg:heavy_plate"
      },
      "S": {
        "item": "tfmg:rebar"
      },
    "C": {
      "item": "tfmg:heavy_machinery_casing"
    }
  
  
    },
    "result": {
      "item": "tfmg:pumpjack_crank"
    },
    "acceptMirrored": true
  }
  )

  event.custom({
    "type": "create:mechanical_crafting",
    "pattern": [
      "HAH",
      "SCS",
      "HIH"
    ],
    "key": {
  
      "A": {
        "item": "tfmg:heavy_machinery_casing"
      },
      "H": {
        "item": "tfmg:heavy_plate"
      },
      "S": {
        "item": "tfmg:steel_mechanism"
      },
    "C": {
      "item": "tfmg:heavy_machinery_casing"
    },
      "I": {
        "item": "tfmg:industrial_pipe"
      }
  
  
    },
    "result": {
      "item": "tfmg:pumpjack_base"
    },
    "acceptMirrored": true
  }
  )

  event.custom({
    "type": "create:mechanical_crafting",
    "pattern": [
      " O ",
      " A ",
      "AOA",
      "SCS",
      "STS",
      "HHH"
    ],
    "key": {
  
      "A": {
        "item": "immersiveengineering:ingot_aluminum"
      },
      "H": {
        "item": "tfmg:heavy_plate"
      },
      "S": {
        "item": "tfmg:steel_mechanism"
      },
      "C": {
        "item": "tfmg:heavy_machinery_casing"
      },
      "O": {
        "item": "tfc:metal/ingot/steel"
      },
      "T": {
        "item": "tfmg:steel_fluid_tank"
      }
  
  
    },
    "result": {
      "item": "tfmg:diesel_engine"
    },
    "acceptMirrored": true
  }
  )






  //Mixing

  event.custom({
    "type": "create:mixing",
    "ingredients": [
  
      {
        "fluid": "tfmg:ethylene",
        "amount": 500
      }
    ],
    "results": [
      {
        "fluid": "pneumaticcraft:plastic",
        "amount": 500
  
      }
    ]
  
  
  }
  )

  event.custom({
    "type": "create:mixing",
    "ingredients": [
      {
        "fluid": "tfmg:propylene",
        "amount": 500
      }
    ],
    "results": [
      {
        "fluid": "pneumaticcraft:plastic",
        "amount": 500
  
      }
    ]
  
  
  }
  )

  event.custom({
    "type": "create:mixing",
    "ingredients": [
      {
        "fluid": "minecraft:water",
        "amount": 500
      },
      {
        "item": "tfmg:bitumen"
      },
      {
        "tag": "tfc:sands"
      },
      {
        "tag": "tfc:rock/gravel"
      }
    ],
    "results": [
      {
        "fluid": "tfmg:liquid_asphalt",
        "amount": 1200
  
      }
    ]
  
  
   }
  )

event.custom({
  "type": "create:mixing",
  "ingredients": [

    {
      "item": "tfc:powder/sulfur"
      
    },
    {
      "fluid": "minecraft:water",
      "amount": 250
      
    }
  ],
  "results": [
    {
      "fluid": "tfmg:sulfuric_acid",
      "amount": 2500
    }
  ]
 }
)

event.custom({
  "type": "create:mixing",
  "ingredients": [

    {
      "tag": "tfc:rock/gravel",
      "count": 2
      
    },
    {
      "item": "tfmg:limesand",
      "count": 2
      
    }
  ],
  "results": [
    {
      "item": "tfmg:concrete_mixture",
      "count": 8
    }
  ]
 }
)

event.custom({
  "type": "create:mixing",
  "ingredients": [

    {
      "tag": "tfc:sands",
      "count": 1
      
    },
    {
      "tag": "immersiveengineering:slag_gravel",
      "count": 2
      
    },
    {
      "item": "tfmg:cement",
      "count": 1
      
    }
  ],
  "results": [
    {
      "item": "tfmg:concrete_mixture",
      "count": 16
    }
  ]
 }
)


    //Rolling

    event.custom( {
      "type":"createaddition:rolling",
      "input": {
            "item": "pneumaticcraft:plastic"
      },
      "result": {
          "item": "tfmg:synthetic_string",
          "count": 4
      }
   }
  )


 //Compacting

 event.custom({
  "type": "create:compacting",
  "ingredients": [
    {
      "amount": 10,
      "fluid": "tfmg:heavy_oil"
    }
  ],
  "results": [
    {
      "item": "tfmg:bitumen"
    },
    {
      "item": "tfc:powder/sulfur"
    }
  ]
 }
)



        //Explosion
        event.custom({
          "type": "pneumaticcraft:explosion_crafting",
          "input": {
            "item": "tfc:rock/gravel/limestone"
          },
          "loss_rate": 0,
          "results": [
            {
              "item": "tfmg:limesand"
            }
          ]
        }
  )






      //TFC Barrel
      
  
      event.custom(
        {
          "type": "tfc:barrel_instant",
          "input_item": {
            "ingredient": {
              "item": "tfc:powder/sulfur"
            }
          },
          "input_fluid": {
            "ingredient": "minecraft:water",
            "amount": 2500
          },
          "output_fluid": {
            "fluid": "tfmg:sulfuric_acid",
            "amount": 2500
          }
        }
        )





    }
)