ServerEvents.recipes(event => {

  // Mega Crafter - Fix
  event.remove({output: 'creativecrafter:creative_crafter'})
  event.shaped(Item.of('creativecrafter:creative_crafter'), [
    'NSN',
    'HCE',
    'NPN'
  ], {
    N: '#forge:storage_blocks/netherite',
    H: 'minecraft:dragon_head',
    E: 'minecraft:elytra',
    P: 'extrastorage:neural_processor',
    C: 'extrastorage:netherite_crafter',
    S: 'minecraft:nether_star'
  }).id('tnp:creative_crafter')

  // Croptopia - Knife Fix
  event.remove({id: 'croptopia:knife'})
  event.shaped(Item.of('croptopia:knife'), [
    ' I ',
    ' I ',
    'R  '
  ], {
    I: 'minecraft:iron_ingot',
    R: '#forge:rods/wooden'
  }).id('tnp:knife_fix')

  // Tempad - Edit
  event.remove({output: 'tempad:tempad'})
  event.shaped(Item.of('tempad:tempad'), [
    'QQQ',
    'RWN',
    'QQQ'
  ], {
    Q: '#forge:storage_blocks/quartz',
    R: 'minecraft:redstone_lamp',
    N: 'reliquary:nebulous_heart',
    W: 'waystones:warp_stone'
  }).id('tnp:tempad')

  // Time in a Bottle - Edit
  event.remove({output: 'tiab:time_in_a_bottle'})
  event.shaped(Item.of('tiab:time_in_a_bottle'), [
    'NGN',
    'DCD',
    'LBL'
  ], {
    N: 'minecraft:netherite_ingot',
    G: 'minecraft:gold_ingot',
    D: 'minecraft:diamond',
    C: 'minecraft:clock',
    B: 'minecraft:glass_bottle',
    L: 'minecraft:lapis_lazuli'
  }).id('tnp:tiab')

  // Croptopia Flour - Fix
  event.shaped(Item.of('croptopia:flour'), [
    'F ',
    'F '
  ], {
    F: '#croptopia:flourable'
  }).id('tnp:flour')

  // Any Pickaxe + Spawner to Spawner Scrap
  event.shapeless(Item.of('forbidden_arcanus:spawner_scrap'), ['#minecraft:pickaxes', 'minecraft:spawner']).keepIngredient('#minecraft:pickaxes').damageIngredient(Item.of('#minecraft:pickaxes')).id('tnp:spawner_to_scrap')

  // Any Pickaxe + Broken Spawner to Spawner Scrap Alternate
  event.shapeless(Item.of('forbidden_arcanus:spawner_scrap'), ['#minecraft:pickaxes', 'enderio:broken_spawner']).keepIngredient('#minecraft:pickaxes').damageIngredient(Item.of('#minecraft:pickaxes')).id('tnp:spawner_to_scrap_alt')

  // Any Sword + Pineapple to Pineapple Cubes
  event.shapeless(Item.of('tropicraft:pineapple_cubes'), ['#minecraft:swords', '#forge:fruits/pineapple']).keepIngredient('#minecraft:swords').damageIngredient(Item.of('#minecraft:swords')).id('tnp:pineapple_to_cubes')

  // Earthworms
  event.shapeless(Item.of('fishofthieves:earthworms'), ['#minecraft:shovels', 'minecraft:dirt', 'minecraft:dirt', 'minecraft:dirt', 'minecraft:dirt']).keepIngredient('#minecraft:shovels').damageIngredient(Item.of('#minecraft:shovels')).id('tnp:earthworms_from_dirt')

  // Grubs
  event.shapeless(Item.of('fishofthieves:grubs'), ['#minecraft:shovels', 'minecraft:sand', 'minecraft:sand', 'minecraft:sand', 'minecraft:sand']).keepIngredient('#minecraft:shovels').damageIngredient(Item.of('#minecraft:shovels')).id('tnp:grubs_from_sand')

  // Leeches
  event.shapeless(Item.of('fishofthieves:leeches'), ['#minecraft:shovels', 'minecraft:mud', 'minecraft:mud', 'minecraft:mud', 'minecraft:mud']).keepIngredient('#minecraft:shovels').damageIngredient(Item.of('#minecraft:shovels')).id('tnp:leeches_from_mud')

  // Elytra
  event.shaped(Item.of('minecraft:elytra'), [
    'BWB',
    'PAP',
    'FCF'
  ], {
    B: 'reliquary:bat_wing',
    W: 'ars_nouveau:wilden_wing',
    P: 'minecraft:phantom_membrane',
    A: 'cyclic:apple_chorus',
    F: 'reliquary:angelic_feather',
    C: 'minecraft:cyan_banner'
  }).id('tnp:elytra')

  // Elytra - Copy
  event.shapeless(Item.of('minecraft:elytra'), ['minecraft:elytra', 'mysticalagradditions:dragon_scale']).keepIngredient('minecraft:elytra').id('tnp:elytra_copy')

  // Click Machine - Edit
  event.remove({output: 'clickmachine:auto_clicker'})
  event.shaped(Item.of('clickmachine:auto_clicker'), [
    'DDD',
    'DLD',
    'DRD'
  ], {
    D: 'minecraft:diorite',
    L: 'minecraft:lapis_block',
    R: '#forge:storage_blocks/redstone'
  }).id('tnp:click_machine')

  // Simply Sword Iron Sai - Fix
  event.remove({output: 'simplyswords:iron_sai'})
  event.shaped(Item.of('simplyswords:iron_sai'), [
    'NI',
    'RN'
  ], {
    N: 'minecraft:iron_nugget',
    I: 'minecraft:iron_ingot',
    R: '#forge:rods/wooden'
  }).id('tnp:iron_sai_fix')

  // Eccentric Tome All Books (hopefully)
  event.remove({output: 'eccentrictome:tome'})
  event.shapeless(Item.of('eccentrictome:tome', '{"eccentrictome:mods":{ae2:{0:{Count:1b,id:"ae2:guide"}},aether:{0:{Count:1b,id:"aether:book_of_lore"}},alchemistry:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"alchemistry:alchemistry_book"}}},apotheosis:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"apotheosis:apoth_chronicle"}}},ars_nouveau:{0:{Count:1b,id:"ars_nouveau:worn_notebook"}},buildinggadgets2:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"buildinggadgets2:buildinggadgets2book"}}},caupona:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"caupona:book"}}},chococraft:{0:{Count:1b,id:"chococraft:chocopedia"}},citadel:{0:{Count:1b,id:"citadel:citadel_book"}},cookingforblockheads:{0:{Count:1b,id:"cookingforblockheads:crafting_book"},1:{Count:1b,id:"cookingforblockheads:no_filter_edition"},2:{Count:1b,id:"cookingforblockheads:recipe_book"}},eidolon:{0:{Count:1b,id:"eidolon:codex"}},essentials:{0:{Count:1b,id:"essentials:guide_book",tag:{"patchouli:book":"essentials:manual"}}},industrialforegoing:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"industrialforegoing:industrial_foregoing"}}},integrateddynamics:{0:{Count:1b,id:"integrateddynamics:on_the_dynamics_of_integration"}},irons_spellbooks:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"irons_spellbooks:iss_guide_book"}}},laserio:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"laserio:laseriobook"}}},modonomicon:{0:{Count:1b,id:"modonomicon:modonomicon",tag:{"modonomicon:book_id":"theurgy:the_hermetica"}}},modularrouters:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"modularrouters:book"}}},mysticalagriculture:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"mysticalagriculture:guide"}}},naturesaura:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"naturesaura:book"}}},occultism:{0:{Count:1b,id:"occultism:dictionary_of_spirits",tag:{"modonomicon:book_id":"occultism:dictionary_of_spirits"}}},pneumaticcraft:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"pneumaticcraft:book"}}},powah:{0:{Count:1b,id:"powah:book"}},productivebees:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"productivebees:guide"}}},rftoolsbase:{0:{Count:1b,id:"rftoolsbase:manual"}},rootsclassic:{0:{Count:1b,id:"rootsclassic:runic_tablet"}},sebastrnlib:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"sebastrnlib:sebastrn_mods_guide_book"}}},securitycraft:{0:{Count:1b,id:"securitycraft:sc_manual"}},silentgear:{0:{Count:1b,id:"silentgear:guide_book"}},simplyswords:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"simplyswords:runic_grimoire"}}},solcarrot:{0:{Count:1b,id:"solcarrot:food_book"}},sushigocrafting:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"sushigocrafting:sushigocrafting"}}},twilightdelight:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"twilightdelight:twilight_guide"}}}},"eccentrictome:version":1}'), ['minecraft:book', '#forge:bookshelves']).id('tnp:eccentrictome_full')

  // Emerald Jetpack - Fix
  event.shaped(Item.of('ironjetpacks:jetpack', '{Id:"ironjetpacks:emerald",Throttle:1.0d}'), [
    'ECE',
    'EJE',
    'T T'
  ], {
    C: Item.of('ironjetpacks:capacitor', '{Id:"ironjetpacks:emerald"}').strongNBT(),
    T: Item.of('ironjetpacks:thruster', '{Id:"ironjetpacks:emerald"}').strongNBT(),
    J: Item.of('ironjetpacks:jetpack', '{Id:"ironjetpacks:diamond",Throttle:1.0d}').strongNBT(),
    E: 'minecraft:emerald',
  }).id('tnp:emerald_jetpack')

  // Spice Rack - Fix
  event.remove({output: 'cookingforblockheads:spice_rack'})
  event.shaped(Item.of('cookingforblockheads:spice_rack', 2), [
    'PP',
  ], {
    P: '#minecraft:wooden_slabs',
  }).id('tnp:spice_rack')

  // Regions Unexplored Dirt to Vanilla Dirt
  event.shapeless(Item.of('minecraft:dirt'), ['regions_unexplored:ashen_dirt']).id('tnp:ashen_dirt_to_dirt')
  event.shapeless(Item.of('minecraft:dirt'), ['regions_unexplored:peat_dirt']).id('tnp:peat_dirt_to_dirt')
  event.shapeless(Item.of('minecraft:dirt'), ['regions_unexplored:silt_dirt']).id('tnp:silt_dirt_to_dirt')

  // Regions Unexplored Coarse Dirt to Vanilla Coarse Dirt
  event.shapeless(Item.of('minecraft:coarse_dirt'), ['regions_unexplored:silt_coarse_dirt']).id('tnp:silt_coarse_dirt_to_coarse_dirt')
  event.shapeless(Item.of('minecraft:coarse_dirt'), ['regions_unexplored:peat_coarse_dirt']).id('tnp:peat_coarse_dirt_to_coarse_dirt')

  // Cyclic - Compressed Cobble Fix
  event.replaceInput({}, 'cyclic:compressed_cobblestone', 'tnp:compressed_cobblestone')

  // Croptopia - Salt Fix
  event.replaceInput({}, 'mekanism:salt', '#forge:salt')
  event.replaceInput({}, 'croptopia:salt', '#forge:salt')
  event.replaceOutput({}, 'croptopia:salt', 'mekanism:salt')

  // Apple to Baked Apple
  event.smelting(Item.of('tnp:baked_apple', 1), 'minecraft:apple').xp(0.10).id('tnp:baked_apple_smelt')
  event.smoking(Item.of('tnp:baked_apple', 1), 'minecraft:apple').xp(0.10).id('tnp:baked_apple_smoked')
  event.campfireCooking('tnp:baked_apple', 'minecraft:apple').id('tnp:baked_apple_campfire')

  // Glow Berries to Baked Glow Berries
  event.smelting(Item.of('tnp:baked_glow_berries', 1), 'minecraft:glow_berries').xp(0.10).id('tnp:baked_glow_berries_smelt')
  event.smoking(Item.of('tnp:baked_glow_berries', 1), 'minecraft:glow_berries').xp(0.10).id('tnp:baked_glow_berries_smoked')
  event.campfireCooking('tnp:baked_glow_berries', 'minecraft:glow_berries').id('tnp:baked_glow_berries_campfire')

  // Carrot to Roasted Carrot
  event.smelting(Item.of('tnp:roasted_carrot', 1), 'minecraft:carrot').xp(0.10).id('tnp:roasted_carrot_smelt')
  event.smoking(Item.of('tnp:roasted_carrot', 1), 'minecraft:carrot').xp(0.10).id('tnp:roasted_carrot_smoked')
  event.campfireCooking('tnp:roasted_carrot', 'minecraft:carrot').id('tnp:roasted_carrot_campfire')

  // Melon to Grilled Melon
  event.smelting(Item.of('tnp:grilled_melon', 1), 'minecraft:melon_slice').xp(0.10).id('tnp:grilled_melon_smelt')
  event.smoking(Item.of('tnp:grilled_melon', 1), 'minecraft:melon_slice').xp(0.10).id('tnp:grilled_melon_smoked')
  event.campfireCooking('tnp:grilled_melon', 'minecraft:melon_slice').id('tnp:grilled_melon_campfire')

  // Golden Berries
  event.shaped(Item.of('tnp:golden_berries'), [
    'GGG',
    'GSG',
    'GGG'
  ], {
    S: '#tnp:berries',
    G: 'minecraft:gold_nugget'
  }).id('tnp:golden_berries')

  // Golden Melon Slice
  event.shaped(Item.of('tnp:golden_melon'), [
    'NIN',
    'IMI',
    'NIN'
  ], {
    M: 'minecraft:melon_slice',
    N: 'minecraft:gold_nugget',
    I: 'minecraft:gold_ingot'
  }).id('tnp:golden_melon_slice')

  // Wrench - Fix
  event.remove({output: 'additionaladditions:wrench'})
  event.shaped(Item.of('additionaladditions:wrench'), [
    'C C',
    'NCN',
    ' C '
  ], {
    C: 'minecraft:copper_ingot',
    N: 'mekanism:nugget_copper'
  }).id('tnp:wrench_fix')

  // Copper Button - Fix
  event.remove({output: 'friendsandfoes:copper_button'})
  event.shapeless(Item.of('friendsandfoes:copper_button'), ['minecraft:copper_ingot', '#minecraft:buttons']).id('tnp:copper_button_fix')

});