ServerEvents.recipes(event => {
    event.remove({id: 'iceandfire:dragonforge/dragonsteel_lightning_ingot'})
    event.remove({id: 'iceandfire:dragonforge/dragonsteel_ice_ingot'})
    event.remove({id: 'iceandfire:dragonforge/dragonsteel_fire_ingot'})
    event.remove({id: 'iceandfire:dragonforge/ice_dragonsteel_bee'})
    event.remove({id: 'iceandfire:dragonforge/fire_dragonsteel_bee'})
    event.remove({id: 'iceandfire:dragonforge/lightning_dragonsteel_bee'})
})
  
ServerEvents.recipes(event => {
    //Fire Dragonsteel - Fire Dragon
    event.custom({
        "type": "iceandfire:dragonforge",
        "dragon_type": "fire",
        "cook_time": 1000,
        "input": {
          "tag": "forge:ingots/dragonsteel"
        },
        "blood": {
          "item": "iceandfire:fire_dragon_blood"
        },
        "result": {
          "item": "iceandfire:dragonsteel_fire_ingot"
        }
    })
      
    //Fire Dragonsteel - Ice Dragon
    event.custom({
        "type": "iceandfire:dragonforge",
        "dragon_type": "ice",
        "cook_time": 1000,
        "input": {
          "tag": "forge:ingots/dragonsteel"
        },
        "blood": {
          "item": "iceandfire:fire_dragon_blood"
        },
        "result": {
          "item": "iceandfire:dragonsteel_fire_ingot"
        }
    })
      
    //Fire Dragonsteel - Lightning Dragon
    event.custom({
        "type": "iceandfire:dragonforge",
        "dragon_type": "lightning",
        "cook_time": 1000,
        "input": {
          "tag": "forge:ingots/dragonsteel"
        },
        "blood": {
          "item": "iceandfire:fire_dragon_blood"
        },
        "result": {
          "item": "iceandfire:dragonsteel_fire_ingot"
        }
    })

    //Ice Dragonsteel - Fire Dragon
    event.custom({
        "type": "iceandfire:dragonforge",
        "dragon_type": "fire",
        "cook_time": 1000,
        "input": {
          "tag": "forge:ingots/dragonsteel"
        },
        "blood": {
          "item": "iceandfire:ice_dragon_blood"
        },
        "result": {
          "item": "iceandfire:dragonsteel_ice_ingot"
        }
    })
      
    //Ice Dragonsteel - Ice Dragon
    event.custom({
        "type": "iceandfire:dragonforge",
        "dragon_type": "ice",
        "cook_time": 1000,
        "input": {
          "tag": "forge:ingots/dragonsteel"
        },
        "blood": {
          "item": "iceandfire:ice_dragon_blood"
        },
        "result": {
          "item": "iceandfire:dragonsteel_ice_ingot"
        }
    })
      
    //Ice Dragonsteel - Lightning Dragon
    event.custom({
        "type": "iceandfire:dragonforge",
        "dragon_type": "lightning",
        "cook_time": 1000,
        "input": {
          "tag": "forge:ingots/dragonsteel"
        },
        "blood": {
          "item": "iceandfire:ice_dragon_blood"
        },
        "result": {
          "item": "iceandfire:dragonsteel_ice_ingot"
        }
    })

    //Lightning Dragonsteel - Fire Dragon
    event.custom({
        "type": "iceandfire:dragonforge",
        "dragon_type": "fire",
        "cook_time": 1000,
        "input": {
          "tag": "forge:ingots/dragonsteel"
        },
        "blood": {
          "item": "iceandfire:lightning_dragon_blood"
        },
        "result": {
          "item": "iceandfire:dragonsteel_lightning_ingot"
        }
    })
      
    //Lightning Dragonsteel - Ice Dragon
    event.custom({
        "type": "iceandfire:dragonforge",
        "dragon_type": "ice",
        "cook_time": 1000,
        "input": {
          "tag": "forge:ingots/dragonsteel"
        },
        "blood": {
          "item": "iceandfire:lightning_dragon_blood"
        },
        "result": {
          "item": "iceandfire:dragonsteel_lightning_ingot"
        }
    })
      
    //Lightning Dragonsteel - Lightning Dragon
    event.custom({
        "type": "iceandfire:dragonforge",
        "dragon_type": "lightning",
        "cook_time": 1000,
        "input": {
          "tag": "forge:ingots/dragonsteel"
        },
        "blood": {
          "item": "iceandfire:lightning_dragon_blood"
        },
        "result": {
          "item": "iceandfire:dragonsteel_lightning_ingot"
        }
    })

    //Lightning Dragonsteel Bee - Fire Dragon
    event.custom({
        "type": "iceandfire:dragonforge",
        "dragon_type": "fire",
        "cook_time": 1000,
        "input": {
          "type": "forge:nbt",
          "item": "productivebees:spawn_egg_configurable_bee",
          "nbt": {
            "EntityTag": {
              "type": "productivebees:draconic"
            }
          }
        },
        "blood": {
          "item": "iceandfire:lightning_dragon_blood"
        },
        "result": {
          "type": "forge:nbt",
          "item": "productivebees:spawn_egg_configurable_bee",
          "nbt": {
            "EntityTag": {
              "type": "productivebees:lightning_dragonsteel"
            }
          }
        }
    })
      
    //Lightning Dragonsteel Bee - Ice Dragon
    event.custom({
        "type": "iceandfire:dragonforge",
        "dragon_type": "ice",
        "cook_time": 1000,
        "input": {
          "type": "forge:nbt",
          "item": "productivebees:spawn_egg_configurable_bee",
          "nbt": {
            "EntityTag": {
              "type": "productivebees:draconic"
            }
          }
        },
        "blood": {
          "item": "iceandfire:lightning_dragon_blood"
        },
        "result": {
          "type": "forge:nbt",
          "item": "productivebees:spawn_egg_configurable_bee",
          "nbt": {
            "EntityTag": {
              "type": "productivebees:lightning_dragonsteel"
            }
          }
        }
    })
      
    //Lightning Dragonsteel Bee - Lightning Dragon
    event.custom({
        "type": "iceandfire:dragonforge",
        "dragon_type": "lightning",
        "cook_time": 1000,
        "input": {
          "type": "forge:nbt",
          "item": "productivebees:spawn_egg_configurable_bee",
          "nbt": {
            "EntityTag": {
              "type": "productivebees:draconic"
            }
          }
        },
        "blood": {
          "item": "iceandfire:lightning_dragon_blood"
        },
        "result": {
          "type": "forge:nbt",
          "item": "productivebees:spawn_egg_configurable_bee",
          "nbt": {
            "EntityTag": {
              "type": "productivebees:lightning_dragonsteel"
            }
          }
        }
    })

    //Fire Dragonsteel Bee - Fire Dragon
    event.custom({
        "type": "iceandfire:dragonforge",
        "dragon_type": "fire",
        "cook_time": 1000,
        "input": {
          "type": "forge:nbt",
          "item": "productivebees:spawn_egg_configurable_bee",
          "nbt": {
            "EntityTag": {
              "type": "productivebees:draconic"
            }
          }
        },
        "blood": {
          "item": "iceandfire:fire_dragon_blood"
        },
        "result": {
          "type": "forge:nbt",
          "item": "productivebees:spawn_egg_configurable_bee",
          "nbt": {
            "EntityTag": {
              "type": "productivebees:fire_dragonsteel"
            }
          }
        }
    })
      
    //Fire Dragonsteel Bee - Ice Dragon
    event.custom({
        "type": "iceandfire:dragonforge",
        "dragon_type": "ice",
        "cook_time": 1000,
        "input": {
          "type": "forge:nbt",
          "item": "productivebees:spawn_egg_configurable_bee",
          "nbt": {
            "EntityTag": {
              "type": "productivebees:draconic"
            }
          }
        },
        "blood": {
          "item": "iceandfire:fire_dragon_blood"
        },
        "result": {
          "type": "forge:nbt",
          "item": "productivebees:spawn_egg_configurable_bee",
          "nbt": {
            "EntityTag": {
              "type": "productivebees:fire_dragonsteel"
            }
          }
        }
    })
      
    //Fire Dragonsteel Bee - Lightning Dragon
    event.custom({
        "type": "iceandfire:dragonforge",
        "dragon_type": "lightning",
        "cook_time": 1000,
        "input": {
          "type": "forge:nbt",
          "item": "productivebees:spawn_egg_configurable_bee",
          "nbt": {
            "EntityTag": {
              "type": "productivebees:draconic"
            }
          }
        },
        "blood": {
          "item": "iceandfire:fire_dragon_blood"
        },
        "result": {
          "type": "forge:nbt",
          "item": "productivebees:spawn_egg_configurable_bee",
          "nbt": {
            "EntityTag": {
              "type": "productivebees:fire_dragonsteel"
            }
          }
        }
    })

    //Ice Dragonsteel Bee - Fire Dragon
    event.custom({
        "type": "iceandfire:dragonforge",
        "dragon_type": "fire",
        "cook_time": 1000,
        "input": {
          "type": "forge:nbt",
          "item": "productivebees:spawn_egg_configurable_bee",
          "nbt": {
            "EntityTag": {
              "type": "productivebees:draconic"
            }
          }
        },
        "blood": {
          "item": "iceandfire:ice_dragon_blood"
        },
        "result": {
          "type": "forge:nbt",
          "item": "productivebees:spawn_egg_configurable_bee",
          "nbt": {
            "EntityTag": {
              "type": "productivebees:ice_dragonsteel"
            }
          }
        }
    })
      
    //Ice Dragonsteel Bee - Ice Dragon
    event.custom({
        "type": "iceandfire:dragonforge",
        "dragon_type": "ice",
        "cook_time": 1000,
        "input": {
          "type": "forge:nbt",
          "item": "productivebees:spawn_egg_configurable_bee",
          "nbt": {
            "EntityTag": {
              "type": "productivebees:draconic"
            }
          }
        },
        "blood": {
          "item": "iceandfire:ice_dragon_blood"
        },
        "result": {
          "type": "forge:nbt",
          "item": "productivebees:spawn_egg_configurable_bee",
          "nbt": {
            "EntityTag": {
              "type": "productivebees:ice_dragonsteel"
            }
          }
        }
    })
      
    //Ice Dragonsteel Bee - Lightning Dragon
    event.custom({
        "type": "iceandfire:dragonforge",
        "dragon_type": "lightning",
        "cook_time": 1000,
        "input": {
          "type": "forge:nbt",
          "item": "productivebees:spawn_egg_configurable_bee",
          "nbt": {
            "EntityTag": {
              "type": "productivebees:draconic"
            }
          }
        },
        "blood": {
          "item": "iceandfire:ice_dragon_blood"
        },
        "result": {
          "type": "forge:nbt",
          "item": "productivebees:spawn_egg_configurable_bee",
          "nbt": {
            "EntityTag": {
              "type": "productivebees:ice_dragonsteel"
            }
          }
        }
    })

    //Lightning Dragon Blood
    event.custom({
      "type": "lychee:lightning_channeling",
      "hide_in_viewer": false,
      "post": [
        {
          "type": "drop_item",
          "item": "iceandfire:lightning_dragon_blood",
          "count": 1
        }
      ],
      "item_in": [
        {
          "tag": "iceandfire:dragon_bloods"
        }
      ]
  })
})
  