fixes #119
This commit is contained in:
parent
0154f5a21a
commit
103c0b79e4
1 changed files with 19 additions and 1 deletions
|
@ -22,6 +22,8 @@ import techreborn.items.*;
|
||||||
import techreborn.util.CraftingHelper;
|
import techreborn.util.CraftingHelper;
|
||||||
import techreborn.util.LogHelper;
|
import techreborn.util.LogHelper;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
public class ModRecipes {
|
public class ModRecipes {
|
||||||
public static ConfigTechReborn config;
|
public static ConfigTechReborn config;
|
||||||
|
|
||||||
|
@ -155,14 +157,30 @@ public class ModRecipes {
|
||||||
);
|
);
|
||||||
|
|
||||||
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("rockCutterBlade"),
|
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("rockCutterBlade"),
|
||||||
"SDS ", "SDS", "SDS",
|
"SDS", "SDS", "SDS",
|
||||||
'D', new ItemStack(Items.diamond),
|
'D', new ItemStack(Items.diamond),
|
||||||
'S', "ingotSteel"
|
'S', "ingotSteel"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
for(String part : ItemParts.types){
|
||||||
|
if(part.endsWith("Gear")){
|
||||||
|
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName(part),
|
||||||
|
" O ", "OIO", " O ",
|
||||||
|
'I', new ItemStack(Items.iron_ingot),
|
||||||
|
'O', "ingot" + capitalizeFirstLetter(part.replace("Gear", ""))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LogHelper.info("Shapped Recipes Added");
|
LogHelper.info("Shapped Recipes Added");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String capitalizeFirstLetter(String original){
|
||||||
|
if(original.length() == 0)
|
||||||
|
return original;
|
||||||
|
return original.substring(0, 1).toUpperCase() + original.substring(1);
|
||||||
|
}
|
||||||
|
|
||||||
static void addShapelessRecipes() {
|
static void addShapelessRecipes() {
|
||||||
|
|
||||||
for (String name : ArrayUtils.addAll(BlockStorage.types, BlockStorage2.types)) {
|
for (String name : ArrayUtils.addAll(BlockStorage.types, BlockStorage2.types)) {
|
||||||
|
|
Loading…
Reference in a new issue