mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-24 22:14:39 +00:00
Fix Erebus recipes
This commit is contained in:
1 parent
1ba1d14599
commit
72688f7ea4
2 files changed
+12
-7
No files matched your search
@@ -17,7 +17,7 @@ buildscript {
|
||||
|
||||
apply plugin: 'forge'
|
||||
|
||||
version = "1.7.10-1.0.2"
|
||||
version = "1.7.10-1.0.3"
|
||||
group= "com.jaquadro.minecraft.storagedrawers" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
archivesBaseName = "StorageDrawers-Erebus"
|
||||
|
||||
|
||||
+11
-6
@@ -35,24 +35,29 @@ public class ModRecipes
|
||||
if (!resolver.isValidMetaValue(i))
|
||||
continue;
|
||||
|
||||
if (resolver.getUnlocalizedName(i).equals("scorched"))
|
||||
int src = i;
|
||||
if (resolver.getUnlocalizedName(i).equals("scorched")) {
|
||||
planks = GameRegistry.findBlock("erebus", "planks_scorched");
|
||||
else if (resolver.getUnlocalizedName(i).equals("varnished"))
|
||||
src = 0;
|
||||
}
|
||||
else if (resolver.getUnlocalizedName(i).equals("varnished")) {
|
||||
planks = GameRegistry.findBlock("erebus", "planks_varnished");
|
||||
src = 0;
|
||||
}
|
||||
|
||||
if (planks != null) {
|
||||
if (blockConfig.isBlockEnabled(nameFull1))
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.fullDrawers1, blockConfig.getBlockRecipeOutput(nameFull1), i), "xxx", " y ", "xxx",
|
||||
'x', new ItemStack(planks, 1, i), 'y', "chestWood"));
|
||||
'x', new ItemStack(planks, 1, src), 'y', "chestWood"));
|
||||
if (blockConfig.isBlockEnabled(nameFull2))
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.fullDrawers2, blockConfig.getBlockRecipeOutput(nameFull2), i), "xyx", "xxx", "xyx",
|
||||
'x', new ItemStack(planks, 1, i), 'y', "chestWood"));
|
||||
'x', new ItemStack(planks, 1, src), 'y', "chestWood"));
|
||||
if (blockConfig.isBlockEnabled(nameFull4))
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.fullDrawers4, blockConfig.getBlockRecipeOutput(nameFull4), i), "yxy", "xxx", "yxy",
|
||||
'x', new ItemStack(planks, 1, i), 'y', "chestWood"));
|
||||
'x', new ItemStack(planks, 1, src), 'y', "chestWood"));
|
||||
if (blockConfig.isBlockEnabled(nameTrim)) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.trim, blockConfig.getBlockRecipeOutput(nameTrim), i), "xyx", "yyy", "xyx",
|
||||
'x', "stickWood", 'y', new ItemStack(planks, 1, i)));
|
||||
'x', "stickWood", 'y', new ItemStack(planks, 1, src)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user