events.listen('recipes', event => {

//Crafting Recipes

event.recipes.extendedcrafting.shaped_table({
    "pattern": ["RRR", "RIR", "RRR" ],
    "key": {
R: '#forge:dusts/redstone',
I: '#forge:ingots/iron'
},
    "result": {
"item": 'extendedcrafting:redstone_ingot',
"count": 1}
})

event.recipes.extendedcrafting.shaped_table({
"pattern": ["EIEIE", "IEIEI", "EIEIE", "IEIEI", "EIEIE" ],
    "key": {
E: '#forge:dusts/ender_pearl',
I: '#forge:ingots/gold'
},
    "result": {
"item": 'extendedcrafting:ender_ingot',
"count": 1}
})

event.recipes.extendedcrafting.shaped_table({
"pattern": [" YWY ", " EEE ", " ECE ", "ERRRE", "EEEEE" ],
    "key": {
E: {"item": 'extendedcrafting:ender_ingot'},
R: {"item": 'extendedcrafting:redstone_ingot'},
Y: {"item": "minecraft:ender_eye"},
W: '#refinedstorage:wireless_transmitter',
C: {"item": 'extendedcrafting:crystaltine_ingot'}
},
    "result": {
"item": 'extendedcrafting:ender_alternator',
"count": 1}
})

event.recipes.extendedcrafting.shaped_table({
"pattern": ["MDMDMDM", "DMDMDMD", "MDCCCDM", "DMCCCMD", "MDCCCDM", "DMDMDMD", "MDMDMDM" ],
    "key": {
        M: '#mekanism:crystals',
        C: '#outer_end:crystal_shards',
        D: 'kubejs:diamond_ingot'
},
    "result": {
"item": 'extendedcrafting:crystaltine_ingot',
"count": 1}
})

event.recipes.extendedcrafting.shaped_table({
"pattern": ["RRRRRRRRR", "REEEEEEER", "RECCCCCER", "RECYTYCER", "RECTNTCER", "RECYTYCER", "RECCCCCER", "REEEEEEER", "RRRRRRRRR" ],
    "key": {
R: {"item": 'extendedcrafting:redstone_ingot'},
E: {"item": 'extendedcrafting:ender_ingot'},
C: {"item": 'extendedcrafting:crystaltine_ingot'},
T: {"item": "minecraft:crafting_table"},
Y: {"item": "minecraft:ender_eye"},
N: {"item": 'extrastorage:netherite_crafter'},
    },
    "result": {
"item": 'extendedcrafting:ender_crafter',
"count": 1}
})

//Ender Crafting Recipes
    
event.recipes.extendedcrafting.shaped_ender_crafter({
    "pattern": ["NDN", "ESE", "NDN" ],
    "key": {
N: {"item": 'extendedcrafting:crystaltine_nugget'},
S: {"item": 'extendedcrafting:ender_star'},
E: {"item": 'extendedcrafting:ender_ingot'},
D: '#forge:ingots/enderium'
},
    "result": {
"item": 'extendedcrafting:enhanced_ender_ingot',
"count": 1}
})

event.recipes.extendedcrafting.shaped_ender_crafter({
  "pattern": ["CAC", "BIB", "CSC" ],
  "key": {
C: {"item": "extendedcrafting:black_iron_ingot"},
A: {"item": "extendedcrafting:elite_catalyst"},
B: {"item": "extendedcrafting:elite_component"},
I: {"item": "extendedcrafting:frame"},
S: {"item": "extendedcrafting:black_iron_slate"}
},
  "result": {
"item": 'extendedcrafting:crafting_core',
"count": 1}
})

event.recipes.extendedcrafting.shaped_ender_crafter({
  "pattern": [" B ", " B ", "BLB" ],
  "key": {
B: {"item": "extendedcrafting:black_iron_ingot"},
L: {"item": "extendedcrafting:black_iron_block"}
},
  "result": {
"item": 'extendedcrafting:pedestal',
"count": 1}
})

//Combination Crafting

event.recipes.extendedcrafting.combination({
"powerCost": 500000,
"input": {"item": "extendedcrafting:frame"},
"ingredients": [
{"item": "extendedcrafting:black_iron_ingot"},
{"item": "extendedcrafting:black_iron_ingot"},
{"item": "extendedcrafting:black_iron_ingot"},
{"item": "extendedcrafting:black_iron_ingot"},
{"item": "extendedcrafting:black_iron_block"},
{"item": "extendedcrafting:elite_catalyst"},
{"item": "extendedcrafting:elite_catalyst"},
{"item": "extendedcrafting:elite_catalyst"}
],
"result": {"item": "extendedcrafting:compressor"}
})

event.recipes.extendedcrafting.combination({
"powerCost": 500000,
"input": {
"item": "kubejs:blank_ore"},
"ingredients": [
{"item": "kubejs:blank_token"},
{"item": "kubejs:blank_token"},
{"item": "kubejs:blank_token"},
{"item": "kubejs:blank_token"},
{"item": "create:refined_radiance"},
{"item": "create:refined_radiance"},
{"item": "create:refined_radiance"},
{"item": "create:refined_radiance"}
],
"result": {"item": "kubejs:blank_singularity"}
})

})