ServerEvents.recipes(event => {

  // ─── Nightmare Sword ───
  event.shaped('lethality:nightmare_sword', [
    ' AB',
    'CDA',
    'EF '
  ], {
    A: 'lethality:annihilation_alloy',
    B: 'armageddon_mod:bloody_sword',
    C: 'lethality:devils_devastation',
    D: 'lethality:gaels_greatsword',
    E: 'armageddon_mod:creative_obliterator',
    F: 'ancient_elements:aeonite_sword'
  })

  // ─── Gael's Greatsword ───
  event.shaped('lethality:gaels_greatsword', [
    '  A',
    'BCD',
    'EB '
  ], {
    A: 'minecraft:stick',
    B: 'lethality:annihilation_alloy',
    C: 'armageddon_mod:the_duskfire_blade',
    D: 'composite_material:etherite_sword',
    E: 'terramity:sword_of_the_imprisoned'
  })

  // ─── Aeonite Armor ───
  event.shaped('ancient_elements:aeonite_helmet', [
    ' A ',
    'BCD',
    '   '
  ], {
    A: 'ancient_elements:galactrium_helmet',
    B: 'composite_material:etherite_helmet',
    C: 'ancient_elements:alloy_of_elements',
    D: 'armageddon_mod:helionite_armor_helmet'
  })

  event.shaped('ancient_elements:aeonite_chestplate', [
    ' A ',
    'BCD',
    '   '
  ], {
    A: 'ancient_elements:galactrium_chestplate',
    B: 'composite_material:etherite_chestplate',
    C: 'ancient_elements:alloy_of_elements',
    D: 'armageddon_mod:helionite_armor_chestplate'
  })

  event.shaped('ancient_elements:aeonite_leggings', [
    ' A ',
    'BCD',
    '   '
  ], {
    A: 'ancient_elements:galactrium_leggings',
    B: 'composite_material:etherite_leggings',
    C: 'ancient_elements:alloy_of_elements',
    D: 'armageddon_mod:helionite_armor_leggings'
  })

  event.shaped('ancient_elements:aeonite_boots', [
    ' A ',
    'BCD',
    '   '
  ], {
    A: 'ancient_elements:galactrium_boots',
    B: 'composite_material:etherite_boots',
    C: 'ancient_elements:alloy_of_elements',
    D: 'armageddon_mod:helionite_armor_boots',
  })

  // ─── Royal Guardian Sword ───
  event.shaped('brutality:royal_guardian_sword', [
    ' AB',
    'CBD',
    'EC '
  ], {
    A: 'armageddon_mod:true_helionite_sword',
    B: 'cataclysm:essence_of_the_storm',
    C: 'armageddon_mod:shadowed_ingot',
    D: 'ancient_elements:hellstone_sword',
    E: 'lethality:gaels_greatsword'
  })

  // ─── True Helionite Sword ───
  event.shaped('armageddon_mod:true_helionite_sword', [
    '  A',
    'BC ',
    'DB '
  ], {
    A: 'armageddon_mod:umbral_sun',
    B: 'armageddon_mod:helionite_ingot',
    C: 'armageddon_mod:helionite_sword',
    D: 'armageddon_mod:rustyswordofthelegendaryhero'
  })

  // ─── Vehemence ───
  event.shaped('lethality:vehemence', [
    ' AA',
    'ABC',
    'D  '
  ], {
    A: 'lethality:annihilation_alloy',
    B: 'terramity:sword_of_the_imprisoned',
    C: 'terramity:hellspec_alloy',
    D: 'composite_material:etherite_shovel'
  })

  // ─── Real Knife ───
  event.shaped('lethality:real_knife', [
    ' AA',
    'BBC',
    'D  '
  ], {
    A: 'terramity:hellspec_alloy',
    B: 'armageddon_mod:bloody_ingot',
    C: 'terramity:decayed_bedrock_dust',
    D: 'terramity:hellspec_sword'
  })

  // ─── Apollyon Full ───
  event.shaped('kubejs:apollyon_full', [
    'ABC',
    'DDD',
    'EFG'
  ], {
    A: 'kubejs:apollyon_top_left',
    B: 'kubejs:apollyon_top_mid',
    C: 'kubejs:apollyon_top_right',
    D: 'armageddon_mod:shadowed_ingot',
    E: 'kubejs:apollyon_bottom_left',
    F: 'kubejs:apollyon_bottom_mid',
    G: 'kubejs:apollyon_bottom_right'
  })

  // ─── Explorer's Compass ───
  event.shaped('explorerscompass:explorerscompass', [
    'ABA',
    'CDE',
    'AFA'
  ], {
    A: 'minecraft:netherite_ingot',
    B: 'minecraft:ender_pearl',
    C: 'minecraft:ender_pearl',
    D: 'minecraft:compass',
    E: 'minecraft:ender_pearl',
    F: 'minecraft:ender_pearl'
  })

  // ─── Enigmatic Elytra ───
  event.shaped('enigmaticlegacy:enigmatic_elytra', [
    'ABA',
    'CDC',
    'EFE'
  ], {
    A: 'minecraft:dragon_breath',
    B: 'enigmaticlegacy:angel_blessing',
    C: 'bossesunleashed:celestial_jelly',
    D: 'minecraft:elytra',
    E: 'enigmaticlegacy:astral_dust',
    F: 'enigmaticlegacy:eye_of_nebula'
  })

  // ─── Celestial Jellyfish → Aeonite conversion (shapeless) ───
  event.shapeless('ancient_elements:aeonite_helmet', ['bossesunleashed:celestial_jellyfish_mask'])
  event.shapeless('ancient_elements:aeonite_chestplate', ['bossesunleashed:celestial_jellyfish_chestplate'])
  event.shapeless('ancient_elements:aeonite_leggings', ['bossesunleashed:celestial_jellyfish_leggings'])
  event.shapeless('ancient_elements:aeonite_boots', ['bossesunleashed:celestial_jellyfish_boots'])

  // ─── Stone Sword (deepslate) ───
  event.shaped('minecraft:stone_sword', [
    ' A ',
    ' A ',
    ' B '
  ], {
    A: 'minecraft:cobbled_deepslate',
    B: 'minecraft:stick'
  })

  // ─── Sword of the Imprisoned ───
  event.shaped('terramity:sword_of_the_imprisoned', [
    'ABC',
    'DEB',
    'FDG'
  ], {
    A: 'lethality:miasma',
    B: 'terramity:void_alloy',
    C: 'composite_material:echoium_sword',
    D: 'terramity:exodium_superalloy',
    E: 'terramity:hero_sword',
    F: 'lethality:defiled_greatsword',
    G: 'ancient_elements:galactrium_sword'
  })

  // ─── Voiderite Bricks Slab (6x output) ───
  event.shaped(
    Item.of('armageddon_mod:voiderite_bricks_slab', 6),
    [
      'AAA',
      'AAA'
    ], {
      A: 'armageddon_mod:voiderite_bricks'
    }
  )

  // ─── Elvenite Bricks Slab (6x output) ───
  event.shaped(
    Item.of('armageddon_mod:elvenite_bricks_slab', 6),
    [
      'AAA',
      'AAA'
    ], {
      A: 'armageddon_mod:elvenite_bricks'
    }
  )

  // ─── Helionite Bricks ───
  event.shapeless(
    Item.of('armageddon_mod:helionite_bricks', 8),
    [
      'armageddon_mod:chiseled_helionite_bricks',
      'armageddon_mod:chiseled_helionite_bricks',
      'armageddon_mod:chiseled_helionite_bricks',
      'armageddon_mod:chiseled_helionite_bricks'
    ]
  )

  event.shaped(
    Item.of('armageddon_mod:helionite_bricks', 8),
    [
      'AAA',
      'ABA',
      'AAA'
    ], {
      A: 'minecraft:stone_bricks',
      B: 'armageddon_mod:helionite_ingot'
    }
  )

  // ─── Mossy Helionite (shapeless instead of fake-shaped) ───
  event.shapeless('armageddon_mod:mossy_helionite_stairs', [
    'armageddon_mod:helionite_bricks_stairs',
    'minecraft:moss_block'
  ])
  event.shapeless('armageddon_mod:mossy_helionite_stairs', [
    'armageddon_mod:helionite_bricks_stairs',
    'minecraft:vine'
  ])
  event.shapeless('armageddon_mod:mossy_helionite_bricks', [
    'armageddon_mod:helionite_bricks',
    'minecraft:vine'
  ])
  event.shapeless('armageddon_mod:mossy_helionite_bricks', [
    'armageddon_mod:helionite_bricks',
    'minecraft:moss_block'
  ])

  // ─── Bloody Bricks ───
  event.shapeless(
    Item.of('armageddon_mod:bloody_bricks', 8),
    [
      'armageddon_mod:chiseled_bloody_bricks',
      'armageddon_mod:chiseled_bloody_bricks',
      'armageddon_mod:chiseled_bloody_bricks',
      'armageddon_mod:chiseled_bloody_bricks'
    ]
  )

  event.shaped(
    Item.of('armageddon_mod:bloody_bricks', 8),
    [
      'AAA',
      'ABA',
      'AAA'
    ], {
      A: 'minecraft:stone_bricks',
      B: 'armageddon_mod:bloody_ingot'
    }
  )

  // ─── Mossy Bloody (shapeless instead of fake-shaped) ───
  event.shapeless('armageddon_mod:mossy_bloody_stairs', [
    'armageddon_mod:bloody_bricks_stairs',
    'minecraft:vine'
  ])
  event.shapeless('armageddon_mod:mossy_bloody_stairs', [
    'armageddon_mod:bloody_bricks_stairs',
    'minecraft:moss_block'
  ])
  event.shapeless('armageddon_mod:mossy_bloody_bricks', [
    'armageddon_mod:bloody_bricks',
    'minecraft:moss_block'
  ])
  event.shapeless('armageddon_mod:mossy_bloody_bricks', [
    'armageddon_mod:bloody_bricks',
    'minecraft:vine'
  ])

  // ─── Helionite Paxel ───
  event.shaped('armageddon_mod:helionite_paxel', [
    'ABC',
    ' D ',
    ' D '
  ], {
    A: 'armageddon_mod:helionite_axe',
    B: 'armageddon_mod:helionite_shovel',
    C: 'armageddon_mod:helionite_pickaxe',
    D: 'minecraft:stick'
  })

  // ─── Name Tag ───
  event.shaped('minecraft:name_tag', [
    '  A',
    ' B ',
    'C  '
  ], {
    A: 'minecraft:string',
    B: 'minecraft:iron_ingot',
    C: 'minecraft:paper'
  })

  event.shaped('terramity:sacred_speed_bracelets', [
    'ABA',
    'CDC',
    'EBE'
  ], {
    A: 'ancient_elements:alloy_of_elements',
    B: 'terramity:angel_feather',
    C: 'ancient_elements:spectrillium_ingot',
    D: 'terramity:electron_bracelets',
    E: 'terramity:reverium'
  })

  // ─── Violence ───
  event.shaped('lethality:violence', [
    ' AB',
    'CBA',
    'DC '
  ], {
    A: 'terramity:spiteful_soul',
    B: 'terramity:hellspec_alloy',
    C: 'lethality:annihilation_alloy',
    D: 'composite_material:etherite_wand'
  })

  // ─── HF Meowrasama ───
  event.shaped('lethality:hf_meowrasama', [
    ' AB',
    'ACA',
    'DA '
  ], {
    A: 'lethality:pixie_alloy',
    B: 'ancient_elements:alloy_of_elements',
    C: 'terramity:conductite_sword',
    D: 'terramity:simmeredge'
  })

  // ─── Gluttony ───
  event.shaped('brutality:gluttony', [
    'ABA',
    'BCB',
    'ABA'
  ], {
    A: 'armageddon_mod:shadowed_ingot',
    B: 'terramity:virentium_alloy_ingot',
    C: 'minecraft:emerald'
  })

  // ─── Summoning Altar ───
  event.shaped('summoningrituals:altar', [
    'ABA',
    ' C ',
    'DDD'
  ], {
    A: 'minecraft:gold_ingot',
    B: 'minecraft:red_wool',
    C: 'minecraft:cobbled_deepslate',
    D: 'minecraft:dark_oak_planks'
  })

  // ─── Galena Chunk ───
  event.shaped('tiered:galena_chunk', [
    ' A ',
    'ABA',
    ' A '
  ], {
    A: 'tiered:pyrite_chunk',
    B: 'armageddon_mod:shadowed_ingot'
  })

  // ─── Pyrite Chunk (2x output) ───
  event.shaped(
    Item.of('tiered:pyrite_chunk', 2),
    [
      ' A ',
      'ABA',
      ' C '
    ], {
      A: 'minecraft:gold_ingot',
      B: 'tiered:pyrite_chunk',
      C: 'minecraft:diamond'
    }
  )

  // ─── Starlight ───
  event.shaped('lethality:starlight', [
    '  A',
    'BA ',
    'CD '
  ], {
    A: 'terramity:reverium',
    B: 'composite_material:etherite_sword',
    C: 'lethality:hf_meowrasama',
    D: 'lethality:devils_devastation'
  })

  // ─── Katana & Sakura Ghost Katana ───
  event.shaped('tdmweaponsreforged:katana', [
    '  A',
    ' A ',
    'B  '
  ], {
    A: 'minecraft:netherite_ingot',
    B: 'simplyswords:netherite_katana'
  })

  event.shaped('tdmweaponsreforged:sakura_ghostkatana', [
    '  A',
    ' B ',
    'C  '
  ], {
    A: 'minecraft:cherry_sapling',
    B: 'lethality:pixie_alloy',
    C: 'tdmweaponsreforged:katana'
  })

  // ─── Nightfall ───
  event.shaped('lethality:nightfall', [
    'ABC',
    'DEB',
    'FDA'
  ], {
    A: 'terramity:exodium_superalloy',
    B: 'terramity:dimlite_ingot',
    C: 'terramity:warden_soul',
    D: 'terramity:void_alloy',
    E: 'terramity:cracked_microcosm',
    F: 'terramity:hellrok_gigaton_hammer'
  })
  event.shaped(
    Item.of('kubejs:heart_of_the_end'),
    [
        'ABA',
        'BCB',
        'ABA'
    ],
    {
        B: 'minecraft:ender_pearl',
        C: 'kubejs:heart_of_the_depth',
        A: 'minecraft:purple_wool'
    }
)

  event.shaped(
    Item.of('celestisynth:breezebreaker'),
    [
        '  A',
        'BAA',
        'CA '
    ],
    {
        B: 'celestisynth:supernal_netherite_ingot',
        A: 'celestisynth:starstruck_feather',
        C: 'simplyswords:netherite_katana'
    }
  )

  event.shaped(
    Item.of('celestisynth:crescentia'),
    [
        ' AA',
        'B A',
        'C  '
    ],
    {
        C: 'simplyswords:netherite_chakram',
        A: 'celestisynth:starstruck_scrap',
        B: 'celestisynth:celestial_netherite_ingot'
    }
  )

  event.shaped(
    Item.of('celestisynth:solaris'),
    [
        '  A',
        'ABC',
        'DC '
    ],
    {
        C: 'minecraft:fire_charge',
        A: 'celestisynth:supernal_netherite_ingot',
        B: 'terramity:profanum',
        D: 'simplymore:netherite_khopesh'
    }
)

event.shaped(
    Item.of('celestisynth:poltergeist'),
    [
        ' A ',
        'BBB',
        'C A'
    ],
    {
        C: 'simplyswords:netherite_greataxe',
        A: 'celestisynth:celestial_netherite_ingot',
        B: 'celestisynth:eyebomination'
    }
)
event.shaped(
    Item.of('celestisynth:frostbound'),
    [
        ' AA',
        'B  ',
        'C  '
    ],
    {
        C: 'simplyswords:netherite_scythe',
        B: 'celestisynth:celestial_netherite_ingot',
        A: 'celestisynth:wintereis_shard'
    }
)

event.shaped(
    Item.of('celestisynth:rainfall_serenity'),
    [
        ' AA',
        'ABC',
        'AC '
    ],
    {
        B: 'too_many_bows:cyroheart_bow',
        A: 'celestisynth:celestial_netherite_ingot',
        C: 'callfromthedepth_:soulingot'
    }
)
event.shaped(
    Item.of('celestisynth:aquaflora'),
    [
        '  A',
        'BA ',
        'CA '
    ],
    {
        A: 'celestisynth:lunar_scrap',
        B: 'celestisynth:celestial_netherite_ingot',
        C: 'simplymore:netherite_backhand_blade'
    }
)
event.shaped(
    Item.of('celestisynth:keres'),
    [
        ' AA',
        '  B',
        'AC '
    ],
    {
        A: 'cataclysm:cursium_ingot',
        C: 'terramity:void_sword',
        B: 'armageddon_mod:bloody_hoe'
    }
)
})

