import crafttweaker.api.item.IItemStack;
import mods.mysticalagriculture.InfusionCrafting;

var essBlock = <item:kubejs:essence_block>;
var flyJar = <item:blue_skies:soul_fragment>;
var xpBlock = <item:kubejs:experience_block>;
var power = <item:aoa3:glistening_power_stone>;
var egg = <item:minecraft:egg>;
var count = 0; 

//Bee Spawn Egg Crafting

var spawnEggs = [
	
	[<item:resourcefulbees:water_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Water Essence Block"}'}})],
	[<item:resourcefulbees:fire_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Fire Essence Block"}'}})],
	[<item:resourcefulbees:stone_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Stone Essence Block"}'}})],
	[<item:resourcefulbees:certus_quartz_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Certus Quartz Essence Block"}'}})],
	[<item:resourcefulbees:gold_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Gold Essence Block"}'}})],
	[<item:resourcefulbees:lapis_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Lapis Lazuli Essence Block"}'}})],
	[<item:resourcefulbees:end_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"End Essence Block"}'}})],
	[<item:resourcefulbees:experience_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Experience Essence Block"}'}})],
	[<item:resourcefulbees:blaze_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Blaze Essence Block"}'}})],
	[<item:resourcefulbees:aquamarine_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Aquamarine Essence Block"}'}})],
	[<item:resourcefulbees:lead_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Lead Essence Block"}'}})],
	[<item:resourcefulbees:zinc_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Zinc Essence Block"}'}})],
	[<item:resourcefulbees:tin_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Tin Essence Block"}'}})],
	[<item:resourcefulbees:spider_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Spider Essence Block"}'}})],
	[<item:resourcefulbees:creeper_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Creeper Essence Block"}'}})],
	[<item:resourcefulbees:skeleton_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Skeleton Essence Block"}'}})],
	[<item:resourcefulbees:zombie_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Zombie Essence Block"}'}})],
	[<item:resourcefulbees:pig_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Pig Essence Block"}'}})],
	[<item:resourcefulbees:cow_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Cow Essence Block"}'}})],
	[<item:resourcefulbees:sheep_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Sheep Essence Block"}'}})],
	[<item:resourcefulbees:aluminum_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Aluminum Essence Block"}'}})],
	[<item:resourcefulbees:copper_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Copper Essence Block"}'}})],
	[<item:resourcefulbees:ender_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Enderman Essence Block"}'}})],
	[<item:resourcefulbees:iron_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Iron Essence Block"}'}})],
	[<item:resourcefulbees:nether_quartz_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Nether_Quartz Essence Block"}'}})],
	[<item:resourcefulbees:glowstone_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Glowstone Essence Block"}'}})],
	[<item:resourcefulbees:redstone_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Redstone Essence Block"}'}})],
	[<item:resourcefulbees:steel_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Steel Essence Block"}'}})],
	[<item:resourcefulbees:uranium_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Uranium Essence Block"}'}})],
	[<item:resourcefulbees:emerald_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Emerald Essence Block"}'}})],
	[<item:resourcefulbees:dirt_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Dirt Essence Block"}'}})],
	[<item:resourcefulbees:wood_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Wood Essence Block"}'}})],
	[<item:resourcefulbees:nature_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Nature Essence Block"}'}})],
	[<item:resourcefulbees:rgbee_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Dye Essence Block"}'}})],
	[<item:resourcefulbees:nether_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Nether Essence Block"}'}})],
	[<item:resourcefulbees:chicken_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Chicken Essence Block"}'}})],
	[<item:resourcefulbees:diamond_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Diamond Essence Block"}'}})],
	[<item:resourcefulbees:wither_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Wither Skeleton Essence Block"}'}})],
	[<item:resourcefulbees:osmium_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Osmium Essence Block"}'}})],
	[<item:resourcefulbees:inferium_bee_spawn_egg>, essBlock.withTag({display:{Name: '{"text":"Inferium Essence Block"}'}})]

] as IItemStack[][];

for row in spawnEggs {

InfusionCrafting.addRecipe("bee_spawn_egg_"+count,row[0],
	[egg,row[1],xpBlock,row[1],power,row[1],flyJar,row[1],power]);
	
	count+=1;

} 

	