package net.shadowfacts.zcraft.recipes;

import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import net.shadowfacts.zcraft.block.ZBlocks;
import net.shadowfacts.zcraft.item.ZItems;
import cpw.mods.fml.common.registry.GameRegistry;

public class ZRecipes {
	
	public static void registerRecipes() {
		registerBlockRecipes();
		registerItemRecipes();
		registerFurnaceRecipes();
	}
	
	private static void registerBlockRecipes() {
		// Green Zinchorium Light
		GameRegistry.addShapedRecipe(new ItemStack(ZBlocks.greenZinchoriumLightIdle, 1), "IGI", "GLG", "IGI", 'I', new ItemStack(ZItems.greenZinchoriumGem), 'G', new ItemStack(Block.glass), 'L', new ItemStack(ZItems.lightBulb, 1));
	}
	
	private static void registerItemRecipes() {
		// Light bulb
		GameRegistry.addShapedRecipe(new ItemStack(ZItems.lightBulb), "GGG", "GOG", "III", 'G', new ItemStack(Block.glass), 'O', new ItemStack(Item.ingotGold), 'I', new ItemStack(Item.ingotIron));
		
		// Zinchorium Gem Sword
		GameRegistry.addShapedRecipe(new ItemStack(ZItems.zinchoriumSword), " Z ", " Z ", " S ", 'Z', new ItemStack(ZItems.greenZinchoriumGem), 'S', new ItemStack(Item.stick));
		
		// Zinchorium Gem Pickaxe
		GameRegistry.addShapedRecipe(new ItemStack(ZItems.zinchoriumPickaxe), "ZZZ", " S ", " S ", 'Z', new ItemStack(ZItems.greenZinchoriumGem), 'S', new ItemStack(Item.stick));
		
		// Zinchorium Gem Axe
		GameRegistry.addShapedRecipe(new ItemStack(ZItems.zinchoriumAxe), "ZZ ", "ZS ", " S ", 'Z', new ItemStack(ZItems.greenZinchoriumGem), 'S', new ItemStack(Item.stick));
		
		// Zinchorium Gem Shovel
		GameRegistry.addShapedRecipe(new ItemStack(ZItems.zinchoriumShovel), " Z ", " S ", " S ", 'Z', new ItemStack(ZItems.greenZinchoriumGem), 'S', new ItemStack(Item.stick));
		
		// Zinchorium Gem Hoe
		GameRegistry.addShapedRecipe(new ItemStack(ZItems.zinchoriumHoe), "ZZ ", " S ", " S ", 'Z', new ItemStack(ZItems.greenZinchoriumGem), 'S', new ItemStack(Item.stick));
	
		// Zinchorium Helmet
		GameRegistry.addShapedRecipe(new ItemStack(ZItems.zinchoriumHelmet), "ZZZ", "Z Z", "   ", 'Z', new ItemStack(ZItems.greenZinchoriumGem));
		
		// Zinchorium Chestplate
		GameRegistry.addShapedRecipe(new ItemStack(ZItems.zinchoriumChestplate), "Z Z", "ZZZ", "ZZZ", 'Z', new ItemStack(ZItems.greenZinchoriumGem));
		
		// Zinchoruim Leggings
		GameRegistry.addShapedRecipe(new ItemStack(ZItems.zinchoriumLeggings), "ZZZ", "Z Z", "Z Z", 'Z', new ItemStack(ZItems.greenZinchoriumGem));
		
		// Zinchorium Boots
		GameRegistry.addShapedRecipe(new ItemStack(ZItems.zinchoriumBoots), "Z Z", "Z Z", "   ", 'Z', new ItemStack(ZItems.greenZinchoriumGem));
		GameRegistry.addShapedRecipe(new ItemStack(ZItems.zinchoriumBoots), "   ", "Z Z", "Z Z", 'Z', new ItemStack(ZItems.greenZinchoriumGem));
		
	}
	
	private static void registerFurnaceRecipes() {
		// Copper ore --> copper ingot
		GameRegistry.addSmelting(ZBlocks.oreCopper.blockID, new ItemStack(ZItems.ingotCopper, 1), 0.3f);
		// Zinchorium ore --> Zinchorium Gem (3)
		GameRegistry.addSmelting(ZBlocks.greenZinchoriumGemOre.blockID, new ItemStack(ZItems.greenZinchoriumGem, 3), 0.5f);
	}
	
	public static void registerOreDictThings() {
		// Blocks
		OreDictionary.registerOre("oreCopper", ZBlocks.oreCopper);
		
		// Items
		OreDictionary.registerOre("ingotCopper", ZItems.ingotCopper);
		
	}
	
}

@@ -59,19 +59,19 @@
 aft.
-block
+init
 .Block
+s
 ;%0Aim
@@ -90,24 +90,25 @@
 ecraft.i
-tem
+nit
 .Item
+s
 ;%0Aimport
@@ -717,32 +717,33 @@
  ItemStack(Block
+s
 .glass), 'L', ne
@@ -952,16 +952,17 @@
 ck(Block
+s
 .glass),
@@ -989,18 +989,20 @@
 Item
-.
+s.gold_
 ingot
-Gold
 ), '
@@ -1027,18 +1027,20 @@
 Item
+s
 .i
+ron_i
 ngot
-Iron
 ));%0A
@@ -1221,32 +1221,33 @@
 w ItemStack(Item
+s
 .stick));%0A%09%09%0A%09%09/
@@ -1426,32 +1426,33 @@
 w ItemStack(Item
+s
 .stick));%0A%09%09%0A%09%09/
@@ -1623,32 +1623,33 @@
 w ItemStack(Item
+s
 .stick));%0A%09%09%0A%09%09/
@@ -1826,32 +1826,33 @@
 w ItemStack(Item
+s
 .stick));%0A%09%09%0A%09%09/
@@ -2031,16 +2031,17 @@
 ack(Item
+s
 .stick))
@@ -2987,24 +2987,16 @@
 reCopper
-.blockID
 , new It
@@ -3034,16 +3034,19 @@
  0.3f);%0A
+%09%09%0A
 %09%09// Zin
@@ -3140,16 +3140,8 @@
 mOre
-.blockID
 , ne

Update ZRecipes for 1.7.10