Skip to content

Commit

Permalink
Added recipes for planks from vertical plank blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
nuckable committed Jul 15, 2022
1 parent 5fea95f commit 55eeb35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/rbh/tfcadditions/Core/Recipes.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.rbh.tfcadditions.Core;

import com.dunk.tfc.api.Constant.Global;
import com.dunk.tfc.api.TFCBlocks;
import com.dunk.tfc.api.TFCItems;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.item.Item;
Expand Down Expand Up @@ -38,14 +39,17 @@ public static void registerRecipes(){
int l = i%16;
if(i==l){
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Blocks.PlanksVert, 1, i), " 1 ","11 ","1 ", '1', new ItemStack(TFCItems.singlePlank, 1, i)));
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(TFCItems.singlePlank, 4, i), new ItemStack(Blocks.PlanksVert, 1, i), "itemSaw"));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Blocks.PlanksParquet, 1, i), "11","11", '1', new ItemStack(Items.PlankPlaned, 1, i)));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Blocks.PlanksLarge, 2, i), "111","111","111", '1', new ItemStack(Items.PlankPlaned, 1, i)));
} else if(i/16 == 1){
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Blocks.PlanksVert2, 1, l), " 1 ","11 ","1 ", '1', new ItemStack(TFCItems.singlePlank, 1, i)));
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(TFCItems.singlePlank, 4, i), new ItemStack(Blocks.PlanksVert2, 1, l), "itemSaw"));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Blocks.PlanksParquet2, 2, l), "11","11", '1', new ItemStack(Items.PlankPlaned, 1, i)));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Blocks.PlanksLarge2, 2, l), "111","111","111", '1', new ItemStack(Items.PlankPlaned, 1, i)));
} else if(i/32 == 1){
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Blocks.PlanksVert3, 1, l), " 1 ","11 ","1 ", '1', new ItemStack(TFCItems.singlePlank, 1, i)));
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(TFCItems.singlePlank, 4, i), new ItemStack(Blocks.PlanksVert3, 1, l), "itemSaw"));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Blocks.PlanksParquet3, 2, l), "11","11", '1', new ItemStack(Items.PlankPlaned, 1, i)));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Blocks.PlanksLarge3, 2, l), "111","111","111", '1', new ItemStack(Items.PlankPlaned, 1, i)));
}
Expand Down

0 comments on commit 55eeb35

Please sign in to comment.