aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/recipe
diff options
context:
space:
mode:
authorJordan Byrne <draknyte1@hotmail.com>2017-12-29 15:04:27 +1000
committerJordan Byrne <draknyte1@hotmail.com>2017-12-29 15:04:27 +1000
commit2e56743afd8a5108083b90bb4f76dc14b808b9a2 (patch)
tree642b14ddf0ec7eca4cec90255c1e25f79c20799c /src/Java/gtPlusPlus/core/recipe
parent29183be2ec89ee54d748ac6ca64ed67f89f50f90 (diff)
downloadGT5-Unofficial-2e56743afd8a5108083b90bb4f76dc14b808b9a2.tar.gz
GT5-Unofficial-2e56743afd8a5108083b90bb4f76dc14b808b9a2.tar.bz2
GT5-Unofficial-2e56743afd8a5108083b90bb4f76dc14b808b9a2.zip
+ Added the last 15 new ores.
+ Gave custom REE materials a chemical tooltip. % Tweaked colours of custom REE dusts. % Tweaked Fish trap recipe to reduce duplicate code.
Diffstat (limited to 'src/Java/gtPlusPlus/core/recipe')
-rw-r--r--src/Java/gtPlusPlus/core/recipe/RECIPES_General.java45
1 files changed, 22 insertions, 23 deletions
diff --git a/src/Java/gtPlusPlus/core/recipe/RECIPES_General.java b/src/Java/gtPlusPlus/core/recipe/RECIPES_General.java
index 22a686c10a..19cf6da51c 100644
--- a/src/Java/gtPlusPlus/core/recipe/RECIPES_General.java
+++ b/src/Java/gtPlusPlus/core/recipe/RECIPES_General.java
@@ -103,30 +103,26 @@ public class RECIPES_General {
Logger.INFO("Added a recipe for Rainforest oak Saplings.");
}
- if (!CORE.GTNH) {
- //Iron bars
- final ItemStack ironBars = ItemUtils.getItemStack("minecraft:iron_bars", 1);
- //Fish Trap
- if (RecipeUtils.recipeBuilder(
- ironBars, ironBars, ironBars,
- ironBars, "frameGtWroughtIron", ironBars,
- ironBars, ironBars, ironBars,
- ItemUtils.getSimpleStack(ModBlocks.blockFishTrap))){
- Logger.INFO("Added a recipe for the Fish Trap.");
- }
+
+
+ //Iron bars
+ final ItemStack ironBars;
+ if (CORE.GTNH) {
+ ironBars = ItemUtils.getItemStack("dreamcraft:item.SteelBars", 1);
} else {
- //Steel Bars
- final ItemStack steelBars = ItemUtils.getItemStack("dreamcraft:item.SteelBars", 1);
- //Fish Trap
- if (RecipeUtils.recipeBuilder(
- steelBars, steelBars, steelBars,
- steelBars, "frameGtWroughtIron", steelBars,
- steelBars, steelBars, steelBars,
- ItemUtils.getSimpleStack(ModBlocks.blockFishTrap))) {
- Logger.INFO("Added a recipe for the Fish Trap.");
- }
+ ironBars = ItemUtils.getItemStack("minecraft:iron_bars", 1);
+ }
+
+ //Fish Trap
+ if (RecipeUtils.recipeBuilder(
+ ironBars, ironBars, ironBars,
+ ironBars, "frameGtWroughtIron", ironBars,
+ ironBars, ironBars, ironBars,
+ ItemUtils.getSimpleStack(ModBlocks.blockFishTrap))){
+ Logger.INFO("Added a recipe for the Fish Trap.");
}
+
//Alkalus Coin
if (RecipeUtils.recipeBuilder(
"gemExquisiteRuby", "gemFlawlessDiamond", "gemExquisiteDiamond",
@@ -243,9 +239,12 @@ public class RECIPES_General {
}
return true;
}
-
+
private static boolean addFluoriteFix(){
- return RecipeUtils.addShapelessGregtechRecipe(new ItemStack[]{ItemUtils.getSimpleStack(ModBlocks.blockOreFluorite)}, FLUORIDES.FLUORITE.getOre(1));
+ if (ModBlocks.blockOreFluorite != null){
+ return RecipeUtils.addShapelessGregtechRecipe(new ItemStack[]{ItemUtils.getSimpleStack(ModBlocks.blockOreFluorite)}, FLUORIDES.FLUORITE.getOre(1));
+ }
+ return false;
}
}