add recipes for most stuff
This commit is contained in:
@@ -6,12 +6,16 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
import cpw.mods.fml.common.network.NetworkRegistry;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import storagecraft.StorageCraft;
|
||||
import storagecraft.StorageCraftBlocks;
|
||||
import storagecraft.StorageCraftItems;
|
||||
import storagecraft.gui.GuiHandler;
|
||||
import storagecraft.item.ItemBlockCable;
|
||||
import storagecraft.item.ItemBlockGrid;
|
||||
import storagecraft.item.ItemCore;
|
||||
import storagecraft.network.MessageCompareUpdate;
|
||||
import storagecraft.network.MessageDetectorAmountUpdate;
|
||||
import storagecraft.network.MessageDetectorModeUpdate;
|
||||
@@ -65,9 +69,124 @@ public class CommonProxy
|
||||
GameRegistry.registerBlock(StorageCraftBlocks.IMPORTER, "importer");
|
||||
GameRegistry.registerBlock(StorageCraftBlocks.EXPORTER, "exporter");
|
||||
GameRegistry.registerBlock(StorageCraftBlocks.DETECTOR, "detector");
|
||||
GameRegistry.registerBlock(StorageCraftBlocks.MACHINE_CASING, "machineCasing");
|
||||
|
||||
GameRegistry.registerItem(StorageCraftItems.STORAGE_CELL, "storageCell");
|
||||
GameRegistry.registerItem(StorageCraftItems.WIRELESS_GRID, "wirelessGrid");
|
||||
GameRegistry.registerItem(StorageCraftItems.STORIGIUM_INGOT, "storigiumIngot");
|
||||
GameRegistry.registerItem(StorageCraftItems.CORE, "core");
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(StorageCraftItems.STORIGIUM_INGOT, 4),
|
||||
"II",
|
||||
"IQ",
|
||||
'I', new ItemStack(Items.iron_ingot),
|
||||
'Q', new ItemStack(Items.quartz)
|
||||
);
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(StorageCraftBlocks.MACHINE_CASING),
|
||||
"SSS",
|
||||
"S S",
|
||||
"SSS",
|
||||
'S', new ItemStack(StorageCraftItems.STORIGIUM_INGOT)
|
||||
);
|
||||
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(StorageCraftItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
||||
new ItemStack(StorageCraftItems.STORIGIUM_INGOT),
|
||||
new ItemStack(Items.gold_ingot),
|
||||
new ItemStack(Items.glowstone_dust)
|
||||
);
|
||||
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(StorageCraftItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
||||
new ItemStack(StorageCraftItems.STORIGIUM_INGOT),
|
||||
new ItemStack(Items.quartz),
|
||||
new ItemStack(Items.glowstone_dust)
|
||||
);
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(StorageCraftBlocks.CONTROLLER),
|
||||
"SDS",
|
||||
"DRD",
|
||||
"SDS",
|
||||
'D', new ItemStack(Items.diamond),
|
||||
'S', new ItemStack(StorageCraftItems.STORIGIUM_INGOT),
|
||||
'R', new ItemStack(Blocks.redstone_block)
|
||||
);
|
||||
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(StorageCraftBlocks.DRIVE),
|
||||
new ItemStack(StorageCraftBlocks.MACHINE_CASING),
|
||||
new ItemStack(Blocks.chest)
|
||||
);
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(StorageCraftBlocks.CABLE, 6, 0),
|
||||
"SSS",
|
||||
"GGG",
|
||||
"SSS",
|
||||
'S', new ItemStack(StorageCraftItems.STORIGIUM_INGOT),
|
||||
'G', new ItemStack(Blocks.glass)
|
||||
);
|
||||
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(StorageCraftBlocks.CABLE, 1, 1),
|
||||
new ItemStack(StorageCraftBlocks.CABLE, 1, 0),
|
||||
new ItemStack(Items.redstone)
|
||||
);
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(StorageCraftBlocks.GRID, 1, 0),
|
||||
"SCS",
|
||||
"GMG",
|
||||
"SDS",
|
||||
'S', new ItemStack(StorageCraftItems.STORIGIUM_INGOT),
|
||||
'G', new ItemStack(Blocks.glass),
|
||||
'C', new ItemStack(StorageCraftItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
||||
'D', new ItemStack(StorageCraftItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
||||
'M', new ItemStack(StorageCraftBlocks.MACHINE_CASING)
|
||||
);
|
||||
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(StorageCraftBlocks.GRID, 1, 1),
|
||||
new ItemStack(StorageCraftBlocks.GRID, 1, 0),
|
||||
new ItemStack(Blocks.crafting_table)
|
||||
);
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(StorageCraftItems.WIRELESS_GRID),
|
||||
"PCP",
|
||||
"PGP",
|
||||
"PDP",
|
||||
'P', new ItemStack(Items.ender_pearl),
|
||||
'C', new ItemStack(StorageCraftItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
||||
'D', new ItemStack(StorageCraftItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
||||
'G', new ItemStack(Blocks.glass)
|
||||
);
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(StorageCraftBlocks.STORAGE_PROXY),
|
||||
"SCS",
|
||||
"HMH",
|
||||
"SDS",
|
||||
'S', new ItemStack(StorageCraftItems.STORIGIUM_INGOT),
|
||||
'H', new ItemStack(Blocks.chest),
|
||||
'C', new ItemStack(StorageCraftItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
||||
'D', new ItemStack(StorageCraftItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
||||
'M', new ItemStack(StorageCraftBlocks.MACHINE_CASING)
|
||||
);
|
||||
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(StorageCraftBlocks.IMPORTER),
|
||||
new ItemStack(StorageCraftBlocks.MACHINE_CASING),
|
||||
new ItemStack(StorageCraftItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION)
|
||||
);
|
||||
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(StorageCraftBlocks.EXPORTER),
|
||||
new ItemStack(StorageCraftBlocks.MACHINE_CASING),
|
||||
new ItemStack(StorageCraftItems.CORE, 1, ItemCore.TYPE_DESTRUCTION)
|
||||
);
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(StorageCraftBlocks.DETECTOR),
|
||||
"SCS",
|
||||
"RMR",
|
||||
"SRS",
|
||||
'S', new ItemStack(StorageCraftItems.STORIGIUM_INGOT),
|
||||
'R', new ItemStack(Items.redstone),
|
||||
'C', new ItemStack(Items.comparator),
|
||||
'M', new ItemStack(StorageCraftBlocks.MACHINE_CASING)
|
||||
);
|
||||
|
||||
// @TODO: Recipe for storage cells
|
||||
}
|
||||
|
||||
public void init(FMLInitializationEvent e)
|
||||
|
Reference in New Issue
Block a user