// priority: 0
// made by odin

ServerEvents.recipes(event => {
  // Remove default recipes
  var pieces = ['mask', 'chestplate', 'leggings', 'boots']
  pieces.forEach(function(piece) {
    event.remove({ output: 'bossesunleashed:celestial_jellyfish_' + piece })
    event.remove({ input: 'bossesunleashed:celestial_jellyfish_' + piece })
  })

  // Smithing replacements
  var smithingPairs = [
    ['mask', 'aeonite_helmet'],
    ['chestplate', 'aeonite_chestplate'],
    ['leggings', 'aeonite_leggings'],
    ['boots', 'aeonite_boots']
  ]

  smithingPairs.forEach(function(pair) {
    event.smithing(
      'bossesunleashed:celestial_jellyfish_' + pair[0],
      'ancient_elements:galactrium_smithing_template',
      'ancient_elements:' + pair[1],
      'bossesunleashed:celestial_jelly'
    )
  })
})
