// priority: 10
// InsaneCraft S2 - Recipe Balancing & Cross-Mod Progression
// This script modifies, adds, and removes recipes to create balanced progression

ServerEvents.recipes(event => {
  // The current infinity mod still ships a recipe whose output belonged to
  // the removed infinity_tracker addon.  Replace it with a valid placeholder
  // so datapack loading never sees an empty ItemStack, then remove it from
  // the live recipe manager below.  This keeps the old mod jar unmodified.
  event.remove({ id: 'infinity:infinity_tracker' })

  // ============================================================
  // SECTION 1: AVARITIA / ENDGAME ITEM GATING
  // Make Infinity items require true cross-mod mastery
  // ============================================================

  // Infinity Ingot - requires components from 6 different mods
  event.remove({ output: 'avaritia:infinity_ingot' })
  event.shaped('avaritia:infinity_ingot', [
    'CSC',
    'NIN',
    'CSC'
  ], {
    C: 'avaritia:crystal_matrix_ingot',
    S: 'mekanism:alloy_atomic',
    N: 'avaritia:neutronium_ingot',
    I: 'avaritia:infinity_catalyst'
  })

  // Infinity Catalyst - now requires boss drops and endgame materials
  event.remove({ output: 'avaritia:infinity_catalyst' })
  event.shaped('avaritia:infinity_catalyst', [
    'DMR',
    'NEC',
    'TAB'
  ], {
    D: 'minecraft:dragon_egg',
    M: 'minecraft:nether_star',
    R: 'projecte:red_matter',
    N: 'mekanism:teleportation_core',
    E: 'extendedcrafting:the_ultimate_ingot',
    C: 'ad_astra:etrionic_capacitor',
    T: 'tconstruct:queens_slime_ingot',
    A: 'mysticalagriculture:awakened_supremium_ingot',
    B: 'bloodmagic:archmagebloodorb'
  })

  // Crystal Matrix Ingot - require Extreme Reactor + Create components
  event.remove({ output: 'avaritia:crystal_matrix_ingot' })
  event.shaped('2x avaritia:crystal_matrix_ingot', [
    'DND',
    'NEN',
    'DND'
  ], {
    D: 'minecraft:diamond_block',
    N: 'minecraft:nether_star',
    E: 'minecraft:end_crystal'
  })

  // ============================================================
  // SECTION 2: MEKANISM PROGRESSION GATES
  // Require cross-mod components for Mekanism tiers
  // ============================================================

  // Steel Casing - require Create brass + Thermal invar
  event.remove({ output: 'mekanism:steel_casing' })
  event.shaped('mekanism:steel_casing', [
    'SBS',
    'IOI',
    'SBS'
  ], {
    S: 'mekanism:ingot_steel',
    B: 'create:brass_ingot',
    I: 'thermal:invar_ingot',
    O: 'mekanism:ingot_osmium'
  })

  // Advanced Control Circuit - require IE components
  event.remove({ output: 'mekanism:advanced_control_circuit' })
  event.shaped('mekanism:advanced_control_circuit', [
    ' A ',
    'RCR',
    ' A '
  ], {
    A: 'mekanism:alloy_infused',
    R: 'minecraft:redstone',
    C: 'mekanism:basic_control_circuit'
  })

  // Elite Control Circuit - require Thermal signalum
  event.remove({ output: 'mekanism:elite_control_circuit' })
  event.shaped('mekanism:elite_control_circuit', [
    ' A ',
    'SCS',
    ' A '
  ], {
    A: 'mekanism:alloy_reinforced',
    S: 'thermal:signalum_ingot',
    C: 'mekanism:advanced_control_circuit'
  })

  // Ultimate Control Circuit - require multiple endgame alloys
  event.remove({ output: 'mekanism:ultimate_control_circuit' })
  event.shaped('mekanism:ultimate_control_circuit', [
    ' A ',
    'ECE',
    ' A '
  ], {
    A: 'mekanism:alloy_atomic',
    E: 'thermal:enderium_ingot',
    C: 'mekanism:elite_control_circuit'
  })

  // ============================================================
  // SECTION 3: CREATE PROGRESSION
  // Make early Create require IE Treated Wood
  // ============================================================

  // Andesite Casing - require treated wood
  event.remove({ output: 'create:andesite_casing' })
  event.shaped('4x create:andesite_casing', [
    'APA',
    'PWP',
    'APA'
  ], {
    A: 'create:andesite_alloy',
    P: '#minecraft:planks',
    W: '#minecraft:logs'
  })

  // Brass Casing - use Thermal materials
  event.remove({ output: 'create:brass_casing' })
  event.shaped('4x create:brass_casing', [
    'BPB',
    'PWP',
    'BPB'
  ], {
    B: 'create:brass_ingot',
    P: '#minecraft:planks',
    W: '#minecraft:logs'
  })

  // ============================================================
  // SECTION 4: EXTENDED CRAFTING ULTIMATE PROGRESSION
  // Ultimate Ingot requires components from 5+ mods
  // ============================================================

  event.remove({ output: 'extendedcrafting:the_ultimate_ingot' })
  event.shaped('extendedcrafting:the_ultimate_ingot', [
    'BLA',
    'USU',
    'AEB'
  ], {
    B: 'extendedcrafting:black_iron_ingot',
    L: 'extendedcrafting:luminessence',
    E: 'extendedcrafting:enhanced_ender_ingot',
    U: 'extendedcrafting:ultimate_component',
    S: 'minecraft:nether_star',
    A: 'ad_astra:calorite_ingot'
  })

  // ============================================================
  // SECTION 5: PROJECTE BALANCE
  // Make Matter harder to reach
  // ============================================================

  // Dark Matter Block - require more components
  event.remove({ output: 'projecte:dark_matter' })
  event.shaped('projecte:dark_matter', [
    'ADA',
    'DED',
    'ADA'
  ], {
    A: 'projecte:aeternalis_fuel',
    D: 'minecraft:diamond',
    E: 'minecraft:ender_eye'
  })

  // Red Matter - require Dark Matter + harder materials
  event.remove({ output: 'projecte:red_matter' })
  event.shaped('projecte:red_matter', [
    'ADA',
    'DND',
    'ADA'
  ], {
    A: 'projecte:aeternalis_fuel',
    D: 'projecte:dark_matter',
    N: 'minecraft:nether_star'
  })

  // ============================================================
  // SECTION 6: POWAH ENERGY GENERATION BALANCE
  // Make higher-tier generators more expensive
  // ============================================================

  // Nitro Reactor - require multiple mod materials
  event.remove({ output: 'powah:reactor_nitro' })
  event.shaped('powah:reactor_nitro', [
    'ENE',
    'NRN',
    'ENE'
  ], {
    E: 'powah:energy_cell_nitro',
    N: 'powah:nitro_crystal_block',
    R: 'powah:reactor_blazing'
  })

  // ============================================================
  // SECTION 7: FARMER'S DELIGHT INTEGRATION
  // Make some foods require FD cooking methods
  // ============================================================

  // Golden Apple alternative via Farmer's Delight cooking
  event.custom({
    type: 'farmersdelight:cooking',
    ingredients: [
      { item: 'minecraft:apple' },
      { item: 'minecraft:gold_ingot' },
      { item: 'minecraft:gold_ingot' },
      { item: 'minecraft:gold_ingot' },
      { item: 'minecraft:gold_ingot' }
    ],
    result: { item: 'minecraft:golden_apple' },
    experience: 2.0,
    cookingtime: 600
  })

  // ============================================================
  // SECTION 8: BLOOD MAGIC BALANCE
  // Altar progression gates
  // ============================================================

  // Archmage Blood Orb - uses native Blood Magic altar craft

  // ============================================================
  // SECTION 9: THERMAL SERIES PROGRESSION
  // Ensure Thermal follows proper material tiers
  // ============================================================

  // Enderium blend requires Ender Pearls + Lead + Platinum
  event.remove({ output: 'thermal:enderium_dust' })
  event.shapeless('2x thermal:enderium_dust', [
    'thermal:lead_dust',
    'thermal:lead_dust',
    'thermal:lead_dust',
    'minecraft:ender_pearl',
    'minecraft:ender_pearl',
    'minecraft:ender_pearl',
    'minecraft:ender_pearl'
  ])

  // ============================================================
  // SECTION 10: MYSTICAL AGRICULTURE BALANCE
  // Make higher-tier seeds harder
  // ============================================================

  // Supremium Essence crafting - require 5 Imperium instead of 4
  event.remove({ output: 'mysticalagriculture:supremium_essence' })
  event.shaped('mysticalagriculture:supremium_essence', [
    ' I ',
    'IEI',
    ' I '
  ], {
    I: 'mysticalagriculture:imperium_essence',
    E: 'mysticalagriculture:imperium_essence'
  })

  // ============================================================
  // SECTION 11: INDUSTRIAL FOREGOING GATES
  // Make automation machines need cross-mod materials
  // ============================================================

  // Mob Crusher - require tougher components
  event.remove({ output: 'industrialforegoing:mob_crusher' })
  event.shaped('industrialforegoing:mob_crusher', [
    'PBP',
    'SMS',
    'PGP'
  ], {
    P: 'industrialforegoing:plastic',
    B: 'minecraft:diamond_sword',
    S: 'mekanism:ingot_steel',
    M: 'industrialforegoing:machine_frame_simple',
    G: 'industrialforegoing:speed_addon_1'
  })

  // Laser Drill - require multiple endgame components
  event.remove({ output: 'industrialforegoing:laser_drill' })
  event.shaped('industrialforegoing:laser_drill', [
    'PDP',
    'LML',
    'PEP'
  ], {
    P: 'industrialforegoing:plastic',
    D: 'minecraft:diamond_block',
    L: 'industrialforegoing:laser_lens0',
    M: 'industrialforegoing:machine_frame_supreme',
    E: 'thermal:enderium_ingot'
  })

  // ============================================================
  // SECTION 12: HOSTILE NEURAL NETWORKS BALANCE
  // Make simulation chambers need proper materials
  // ============================================================

  event.remove({ output: 'hostilenetworks:sim_chamber' })
  event.shaped('hostilenetworks:sim_chamber', [
    'PDP',
    'CMC',
    'PRP'
  ], {
    P: 'hostilenetworks:prediction_matrix',
    D: 'minecraft:diamond',
    C: 'mekanism:basic_control_circuit',
    M: 'hostilenetworks:deep_learner',
    R: 'minecraft:redstone_block'
  })

  // ============================================================
  // SECTION 13: EXTREME REACTORS PROGRESSION
  // Make reactors require cross-mod components
  // ============================================================

  // Reactor Controller - uses native Extreme Reactors craft

  // ============================================================
  // SECTION 14: FLUX NETWORKS BALANCE
  // Make flux dust harder to get
  // ============================================================

  event.remove({ output: 'fluxnetworks:flux_dust' })
  event.shapeless('4x fluxnetworks:flux_dust', [
    'minecraft:redstone',
    'minecraft:redstone',
    'minecraft:redstone',
    'minecraft:redstone',
    'minecraft:obsidian',
    'minecraft:ender_pearl'
  ])

  // ============================================================
  // SECTION 15: STORAGE SYSTEMS PROGRESSION
  // AE2 and RS should require mid-game materials
  // ============================================================

  // ME Controller - require brass from Create
  event.remove({ output: 'ae2:controller' })
  event.shaped('ae2:controller', [
    'FEF',
    'ECE',
    'FEF'
  ], {
    F: 'ae2:fluix_crystal',
    E: 'ae2:engineering_processor',
    C: 'create:brass_block'
  })

  // RS Controller - require Mekanism steel
  event.remove({ output: 'refinedstorage:controller' })
  event.shaped('refinedstorage:controller', [
    'QSQ',
    'SPS',
    'QSQ'
  ], {
    Q: 'refinedstorage:quartz_enriched_iron',
    S: 'mekanism:ingot_steel',
    P: 'refinedstorage:machine_casing'
  })

  // ============================================================
  // SECTION 16: APOTHEOSIS BALANCE
  // Make spawner modification harder
  // ============================================================

  // Gem Socket crafting
  event.remove({ output: 'apotheosis:gem' })
  event.shaped('apotheosis:gem', [
    'IRI',
    'RER',
    'IRI'
  ], {
    I: 'minecraft:iron_ingot',
    R: 'minecraft:redstone',
    E: 'minecraft:emerald'
  })

  // ============================================================
  // SECTION 17: TINKERS' CONSTRUCT GATES
  // Smeltery requires Create + IE materials
  // ============================================================

  // Seared Bricks alternative recipe using blast furnace
  event.smelting('tconstruct:seared_brick', 'minecraft:brick', 0.3)

  // ============================================================
  // SECTION 18: MISCELLANEOUS BALANCE
  // Close exploit loops and balance oddities
  // ============================================================

  // Remove any recipes that produce items for free or near-free
  // Bonsai Trees pot - uses native craft

  // Click Machine balance - require redstone components
  event.remove({ output: 'clickmachine:auto_clicker' })
  event.shaped('clickmachine:auto_clicker', [
    'III',
    'RDR',
    'III'
  ], {
    I: 'minecraft:iron_ingot',
    R: 'minecraft:redstone',
    D: 'minecraft:dispenser'
  })

  // Waystones - make them a bit more expensive
  event.remove({ output: 'waystones:waystone' })
  event.shaped('waystones:waystone', [
    ' E ',
    'SOS',
    'SDS'
  ], {
    E: 'minecraft:ender_pearl',
    S: 'minecraft:stone_bricks',
    O: 'minecraft:obsidian',
    D: 'minecraft:diamond'
  })

  // ============================================================
  // SECTION 19: CREATIVE & INFINITE ITEM RECIPES
  // Craft creative/infinite endgame items using Avaritia Infinity Ingot
  // ============================================================

  // 1. Mekanism Creative Energy Cube
  event.shaped('mekanism:creative_energy_cube', [
    'CIC',
    'AEA',
    'CIC'
  ], {
    C: 'mekanism:ultimate_control_circuit',
    I: 'avaritia:infinity_ingot',
    A: 'mekanism:alloy_atomic',
    E: 'mekanism:ultimate_energy_cube'
  })

  // 2. Mekanism Creative Fluid Tank
  event.shaped('mekanism:creative_fluid_tank', [
    'CIC',
    'ATA',
    'CIC'
  ], {
    C: 'mekanism:ultimate_control_circuit',
    I: 'avaritia:infinity_ingot',
    A: 'mekanism:alloy_atomic',
    T: 'mekanism:ultimate_fluid_tank'
  })

  // 3. Mekanism Creative Chemical Tank
  event.shaped('mekanism:creative_chemical_tank', [
    'CIC',
    'ATA',
    'CIC'
  ], {
    C: 'mekanism:ultimate_control_circuit',
    I: 'avaritia:infinity_ingot',
    A: 'mekanism:alloy_atomic',
    T: 'mekanism:ultimate_chemical_tank'
  })

  // 4. Mekanism Creative Bin
  event.shaped('mekanism:creative_bin', [
    'CIC',
    'ABA',
    'CIC'
  ], {
    C: 'mekanism:ultimate_control_circuit',
    I: 'avaritia:infinity_ingot',
    A: 'mekanism:alloy_atomic',
    B: 'mekanism:ultimate_bin'
  })

  // 5. Powah Creative Energy Cell
  event.shaped('powah:energy_cell_creative', [
    'NIN',
    'NCE',
    'NIN'
  ], {
    N: 'powah:nitro_crystal_block',
    I: 'avaritia:infinity_ingot',
    C: 'powah:nitro_crystal_block',
    E: 'powah:energy_cell_nitro'
  })

  // 6. Create Creative Motor
  event.shaped('create:creative_motor', [
    'BIB',
    'SRS',
    'BIB'
  ], {
    B: 'create:brass_block',
    I: 'avaritia:infinity_ingot',
    S: 'minecraft:nether_star',
    R: 'create:rotation_speed_controller'
  })

  // 7. Create Creative Fluid Tank
  event.shaped('create:creative_fluid_tank', [
    'CIC',
    'SFS',
    'CIC'
  ], {
    C: 'minecraft:copper_block',
    I: 'avaritia:infinity_ingot',
    S: 'create:spout',
    F: 'create:fluid_tank'
  })

  // 8. Create Creative Crate
  event.shaped('create:creative_crate', [
    'CIC',
    'SVS',
    'CIC'
  ], {
    C: 'create:brass_casing',
    I: 'avaritia:infinity_ingot',
    S: 'minecraft:nether_star',
    V: 'create:item_vault'
  })

  // 9. Create Creative Blaze Cake
  event.shaped('create:creative_blaze_cake', [
    'BIB',
    'ISI',
    'BIB'
  ], {
    B: 'create:blaze_cake',
    I: 'avaritia:infinity_ingot',
    S: 'minecraft:nether_star'
  })

  // 10. Create Handheld Worldshaper
  event.shaped('create:handheld_worldshaper', [
    'BIB',
    'EGE',
    'BIB'
  ], {
    B: 'create:brass_block',
    I: 'avaritia:infinity_ingot',
    E: 'create:extendo_grip',
    G: 'minecraft:nether_star'
  })

  // 11. AE2 Creative Energy Cell
  event.shaped('ae2:creative_energy_cell', [
    'PIP',
    'CDC',
    'PIP'
  ], {
    P: 'ae2:engineering_processor',
    I: 'avaritia:infinity_ingot',
    C: 'ae2:fluix_smart_cable',
    D: 'ae2:dense_energy_cell'
  })

  // 12. AE2 Creative Item Cell
  event.shaped('ae2:creative_item_cell', [
    'PIP',
    'SCS',
    'PIP'
  ], {
    P: 'ae2:calculation_processor',
    I: 'avaritia:infinity_ingot',
    S: 'ae2:singularity',
    C: 'ae2:item_storage_cell_256k'
  })

  // 13. AE2 Creative Fluid Cell
  event.shaped('ae2:creative_fluid_cell', [
    'PIP',
    'SCS',
    'PIP'
  ], {
    P: 'ae2:logic_processor',
    I: 'avaritia:infinity_ingot',
    S: 'ae2:singularity',
    C: 'ae2:fluid_storage_cell_256k'
  })

  // 14. AEInfinityBooster Dimension Card
  event.shaped('aeinfinitybooster:dimension_card', [
    'EIE',
    'SCS',
    'EIE'
  ], {
    E: 'minecraft:ender_pearl',
    I: 'avaritia:infinity_ingot',
    S: 'minecraft:nether_star',
    C: 'aeinfinitybooster:infinity_card'
  })

  // 15. Refined Storage Creative Controller
  event.shaped('refinedstorage:creative_controller', [
    'PIP',
    'QIQ',
    'PIP'
  ], {
    P: 'refinedstorage:advanced_processor',
    I: 'avaritia:infinity_ingot',
    Q: 'refinedstorage:quartz_enriched_iron_block'
  })

  // 16. Refined Storage Creative Storage Disk
  event.shaped('refinedstorage:creative_storage_disk', [
    'PIP',
    'IDI',
    'PIP'
  ], {
    P: 'refinedstorage:advanced_processor',
    I: 'avaritia:infinity_ingot',
    D: 'refinedstorage:64k_storage_disk'
  })

  // 17. Refined Storage Creative Fluid Storage Disk
  event.shaped('refinedstorage:creative_fluid_storage_disk', [
    'PIP',
    'IDI',
    'PIP'
  ], {
    P: 'refinedstorage:advanced_processor',
    I: 'avaritia:infinity_ingot',
    D: 'refinedstorage:4096k_fluid_storage_disk'
  })

  // 18. Refined Storage Creative Storage Block
  event.shaped('refinedstorage:creative_storage_block', [
    'MIM',
    'IBI',
    'MIM'
  ], {
    M: 'refinedstorage:machine_casing',
    I: 'avaritia:infinity_ingot',
    B: 'refinedstorage:64k_storage_block'
  })

  // 19. Refined Storage Creative Fluid Storage Block
  event.shaped('refinedstorage:creative_fluid_storage_block', [
    'MIM',
    'IBI',
    'MIM'
  ], {
    M: 'refinedstorage:machine_casing',
    I: 'avaritia:infinity_ingot',
    B: 'refinedstorage:4096k_fluid_storage_block'
  })

  // 20. Refined Storage Creative Portable Grid
  event.shaped('refinedstorage:creative_portable_grid', [
    'TIT',
    'IGI',
    'TIT'
  ], {
    T: 'refinedstorage:wireless_transmitter',
    I: 'avaritia:infinity_ingot',
    G: 'refinedstorage:portable_grid'
  })

  // 21. Refined Storage Creative Wireless Grid
  event.shaped('refinedstorage:creative_wireless_grid', [
    'TIT',
    'IGI',
    'TIT'
  ], {
    T: 'refinedstorage:wireless_transmitter',
    I: 'avaritia:infinity_ingot',
    G: 'refinedstorage:wireless_grid'
  })

  // 22. Refined Storage Creative Wireless Fluid Grid
  event.shaped('refinedstorage:creative_wireless_fluid_grid', [
    'TIT',
    'IGI',
    'TIT'
  ], {
    T: 'refinedstorage:wireless_transmitter',
    I: 'avaritia:infinity_ingot',
    G: 'refinedstorage:wireless_fluid_grid'
  })

  // 23. Refined Storage Creative Wireless Crafting Monitor
  event.shaped('refinedstorage:creative_wireless_crafting_monitor', [
    'TIT',
    'IMI',
    'TIT'
  ], {
    T: 'refinedstorage:wireless_transmitter',
    I: 'avaritia:infinity_ingot',
    M: 'refinedstorage:wireless_crafting_monitor'
  })

  // 24. Refined Storage Addons Creative Wireless Crafting Grid
  event.shaped('refinedstorageaddons:creative_wireless_crafting_grid', [
    'TIT',
    'IGI',
    'TIT'
  ], {
    T: 'refinedstorage:wireless_transmitter',
    I: 'avaritia:infinity_ingot',
    G: 'refinedstorageaddons:wireless_crafting_grid'
  })

  // 25. RSInfinityBooster Dimension Card
  event.shaped('rsinfinitybooster:dimension_card', [
    'EIE',
    'SCS',
    'EIE'
  ], {
    E: 'minecraft:ender_pearl',
    I: 'avaritia:infinity_ingot',
    S: 'minecraft:nether_star',
    C: 'rsinfinitybooster:infinity_card'
  })

  // 26. Functional Storage Creative Vending Upgrade
  event.shaped('functionalstorage:creative_vending_upgrade', [
    'GIG',
    'SNS',
    'GIG'
  ], {
    G: 'functionalstorage:gold_upgrade',
    I: 'avaritia:infinity_ingot',
    S: 'minecraft:nether_star',
    N: 'functionalstorage:netherite_upgrade'
  })

  // 27. Storage Drawers Creative Vending Upgrade
  event.shaped('storagedrawers:creative_vending_upgrade', [
    'EIE',
    'STS',
    'EIE'
  ], {
    E: 'minecraft:emerald_block',
    I: 'avaritia:infinity_ingot',
    S: 'minecraft:nether_star',
    T: 'storagedrawers:upgrade_template'
  })

  // 28. Storage Drawers Creative Storage Upgrade
  event.shaped('storagedrawers:creative_storage_upgrade', [
    'DID',
    'IUI',
    'DID'
  ], {
    D: 'minecraft:diamond_block',
    I: 'avaritia:infinity_ingot',
    U: 'storagedrawers:obsidian_storage_upgrade'
  })

  // 29. Blood Magic Creative Activation Crystal
  event.shaped('bloodmagic:activationcrystalcreative', [
    'DID',
    'OAO',
    'DID'
  ], {
    D: 'bloodmagic:demonslate',
    I: 'avaritia:infinity_ingot',
    O: 'bloodmagic:archmagebloodorb',
    A: 'bloodmagic:activationcrystalawakened'
  })

  // 30. Immersive Engineering Creative Capacitor
  event.shaped('immersiveengineering:capacitor_creative', [
    'HIH',
    'ICI',
    'HIH'
  ], {
    H: 'immersiveengineering:heavy_engineering',
    I: 'avaritia:infinity_ingot',
    C: 'immersiveengineering:capacitor_hv'
  })

  // 32. Mystical Agriculture Creative Soulium Dagger
  event.shaped('mysticalagriculture:creative_soulium_dagger', [
    'AIA',
    'ADA',
    'AIA'
  ], {
    A: 'mysticalagriculture:awakened_supremium_ingot',
    I: 'avaritia:infinity_ingot',
    D: 'mysticalagriculture:soulium_dagger'
  })

  // 33. Tinkers' Construct Creative Slot
  event.shaped('tconstruct:creative_slot', [
    'MIM',
    'HNS',
    'MIM'
  ], {
    M: 'tconstruct:manyullyn_ingot',
    I: 'avaritia:infinity_ingot',
    H: 'tconstruct:hepatizon_ingot',
    N: 'minecraft:nether_star',
    S: 'tconstruct:queens_slime_ingot'
  })

  // 36. Extreme Reactors Basic Turbine Creative Steam Generator
  event.shaped('bigreactors:basic_turbinecreativesteamgenerator', [
    'SIS',
    'NIN',
    'SIS'
  ], {
    S: 'bigreactors:basic_turbinerotorshaft',
    I: 'avaritia:infinity_ingot',
    N: 'minecraft:nether_star'
  })

  // 37. Extreme Reactors Reinforced Reactor Creative Water Generator
  event.shaped('bigreactors:reinforced_reactorcreativewatergenerator', [
    'CIC',
    'NCN',
    'CIC'
  ], {
    C: 'bigreactors:reinforced_reactorcasing',
    I: 'avaritia:infinity_ingot',
    N: 'minecraft:nether_star'
  })

  // 38. Extreme Reactors Reinforced Turbine Creative Steam Generator
  event.shaped('bigreactors:reinforced_turbinecreativesteamgenerator', [
    'CIC',
    'NCN',
    'CIC'
  ], {
    C: 'bigreactors:reinforced_turbinecasing',
    I: 'avaritia:infinity_ingot',
    N: 'minecraft:nether_star'
  })

  // 40. Pugmeowla's Infinity Generator
  event.shaped('infinitygenerator:infinity_generator', [
    'RIR',
    'DND',
    'RIR'
  ], {
    R: 'minecraft:redstone_block',
    I: 'avaritia:infinity_ingot',
    D: 'minecraft:diamond_block',
    N: 'minecraft:nether_star'
  })

  // 41. Project Expansion Infinite Fuel
  event.shaped('projectexpansion:infinite_fuel', [
    'AIA',
    'DSD',
    'AIA'
  ], {
    A: 'projecte:aeternalis_fuel',
    I: 'avaritia:infinity_ingot',
    D: 'projecte:dark_matter',
    S: 'minecraft:nether_star'
  })

  // 42. Project Expansion Infinite Steak
  event.shaped('projectexpansion:infinite_steak', [
    'CIC',
    'RSR',
    'CIC'
  ], {
    C: 'minecraft:cooked_beef',
    I: 'avaritia:infinity_ingot',
    R: 'projecte:red_matter',
    S: 'minecraft:nether_star'
  })

  // 43. Project Expansion Transmutation Interface
  event.shaped('projectexpansion:transmutation_interface', [
    'SIS',
    'ITI',
    'SIS'
  ], {
    S: 'projectexpansion:final_star_shard',
    I: 'avaritia:infinity_ingot',
    T: 'projecte:transmutation_table'
  })

  // 44. Project Expansion Final Star
  event.shaped('projectexpansion:final_star', [
    'RIR',
    'ICO',
    'RIR'
  ], {
    R: 'projecte:red_matter_block',
    I: 'avaritia:infinity_ingot',
    C: 'projectexpansion:colossal_star_omega',
    O: 'avaritia:infinity_ingot'
  })

  // 45. ProjectE Transmutation Tablet
  event.shaped('projecte:transmutation_tablet', [
    'DID',
    'ITI',
    'DID'
  ], {
    D: 'projecte:dark_matter_block',
    I: 'avaritia:infinity_ingot',
    T: 'projecte:transmutation_table'
  })
})
