package is.absalon.sirens;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;

@Mod(modid = Sirens.MODID, version = Sirens.VERSION)
public class Sirens
{
    public static final String MODID = "sirens";
    public static final String VERSION = "0.1";
    
    public static Block nuclearSiren;
    
    @Instance(value = MODID)
    public static Sirens instance;
    
    @SidedProxy(clientSide="is.absalon.sirens.client.ClientProxy", serverSide="is.absalon.sirens.CommonProxy")
    public static CommonProxy proxy;
    
    @EventHandler
    public void preInit(FMLPreInitializationEvent event) {
    	nuclearSiren = new NuclearWarningSiren(Material.rock);
    	GameRegistry.registerBlock(nuclearSiren, "siren");
    }
    
    @EventHandler
    public void load(FMLInitializationEvent event) {
    	proxy.registerRenderers();
    }
    
    @EventHandler
    public void postInit(FMLPostInitializationEvent event) {
    	// Stub
    }
}

@@ -167,16 +167,97 @@
 m.Item;%0A
+import net.minecraft.item.ItemStack;%0Aimport net.minecraft.item.crafting.IRecipe;%0A
 import n
@@ -1259,12 +1259,12 @@
 ial.
-rock
+wood
 );%0A 
@@ -1318,16 +1318,281 @@
 iren%22);%0A
+    %09%0A    %09ItemStack jukebox = new ItemStack(Blocks.jukebox);%0A    %09ItemStack ironBar = new ItemStack(Blocks.iron_bars);%0A    %09GameRegistry.addRecipe(new ItemStack(nuclearSiren), %0A    %09%09%09%22xyx%22, %0A    %09%09%09%22yxy%22, %0A    %09%09%09%22xyx%22,%0A    %09%09%09'x', ironBar,%0A    %09%09%09'y', jukebox);%0A
     %7D%0A  

Add shaped recipe for nuclear warning siren