Added some grinder recipes

Added copper and tin blocks closes #351
This commit is contained in:
gigabit101 2016-02-25 13:59:22 +00:00
parent 4ed305c9bb
commit 1dbb03cf75
5 changed files with 17 additions and 3 deletions

View file

@ -36,7 +36,7 @@ public class BlockOre2 extends BaseBlock implements ITexturedBlock {
public static ItemStack getOreByName(String name, int count) {
for (int i = 0; i < types.length; i++) {
if (types[i].equals(name)) {
return new ItemStack(ModBlocks.ore, count, i);
return new ItemStack(ModBlocks.ore2, count, i);
}
}
throw new InvalidParameterException("The storage block " + name + " could not be found.");

View file

@ -32,7 +32,7 @@ public class BlockStorage2 extends BaseBlock implements ITexturedBlock {
public static final String[] types = new String[]
{"tungstensteel", "lodestone", "tellurium", "iridium_reinforced_tungstensteel",
"iridium_reinforced_stone", "ruby", "sapphire", "peridot", "yellowGarnet", "redGarnet"};
"iridium_reinforced_stone", "ruby", "sapphire", "peridot", "yellowGarnet", "redGarnet", "copper", "tin"};
public BlockStorage2(Material material) {
super(material);

View file

@ -58,5 +58,4 @@ public class ContainerGrinder extends ContainerCrafting {
this.connectionStatus = value;
}
}
}

View file

@ -19,6 +19,7 @@ import techreborn.api.recipe.RecipeHandler;
import techreborn.api.recipe.machines.*;
import techreborn.blocks.BlockMachineFrame;
import techreborn.blocks.BlockOre;
import techreborn.blocks.BlockOre2;
import techreborn.blocks.BlockStorage;
import techreborn.blocks.BlockStorage2;
import techreborn.config.ConfigTechReborn;
@ -58,8 +59,20 @@ public class
}
static void addGrinderRecipes(){
//Vanilla
RecipeHandler.addRecipe(new GrinderRecipe(new ItemStack(Blocks.iron_ore), ItemDusts.getDustByName("iron", 2), 100, 20));
RecipeHandler.addRecipe(new GrinderRecipe(new ItemStack(Blocks.gold_ore), ItemDusts.getDustByName("gold", 2), 100, 20));
RecipeHandler.addRecipe(new GrinderRecipe(new ItemStack(Items.coal), ItemDusts.getDustByName("coal", 2), 100, 20));
RecipeHandler.addRecipe(new GrinderRecipe(new ItemStack(Blocks.coal_ore), new ItemStack(Items.coal, 2), 100, 20));
RecipeHandler.addRecipe(new GrinderRecipe(new ItemStack(Items.bone), new ItemStack(Items.dye, 6, 15), 100, 20));
//TechReborn
RecipeHandler.addRecipe(new GrinderRecipe(BlockOre2.getOreByName("copper"), ItemDusts.getDustByName("copper", 2), 100, 20));
RecipeHandler.addRecipe(new GrinderRecipe(BlockOre2.getOreByName("tin"), ItemDusts.getDustByName("tin", 2), 100, 20));
RecipeHandler.addRecipe(new GrinderRecipe(BlockOre.getOreByName("Lead"), ItemDusts.getDustByName("lead", 2), 100, 20));
RecipeHandler.addRecipe(new GrinderRecipe(BlockOre.getOreByName("Silver"), ItemDusts.getDustByName("silver", 2), 100, 20));
}
static void addReactorRecipes(){

View file

@ -62,6 +62,8 @@ tile.techreborn.machineFrame.advancedMachine.name=Advanced Machine Block
tile.techreborn.machineFrame.machine.name=Machine Block
tile.techreborn.ore2.copper.name=Copper Ore
tile.techreborn.ore2.tin.name=Tin Ore
tile.techreborn.storage2.copper.name=Copper Block
tile.techreborn.storage2.tin.name=Tin Block
#Blocks
tile.techreborn.rubberlog.name=Rubber Wood