Moved recipes to .\config\recipes.java

Also changed recipes to support the ore dictionary.
This commit is contained in:
ClawmanCat 2016-08-16 15:03:37 +02:00
parent c9b9f1315d
commit 4a38ffa148
2 changed files with 17 additions and 16 deletions

View file

@ -249,21 +249,6 @@ public class WarpDrive implements LoadingCallback {
GameRegistry.registerBlock(blockSirenRaidAdvanced, "siren_raid_advanced");
GameRegistry.registerBlock(blockSirenRaidSuperior, "siren_raid_superior");
GameRegistry.addRecipe(new ItemStack(blockSirenIndustrial, 1), "ICI", "ICI", "NRN",
Character.valueOf('I'), new ItemStack(Blocks.planks, 1),
Character.valueOf('C'), new ItemStack(Items.iron_ingot, 1),
Character.valueOf('N'), new ItemStack(Blocks.noteblock, 1),
Character.valueOf('R'), new ItemStack(Items.redstone, 1));
GameRegistry.addRecipe(new ItemStack(blockSirenRaidBasic, 1), " I ", "ISI", " I ",
Character.valueOf('I'), new ItemStack(Items.iron_ingot, 1),
Character.valueOf('S'), new ItemStack(blockSirenIndustrial, 1));
GameRegistry.addRecipe(new ItemStack(blockSirenRaidAdvanced, 1), " I ", "ISI", " I ",
Character.valueOf('I'), new ItemStack(Items.gold_ingot, 1),
Character.valueOf('S'), new ItemStack(blockSirenRaidBasic, 1));
GameRegistry.addRecipe(new ItemStack(blockSirenRaidSuperior, 1), " I ", "ISI", " I ",
Character.valueOf('I'), new ItemStack(Items.diamond, 1),
Character.valueOf('S'), new ItemStack(blockSirenRaidAdvanced, 1));
GameRegistry.registerTileEntity(TileEntitySiren.class, MODID + ":tileEntitySiren");
// CORE CONTROLLER

View file

@ -284,7 +284,7 @@ public class Recipes {
ItemStack advancedCircuit = WarpDriveConfig.getModItemStack("IC2", "itemPartCircuitAdv", -1);
ItemStack ironPlate = WarpDriveConfig.getModItemStack("IC2", "itemPlates", 4);
ItemStack mfe = WarpDriveConfig.getModItemStack("IC2", "blockElectric", 1);
GameRegistry.addRecipe(new ItemStack(WarpDrive.blockShipCore), "ici", "cmc", "ici",
'i', iridiumAlloy,
'm', advancedMachine,
@ -1380,6 +1380,22 @@ public class Recipes {
// HULL blocks and variations
initDynamicHull();
//Sirens
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(WarpDrive.blockSirenIndustrial, 1), "ICI", "ICI", "NRN",
Character.valueOf('I'), "plankWood",
Character.valueOf('C'), "ingotIron",
Character.valueOf('N'), new ItemStack(Blocks.noteblock, 1),
Character.valueOf('R'), "dustRedstone"));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(WarpDrive.blockSirenRaidBasic, 1), " I ", "ISI", " I ",
Character.valueOf('I'), "ingotIron",
Character.valueOf('S'), new ItemStack(WarpDrive.blockSirenIndustrial, 1)));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(WarpDrive.blockSirenRaidAdvanced, 1), " I ", "ISI", " I ",
Character.valueOf('I'), "ingotGold",
Character.valueOf('S'), new ItemStack(WarpDrive.blockSirenRaidBasic, 1)));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(WarpDrive.blockSirenRaidSuperior, 1), " I ", "ISI", " I ",
Character.valueOf('I'), "gemDiamond",
Character.valueOf('S'), new ItemStack(WarpDrive.blockSirenRaidAdvanced, 1)));
}
private static void initDynamicHull() {