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":{ad_astra:{0:{Count:1b,id:"ad_astra:astrodux"}},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"}},bloodmagic:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"bloodmagic:guide"}}},botania:{0:{Count:1b,id:"botania:lexicon"}},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:no_filter_edition"},1:{Count:1b,id:"cookingforblockheads:recipe_book"},2:{Count:1b,id:"cookingforblockheads:crafting_book"}},eidolon:{0:{Count:1b,id:"eidolon:codex"}},embers:{0:{Count:1b,id:"embers:ancient_codex"}},essentials:{0:{Count:1b,id:"essentials:guide_book",tag:{"patchouli:book":"essentials:manual"}}},extendedcrafting:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"extendedcrafting:guide"}}},ftbquests:{0:{Count:1b,id:"ftbquests:book"}},immersiveengineering:{0:{Count:1b,id:"immersiveengineering: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"}}},mahoutsukai:{0:{Count:1b,id:"mahoutsukai:guidebook"}},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:"minecraft:air"}},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')

  // Naturalist - Egg Fix
  event.replaceOutput({}, 'naturalist:cooked_egg', 'farmersdelight:fried_egg')

  // 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')

  // Antler to Bone Meal
  event.shapeless(Item.of('minecraft:bone_meal', 3), ['naturalist:antler']).id('tnp:antler_to_bone_meal')

  // Dragon Head
  event.shaped(Item.of('minecraft:dragon_head'), [
    'OCO',
    'BHB',
    'OEO'
  ], {
    O: 'minecraft:crying_obsidian',
    C: 'minecraft:end_crystal',
    B: 'minecraft:dragon_breath',
    H: '#forge:heads',
    E: 'minecraft:ender_eye'
  }).id('tnp:dragon_head')

  // Dragon Egg
  event.shaped(Item.of('minecraft:dragon_egg'), [
    'DCD',
    'BOB',
    'OEO'
  ], {
    D: 'enderio:powdered_ender_pearl',
    C: 'minecraft:end_crystal',
    B: 'minecraft:dragon_breath',
    O: 'minecraft:crying_obsidian',
    E: 'tnp:pristine_golden_egg'
  }).id('tnp:dragon_egg')

  // Raw Golden Egg
  event.shaped(Item.of('tnp:raw_golden_egg'), [
    'NIN',
    'IEI',
    'NIN'
  ], {
    N: 'minecraft:gold_nugget',
    E: 'minecraft:egg',
    I: 'minecraft:gold_ingot'
  }).id('tnp:raw_golden_egg')

  // Raw Golden Egg to Boiled Golden Egg
  event.blasting(Item.of('tnp:boiled_golden_egg', 1), 'tnp:raw_golden_egg').xp(0.50).id('tnp:raw_golden_egg_to_boiled')

  // Pristine Golden Egg
  event.shaped(Item.of('tnp:pristine_golden_egg'), [
    'GEG',
    'DBD',
    'GEG'
  ], {
    G: 'silentgear:glittery_dust',
    E: 'enderio:powdered_ender_pearl',
    D: 'mekanism:dust_diamond',
    B: 'tnp:boiled_golden_egg'
  }).id('tnp:pristine_golden_egg')


  // Rubber Essence to Rubber
  event.shaped(Item.of('thermal:rubber', 4), [
    '   ',
    'RRR',
    '   '
  ], {
    R: 'mysticalagriculture:rubber_essence'
  }).id('tnp:rubber_essence_to_rubber')

  // Crafting Slabs back to Crafting Station
  event.shaped(Item.of('craftingstation:crafting_station'), [
    'S',
    'S',
  ], {
    S: 'craftingstation:crafting_station_slab',
  }).id('tnp:crafting_station_from_slab')

  // Globes
  event.shapeless(Item.of('ad_astra:earth_globe'), ['supplementaries:globe', 'enigmaticlegacy:earth_heart', 'minecraft:grass_block', 'minecraft:grass_block', 'thermal:earth_charge', 'thermal:earth_charge', 'telepastries:overworld_cake', 'reliquary:slime_pearl', 'thermal:earth_charge']).id('tnp:earth_globe')

  event.shapeless(Item.of('ad_astra:moon_globe'), ['supplementaries:globe', 'blue_skies:moonstone', 'blue_skies:moonstone', 'blue_skies:moonstone', 'blue_skies:moonstone', '#forge:cheese', '#forge:cheese', 'ad_astra:moon_stone', 'ad_astra:moon_stone']).id('tnp:moon_globe')

  event.shapeless(Item.of('ad_astra:mars_globe'), ['supplementaries:globe', 'ad_astra:ice_shard', 'ad_astra:ice_shard', 'ad_astra:ice_shard', 'ad_astra:ice_shard', 'minecraft:blue_ice', 'minecraft:blue_ice', 'ad_astra:mars_stone', 'ad_astra:mars_stone']).id('tnp:mars_globe')

  event.shapeless(Item.of('ad_astra:mercury_globe'), ['supplementaries:globe', 'reliquary:molten_core', 'reliquary:molten_core', 'reliquary:molten_core', 'reliquary:molten_core', 'nethersdelight:magma_gelatin', 'nethersdelight:magma_gelatin', 'ad_astra:mercury_stone', 'ad_astra:mercury_stone']).id('tnp:mercury_globe')

  event.shapeless(Item.of('ad_astra:venus_globe'), ['supplementaries:globe', 'botania:quartz_blaze', 'botania:quartz_blaze', 'botania:quartz_blaze', 'botania:quartz_blaze', 'silentgear:blaze_gold_dust', 'silentgear:blaze_gold_dust', 'ad_astra:venus_stone', 'ad_astra:venus_stone']).id('tnp:venus_globe')
  
  event.shapeless(Item.of('ad_astra:glacio_globe'), ['supplementaries:globe', 'thermal:blizz_rod', 'thermal:blizz_rod', 'thermal:blizz_rod', 'thermal:blizz_rod', 'thermal:blizz_powder', 'thermal:blizz_powder', 'ad_astra:glacio_stone', 'ad_astra:glacio_stone']).id('tnp:glacio_globe')

  // Wool to 4x String
  event.shapeless(Item.of('minecraft:string', 4), ['#minecraft:wool']).id('tnp:wool_to_four_string')

  // Raw Redstone Block back to 2x Redstone Dust
  event.shapeless(Item.of('minecraft:redstone', 2), ['regions_unexplored:raw_redstone_block']).id('tnp:raw_redstone_block_back_to_redstone_dust')

  // Rice to Rice
  event.shapeless(Item.of('farmersdelight:rice'), ['doggytalents:uncooked_rice']).id('tnp:rice_to_rice')

  // Soy Beans to Soybean Seeds
  event.shapeless(Item.of('croptopia:soybean_seed'), ['doggytalents:soy_beans']).id('tnp:soy_beans_to_soybean_seeds')

  // Batwing Unification
  event.replaceInput({}, 'miners_delight:bat_wing', '#forge:bat_wings')
  event.replaceInput({}, 'forbidden_arcanus:bat_wing', '#forge:bat_wings')
  event.replaceInput({}, 'reliquary:bat_wing', '#forge:bat_wings')

  // TropiCraft Thatch - Fix
  event.remove({output: 'tropicraft:thatch_bundle'})
  event.shaped(Item.of('tropicraft:thatch_bundle'), [
    ' TT',
    'TTT',
    'TTT'
  ], {
    T: 'minecraft:sugar_cane',
  }).id('tnp:tropi_thatch_fix')

  // Iron Bar Trapdoor - Fix
  event.remove({output: 'dustrial_decor:iron_bar_trapdoor'})
  event.shapeless(Item.of('dustrial_decor:iron_bar_trapdoor'), ['#minecraft:trapdoors', 'minecraft:iron_bars', 'minecraft:iron_bars', 'minecraft:iron_bars', 'minecraft:iron_bars']).id('tnp:iron_bar_trapdoor_fix')

  // Redstone Block Uncraft Fix
  event.shapeless(Item.of('minecraft:redstone', 9), ['minecraft:redstone_block']).id('tnp:redstone_block_uncraft_fix')

});