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 Guardian
event.custom({
  "type": "masterfulmachinery:machine_process",
  "structureId": 'centrifuge',
  "controllerId": "centrifuge",
  "ticks": 50,
  "inputs": [
    {"type": "masterfulmachinery:items","data": {"item": 'minecraft: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:guardian_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',
  
  })

}) 
})