ServerEvents.recipes(event => {
  const WITHERITE = 'cataclysm:witherite_ingot'

  const cores = [
    {
      output: 'iceandfire:dragonforge_fire_core_disabled',
      brick: 'iceandfire:dragonforge_fire_brick',
      heart: 'iceandfire:fire_dragon_heart',
      name: 'fire'
    },
    {
      output: 'iceandfire:dragonforge_ice_core_disabled',
      brick: 'iceandfire:dragonforge_ice_brick',
      heart: 'iceandfire:ice_dragon_heart',
      name: 'ice'
    },
    {
      output: 'iceandfire:dragonforge_lightning_core_disabled',
      brick: 'iceandfire:dragonforge_lightning_brick',
      heart: 'iceandfire:lightning_dragon_heart',
      name: 'lightning'
    }
  ]

  cores.forEach(core => {
    event.remove({ output: core.output })

    event.shaped(core.output, [
      'BWB',
      'BHB',
      'BBB'
    ], {
      B: core.brick,
      W: WITHERITE,
      H: core.heart
    }).id(`strange_aeons:iceandfire/dragonforge_${core.name}_core_witherite`)
  })
})