//By Mogcid
events.listen('recipes', function (e) {
  e.custom({
  "type": "masterfulmachinery:machine_structure",
  "id": "centrifuge",
  "controllerId": "centrifuge",
  "name": "centrifuge",
  "layout": [
    [
      "     ",
      " )*+ ",
      " C,* ",
      " -*. ",
      "     "
    ],
    [
      "     ",
      " /0/ ",
      " / / ",
      " /0/ ",
      "     "
    ],
    [
      "     ",
      " / / ",
      " / / ",
      " / / ",
      "     "
    ],
    [
      "     ",
      " *** ",
      " *** ",
      " *** ",
      "     "
    ],
    [
      "     ",
      "     ",
      "     ",
      "     ",
      "     "
    ]
  ],
  "legend": {
    "0": {
      "block": "darkutils:vector_plate"
    },
    ")": {
      "block": "masterfulmachinery:centrifuge_chungus_port_energy_input"
    },
    "*": {
      "block": "mogcid:machine_structure_block"
    },
    "+": {
      "block": "masterfulmachinery:centrifuge_basic_port_items_output"
    },
    ",": {
      "block": "exnihilosequentia:barrel_wood"
    },
    "-": {
      "block": "masterfulmachinery:centrifuge_basic_port_items_input"
    },
    ".": {
      "block": "masterfulmachinery:centrifuge_small_port_fluids_input"
    },
    "/": {
      "block": "minecraft:glass"
    }
  }
})
//Masterful centrifuge controller'
e.shaped(item.of('masterfulmachinery:centrifuge_controller', 1), ['a  ','   ','   '], {
  a: 'mogcid:machine_structure_block'
})
 //'Masterful machinery energy port energy input'
 e.shaped(item.of('masterfulmachinery:centrifuge_chungus_port_energy_input', 1), [' a ',' b ','   '], {
  a: 'rftoolspower:coalgenerator',
  b: 'mogcid:machine_structure_block'
})
//'Masterful machinery item port item input'
e.shaped(item.of('masterfulmachinery:centrifuge_basic_port_items_input', 1), [' a ',' b ','   '], {
  a: 'minecraft:chest',
  b: 'mogcid:machine_structure_block'
})
//'Masterful machinery energy port item output'
e.shaped(item.of('masterfulmachinery:centrifuge_basic_port_items_output', 1), ['   ',' b ',' a '], {
  a: 'minecraft:chest',
  b: 'mogcid:machine_structure_block'
})
//'Masterful machinery fluit port item input'
e.shaped(item.of('masterfulmachinery:centrifuge_small_port_fluids_input', 1), [' a ','b b',' b '], {
  a: '#exnihilosequentia:barrels',
  b: 'mogcid:machine_structure_block'
}) 
onEvent('recipes', event => {
  //Bee Oreo
  event.custom({
    "type": "masterfulmachinery:machine_process",
    "structureId": 'centrifuge',
    "controllerId": "centrifuge",
    "ticks": 50,
    "inputs": [
      {"type": "masterfulmachinery:items","data": {"item": 'minecraft:cake',"count": 1}},
      {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
      {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
    ],
    "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:oreo_bee_spawn_egg',"count": 1}}]
  })
//Bee Minecraft
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:bee_jar',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'minecraft:water',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'minecraft:bee_spawn_egg',"count": 1}}]
})
//Bee zombie
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'minecraft:zombie_head',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:zombie_bee_spawn_egg',"count": 1}}]
})
//Bee woody 
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'minecraft:oak_sapling',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:woody_bee_spawn_egg',"count": 1}}]
})
//Bee Rock
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'excompressum:compressed_cobblestone',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:rock_bee_spawn_egg',"count": 1}}]
})
//Bee RG Bee
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'minecraft:poppy',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:rgbee_bee_spawn_egg',"count": 1}}]
})
//Bee Pigman
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'minecraft:glowstone',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:pigman_bee_spawn_egg',"count": 1}}]
})
//Bee Obsidian
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'mekanism:block_refined_obsidian',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:obsidianingot_bee_spawn_egg',"count": 1}}]
})
//Bee Nether
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'excompressum:compressed_netherrack',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:nether_bee_spawn_egg',"count": 1}}]
})
//Bee Lava
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'bloodmagic:lavacrystal',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:lava_bee_spawn_egg',"count": 1}}]
})
//Bee Icy
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'mysticalagriculture:prosperity_ingot_block',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:icy_bee_spawn_egg',"count": 1}}]
})
//Bee Gravel
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'excompressum:compressed_gravel',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:gravel_bee_spawn_egg',"count": 1}}]
})
//Bee Dirt
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'excompressum:compressed_dirt',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:dirty_bee_spawn_egg',"count": 1}}]
})
//Bee Clay
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'minecraft:clay',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:clay_bee_spawn_egg' ,"count": 1}}]
})
//Bee Kitten
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"tag": 'minecraft:fishes',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:kitten_bee_spawn_egg',"count": 1}}]
})
//Bee Skeleton
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'minecraft:bone_block',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:skeleton_bee_spawn_egg',"count": 1}}]
})
//Bee Sandy
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'excompressum:compressed_sand',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:sandy_bee_spawn_egg',"count": 1}}]
})
//Bee Slimy
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'minecraft:slime_block',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:slimy_bee_spawn_egg',"count": 1}}]
})

//Bee Granite
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'excompressum:compressed_granite',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:granite_bee_spawn_egg',"count": 1}}]
})

//Bee Prismarine
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'minecraft:dark_prismarine',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:prismarine_bee_spawn_egg',"count": 1}}]
})

//Bee water
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'cookingforblockheads:sink',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:water_bee_spawn_egg',"count": 1}}]
})

//Bee Black iron
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'extendedcrafting:black_iron_block',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:black_iron_bee_spawn_egg',"count": 1}}]
})

//Bee Dieletic paste
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'powah:dielectric_paste',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:dielectric_paste_bee_spawn_egg',"count": 1}}]
})

//Bee Sheep
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'minecraft:white_wool',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:sheep_bee_spawn_egg',"count": 1}}]
})

//Certus 
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'appliedenergistics2:quartz_block',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:certus_bee_spawn_egg',"count": 1}}]
})
//Cinnabar 
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'thermal:cinnabar_block',"count": 1}},
    {"type": "masterfulmachinery:fluids","data": {"fluid": 'resourcefulbees:honey',"amount": 1000}},
    {"type": "masterfulmachinery:energy","data": {"amount": 1000}}
  ],
  "outputs": [{"type": "masterfulmachinery:items","data": {"item": 'resourcefulbees:cinnabar_bee_spawn_egg',"count": 1}}]
})

  //Machine structure
  event.shaped('mogcid:machine_structure_block', [
    'aba',
    'cdc',
    'aba'
  ], {
    a: 'minecraft:iron_ingot',
    b: 'minecraft:oak_log',
    c: 'minecraft:chest',
    d: 'minecraft:crafting_table',
  })

}) 
})