package com.jaquadro.minecraft.gardencore.core;

import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;

public class ModRecipes
{
    public void init () {
        for (int i = 0; i < 6; i++)
            GameRegistry.addRecipe(new ItemStack(ModBlocks.compostBin), "xxx", "xxx", "yyy",
                'x', Items.stick, 'y', new ItemStack(Blocks.wooden_slab, 1, i));

        GameRegistry.addRecipe(new ItemStack(ModItems.soilTestKit), "xy", "zz",
            'x', new ItemStack(Items.dye, 1, 1), 'y', new ItemStack(Items.dye, 1, 2), 'z', Items.glass_bottle);
        GameRegistry.addRecipe(new ItemStack(ModItems.soilTestKit), "yx", "zz",
            'x', new ItemStack(Items.dye, 1, 1), 'y', new ItemStack(Items.dye, 1, 2), 'z', Items.glass_bottle);

        GameRegistry.addRecipe(new ItemStack(ModItems.gardenTrowel), "  z", " y ", "x  ",
            'x', Items.stick, 'y', Items.iron_ingot, 'z', ModItems.compostPile);
        GameRegistry.addRecipe(new ItemStack(ModItems.gardenTrowel), "  x", " y ", "z  ",
            'x', Items.stick, 'y', Items.iron_ingot, 'z', ModItems.compostPile);

        GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.gardenSoil), Blocks.dirt, ModItems.compostPile);
    }
}

@@ -195,16 +195,67 @@
 emStack;
+%0Aimport net.minecraftforge.oredict.ShapedOreRecipe;
 %0A%0Apublic
@@ -304,48 +304,8 @@
 ) %7B%0A
-        for (int i = 0; i %3C 6; i++)%0A    
     
@@ -327,32 +327,52 @@
 y.addRecipe(new 
+ShapedOreRecipe(new 
 ItemStack(ModBlo
@@ -425,73 +425,41 @@
     
-    
 'x', 
-Items.stick, 'y', new ItemStack(Blocks.wooden_slab, 1, i
+%22stickWood%22, 'y', %22slabWood%22
 ));%0A
@@ -486,32 +486,52 @@
 y.addRecipe(new 
+ShapedOreRecipe(new 
 ItemStack(ModIte
@@ -580,75 +580,33 @@
 x', 
-new ItemStack(Items.dye, 1, 1), 'y', new ItemStack(Items.dye, 1, 2)
+%22dyeRed%22, 'y', %22dyeGreen%22
 , 'z
@@ -627,16 +627,17 @@
 _bottle)
+)
 ;%0A      
@@ -657,32 +657,52 @@
 y.addRecipe(new 
+ShapedOreRecipe(new 
 ItemStack(ModIte
@@ -751,75 +751,33 @@
 x', 
-new ItemStack(Items.dye, 1, 1), 'y', new ItemStack(Items.dye, 1, 2)
+%22dyeRed%22, 'y', %22dyeGreen%22
 , 'z
@@ -798,16 +798,17 @@
 _bottle)
+)
 ;%0A%0A     
@@ -829,32 +829,52 @@
 y.addRecipe(new 
+ShapedOreRecipe(new 
 ItemStack(ModIte
@@ -933,42 +933,37 @@
 x', 
-Items.stick, 'y', Items.iron_ingot
+%22stickWood%22, 'y', %22ingotIron%22
 , 'z
@@ -982,24 +982,25 @@
 compostPile)
+)
 ;%0A        Ga
@@ -1016,32 +1016,52 @@
 y.addRecipe(new 
+ShapedOreRecipe(new 
 ItemStack(ModIte
@@ -1120,42 +1120,37 @@
 x', 
-Items.stick, 'y', Items.iron_ingot
+%22stickWood%22, 'y', %22ingotIron%22
 , 'z
@@ -1173,16 +1173,17 @@
 ostPile)
+)
 ;%0A%0A     

Use ore dictionary for core items.