import crafttweaker.item.IIngredient;

import mods.zenstages.ZenStager;

import scripts.crafttweaker.stages.stageEngineering;

static stagedItems as IIngredient[][string] = {
	stageEngineering.stage: [
	// IMMERSIVE ENGINEERING
		<immersiveengineering:seed:0>,
		<immersiveengineering:aluminum_scaffolding_stairs0:0>,
		<immersiveengineering:aluminum_scaffolding_stairs1:0>,
		<immersiveengineering:aluminum_scaffolding_stairs2:0>,
		<immersiveengineering:blueprint:0>,
		<immersiveengineering:bullet:1>,
		<immersiveengineering:bullet:2>.withTag({bullet: "casull"}),
		<immersiveengineering:bullet:2>.withTag({bullet: "armor_piercing"}),
		<immersiveengineering:bullet:2>.withTag({bullet: "buckshot"}),
		<immersiveengineering:bullet:2>.withTag({bullet: "he"}),
		<immersiveengineering:bullet:2>.withTag({bullet: "silver"}),
		<immersiveengineering:bullet:2>.withTag({bullet: "dragonsbreath"}),
		<immersiveengineering:bullet:2>.withTag({bullet: "potion"}),
		<immersiveengineering:bullet:2>.withTag({bullet: "flare"}),
		<immersiveengineering:bullet:2>.withTag({bullet: "terrasteel"}),
		<immersiveengineering:bullet:2>.withTag({bullet: "crystalwill"}),
		<immersiveengineering:bullet:2>.withTag({bullet: "wolfpack"}),
		<immersiveengineering:bullet:0>,
		<immersiveengineering:chemthrower:0>,
		<immersiveengineering:cloth_device:0>,
		<immersiveengineering:cloth_device:1>,
		<immersiveengineering:connector:2>,
		<immersiveengineering:connector:3>,
		<immersiveengineering:connector:4>,
		<immersiveengineering:connector:5>,
		<immersiveengineering:connector:6>,
		<immersiveengineering:connector:7>,
		<immersiveengineering:connector:8>,
		<immersiveengineering:connector:10>,
		<immersiveengineering:connector:11>,
		<immersiveengineering:connector:12>,
		<immersiveengineering:connector:13>,
		<immersiveengineering:connector:14>,
		<immersiveengineering:coresample:0>,
		<immersiveengineering:drill:0>,
		<immersiveengineering:drillhead:1>,
		<immersiveengineering:drillhead:0>,
		<immersiveengineering:earmuffs:0>,
		<immersiveengineering:faraday_suit_chest:0>,
		<immersiveengineering:faraday_suit_feet:0>,
		<immersiveengineering:faraday_suit_head:0>,
		<immersiveengineering:faraday_suit_legs:0>,
		<immersiveengineering:fluorescent_tube:0>,
		<immersiveengineering:graphite_electrode:0>,
		<immersiveengineering:jerrycan:0>,
		<immersiveengineering:maintenance_kit>,
		<immersiveengineering:material:4>,
		<immersiveengineering:material:5>,
		<immersiveengineering:material:7>,
		<immersiveengineering:material:9>,
		<immersiveengineering:material:12>,
		<immersiveengineering:material:13>,
		<immersiveengineering:material:14>,
		<immersiveengineering:material:15>,
		<immersiveengineering:material:16>,
		<immersiveengineering:material:18>,
		<immersiveengineering:material:19>,
		<immersiveengineering:material:21>,
		<immersiveengineering:material:22>,
		<immersiveengineering:material:23>,
		<immersiveengineering:material:24>,
		<immersiveengineering:material:26>,
		<immersiveengineering:material:27>,
		<immersiveengineering:metal_decoration0:1>,
		<immersiveengineering:metal_decoration0:2>,
		<immersiveengineering:metal_decoration0:3>,
		<immersiveengineering:metal_decoration0:4>,
		<immersiveengineering:metal_decoration0:5>,
		<immersiveengineering:metal_decoration0:6>,
		<immersiveengineering:metal_decoration0:7>,
		<immersiveengineering:metal_decoration1_slab:1>,
		<immersiveengineering:metal_decoration1_slab:2>,
		<immersiveengineering:metal_decoration1_slab:3>,
		<immersiveengineering:metal_decoration1_slab:5>,
		<immersiveengineering:metal_decoration1_slab:6>,
		<immersiveengineering:metal_decoration1_slab:7>,
		<immersiveengineering:metal_decoration1:0>,
		<immersiveengineering:metal_decoration1:1>,
		<immersiveengineering:metal_decoration1:2>,
		<immersiveengineering:metal_decoration1:3>,
		<immersiveengineering:metal_decoration1:4>,
		<immersiveengineering:metal_decoration1:5>,
		<immersiveengineering:metal_decoration1:6>,
		<immersiveengineering:metal_decoration1:7>,
		<immersiveengineering:metal_decoration2:0>,
		<immersiveengineering:metal_decoration2:1>,
		<immersiveengineering:metal_decoration2:2>,
		<immersiveengineering:metal_decoration2:3>,
		<immersiveengineering:metal_decoration2:4>,
		<immersiveengineering:metal_decoration2:5>,
		<immersiveengineering:metal_decoration2:7>,
		<immersiveengineering:metal_decoration2:8>,
		<immersiveengineering:metal_device0:1>,
		<immersiveengineering:metal_device0:2>,
		<immersiveengineering:metal_device0:6>,
		<immersiveengineering:metal_device1:1>,
		<immersiveengineering:metal_device1:3>,
		<immersiveengineering:metal_device1:4>,
		<immersiveengineering:metal_device1:5>,
		<immersiveengineering:metal_device1:7>,
		<immersiveengineering:metal_device1:8>,
		<immersiveengineering:metal_device1:9>,
		<immersiveengineering:metal_device1:10>,
		<immersiveengineering:metal_device1:11>,
		<immersiveengineering:metal_device1:13>,
		<immersiveengineering:metal_device1:0>,
		<immersiveengineering:metal_ladder:1>,
		<immersiveengineering:metal_ladder:2>,
		<immersiveengineering:metal_ladder:0>,
		<immersiveengineering:mold:1>,
		<immersiveengineering:mold:2>,
		<immersiveengineering:mold:3>,
		<immersiveengineering:mold:4>,
		<immersiveengineering:mold:5>,
		<immersiveengineering:mold:6>,
		<immersiveengineering:mold:7>,
		<immersiveengineering:mold:0>,
		<immersiveengineering:ore:1>,
		<immersiveengineering:ore:2>,
		<immersiveengineering:ore:3>,
		<immersiveengineering:ore:4>,
		<immersiveengineering:powerpack:0>,
		<immersiveengineering:railgun:0>,
		<immersiveengineering:revolver:0>,
		<immersiveengineering:shield:0>,
		<immersiveengineering:skyhook:0>,
		<immersiveengineering:speedloader:0>,
		<immersiveengineering:steel_scaffolding_stairs0:0>,
		<immersiveengineering:steel_scaffolding_stairs1:0>,
		<immersiveengineering:steel_scaffolding_stairs2:0>,
		<immersiveengineering:stone_decoration_slab:1>,
		<immersiveengineering:stone_decoration_slab:2>,
		<immersiveengineering:stone_decoration_slab:4>,
		<immersiveengineering:stone_decoration_slab:7>,
		<immersiveengineering:stone_decoration_slab:10>,
		<immersiveengineering:stone_decoration_stairs_concrete_leaded:0>,
		<immersiveengineering:stone_decoration_stairs_hempcrete:0>,
		<immersiveengineering:stone_decoration:1>,
		<immersiveengineering:stone_decoration:2>,
		<immersiveengineering:stone_decoration:4>,
		<immersiveengineering:stone_decoration:7>,
		<immersiveengineering:stone_decoration:8>,
		<immersiveengineering:stone_decoration:10>,
		<immersiveengineering:toolbox:0>,
		<immersiveengineering:toolupgrade:1>,
		<immersiveengineering:toolupgrade:2>,
		<immersiveengineering:toolupgrade:3>,
		<immersiveengineering:toolupgrade:4>,
		<immersiveengineering:toolupgrade:5>,
		<immersiveengineering:toolupgrade:6>,
		<immersiveengineering:toolupgrade:7>,
		<immersiveengineering:toolupgrade:8>,
		<immersiveengineering:toolupgrade:9>,
		<immersiveengineering:toolupgrade:10>,
		<immersiveengineering:toolupgrade:11>,
		<immersiveengineering:toolupgrade:12>,
		<immersiveengineering:toolupgrade:13>,
		<immersiveengineering:toolupgrade:0>,
		<immersiveengineering:wirecoil:1>,
		<immersiveengineering:wirecoil:2>,
		<immersiveengineering:wirecoil:3>,
		<immersiveengineering:wirecoil:4>,
		<immersiveengineering:wirecoil:5>,
		<immersiveengineering:wirecoil:7>,
		<immersiveengineering:wooden_device0:2>,
		<immersiveengineering:wooden_device0:3>,
		<immersiveengineering:wooden_device0:4>,
		<immersiveengineering:wooden_device0:5>,
		<immersiveengineering:wooden_device0:6>,
		<immersiveengineering:wooden_device0:7>,
		<immersiveengineering:ore:5>,
		
	// IMMERSIVE TECH
		<immersivetech:connectors>,
		<immersivetech:material>,
		<immersivetech:metal_barrel>,
		<immersivetech:metal_barrel:1>,
		<immersivetech:metal_barrel:2>,
		<immersivetech:metal_multiblock>,
		<immersivetech:metal_multiblock1>,
		<immersivetech:stone_decoration>,
		<immersivetech:stone_decoration_slab>,
		<immersivetech:valve>,
		<immersivetech:valve:1>,
		<immersivetech:valve:2>,
		<immersivetech:wooden_crate>,

	// ENGINEER'S DOORS
		<engineersdoors:door_steel>,
		<engineersdoors:door_steel_ornate>,
		<engineersdoors:door_steel_reinforced>,
		<engineersdoors:fencegate_aluminium>,
		<engineersdoors:fencegate_steel>,
		<engineersdoors:trapdoor_steel>,
	]
};

static stagedRecipes as string[][string] = {
	stageEngineering.stage: [
		// IMMERSIVE ENGINEERING
		"immersiveengineering:stone_decoration/concrete",
		"immersiveengineering:stone_decoration/concrete2"
	]
};


function init() {
	//Add Items
	for stageName, items in stagedItems {
		ZenStager.getStage(stageName).addIngredients(items);
	}
	//Remove Recipes
	for stageName, recipe_list in stagedRecipes {
		for recipe in recipe_list {
			ZenStager.getStage(stageName).addRecipeName(recipe);
		}
	}
}
