// Recipes for the endgame, creative items, and returning home.

ServerEvents.recipes(event => {

// Remove gem armor and projecte comb red matter items
event.remove({output: 'projecte:gem_helmet'})
event.remove({output: 'projecte:gem_chestplate'})
event.remove({output: 'projecte:gem_leggings'})
event.remove({output: 'projecte:gem_boots'})
event.remove({output: 'projecte:rm_katar'})
event.remove({output: 'projecte:rm_morning_star'})

// Better Endgame
// Black Box Controller
event.custom({
  "type": "draconicevolution:fusion_crafting",
  "catalyst": {
    "item": "kubejs:black_box_casing"
  },
  "ingredients": [
    {
      "item": "mekanismgenerators:fusion_reactor_controller"
    },
	{
      "item": "mekanism:thermal_evaporation_controller"
    },
	{
      "item": "mekanism:quantum_entangloporter"
    },
    {
      "item": "bigreactors:reinforced_reactorcontroller"
    },
	{
      "item": "bigreactors:reinforced_turbinecontroller"
    },
	{
      "item": "mekanism:antiprotonic_nucleosynthesizer"
    },
	{
      "item": "mekanism_extras:infinite_control_circuit"
    },
	{
      "item": "mekanism_extras:naquadah_reactor_controller"
    }
  ],
  "result": {
    "item": "mbd2:black_box"
  },
  "tier": "DRACONIC",
  "total_energy": 100000000
})

// Black Box Flux Port
event.custom({
  "type": "draconicevolution:fusion_crafting",
  "catalyst": {
    "item": "kubejs:black_box_casing"
  },
  "ingredients": [
    {
      "item": "mekanism_extras:infinite_energy_cube"
    },
	{
      "item": "mekanism:ultimate_induction_cell"
    },
	{
      "item": "mekanismgenerators:laser_focus_matrix"
    },
    {
      "item": "mekanism_extras:infinite_control_circuit"
    }
  ],
  "result": {
    "item": "mbd2:black_box_flux_port"
  },
  "tier": "DRACONIC",
  "total_energy": 100000000
})

// Clocks
event.custom({
  "type": "draconicevolution:fusion_crafting",
  "catalyst": {
    "item": "minecraft:clock"
  },
  "ingredients": [
    {
      "item": "mekanism_extras:infinite_control_circuit"
    },
    {
      "item": "mekanism:industrial_alarm"
    },
	{
      "item": "mekanism:geiger_counter"
    },
	{
      "item": "mekanism:seismic_reader"
    }
  ],
  "result": {
    "item": "kubejs:atomic_clock"
  },
  "tier": "DRACONIC",
  "total_energy": 10000000
})

event.custom({
  "type": "mythicbotany:infuser",
  "fromColor": 16711821,
  "group": "infuser",
  "ingredients": [
    {
      "item": "botania:hourglass"
    },
    {
      "item": "botania:corporea_index"
    },
    {
      "item": "mythicbotany:alfsteel_ingot"
    }
  ],
  "mana": 1500000,
  "output": {
    "count": 1,
    "item": "kubejs:pixie_hourglass"
  },
  "toColor": 16750080
})

event.recipes.bloodmagic.soulforge('kubejs:executioner_sundial', 'bloodmagic:seersigil', 'bloodmagic:simplekey', 'bloodmagic:demonwillgauge', 'bloodmagic:masterroutingnode').minimumDrain(4096).drain(2048)

// New Cake Recipe
event.shaped(
  Item.of('telepastries:lost_city_cake'),
  [
    'aaa',
    'aaa',
    'aaa'
  ],
  {
    a: 'kubejs:slice_of_cake'
  }
)

})