Updated rubber log usage. Some work on #1706

This commit is contained in:
drcrazy 2019-04-23 16:14:54 +03:00
parent c57c8b5287
commit a506f4b301
4 changed files with 14 additions and 8 deletions

View file

@ -71,6 +71,7 @@ public enum IC2Duplicates {
SCRAP(ItemParts.getPartByName("scrap")),
SCRAP_BOX(new ItemStack(ModItems.SCRAP_BOX)),
FREQ_TRANSMITTER(new ItemStack(ModItems.FREQUENCY_TRANSMITTER)),
RUBBER_WOOD(new ItemStack(ModBlocks.RUBBER_LOG)),
//Classical dedupes
ENERGY_CRYSTAL(new ItemStack(ModItems.ENERGY_CRYSTAL), true),

View file

@ -120,7 +120,8 @@ public class OreDict {
OreUtil.registerOre("fenceIron", ModBlocks.REFINED_IRON_FENCE);
//TODO ic2 bug? Disabled as it crashes with this line
//OreUtil.registerOre("woodRubber", ModBlocks.RUBBER_LOG);
OreUtil.registerOre("logWood", ModBlocks.RUBBER_LOG);
OreUtil.registerOre("logRubber", ModBlocks.RUBBER_LOG);
OreUtil.registerOre("glassReinforced", ModBlocks.REINFORCED_GLASS);
OreUtil.registerOre("craftingDiamondGrinder", ItemParts.getPartByName("diamondGrindingHead"));

View file

@ -64,11 +64,16 @@ public class CraftingTableRecipes extends RecipeMethods {
registerCompressionRecipes();
registerMixedMetalIngotRecipes();
// Wood stuff
registerShapeless(getStack(ModBlocks.RUBBER_PLANKS, 4), IC2Duplicates.RUBBER_WOOD.getStackBasedOnConfig());
registerShaped(new ItemStack(ModBlocks.RUBBER_LOG_SLAB_HALF, 6), "WWW", 'W', new ItemStack(ModBlocks.RUBBER_PLANKS));
registerShaped(new ItemStack(ModBlocks.RUBBER_LOG_STAIR, 4), "W ", "WW ", "WWW", 'W', new ItemStack(ModBlocks.RUBBER_PLANKS));
registerShapeless(BlockStorage2.getStorageBlockByName("iridium_reinforced_stone", 1), "stone", "plateIridiumAlloy");
registerShapeless(BlockStorage2.getStorageBlockByName("iridium_reinforced_tungstensteel", 1), BlockStorage2.getStorageBlockByName("tungstensteel", 1), "plateIridium");
registerShapeless(BlockStorage2.getStorageBlockByName("iridium_reinforced_tungstensteel", 1), BlockStorage2.getStorageBlockByName("iridium_reinforced_stone", 1), getMaterialObject("tungstensteel", Type.INGOT));
registerShapeless(getStack(ModBlocks.RUBBER_PLANKS, 4), getStack(ModBlocks.RUBBER_LOG));
if(newCellRecipe){
registerShaped(DynamicCell.getEmptyCell(16), " T ", "TGT", " T ", 'T', "ingotTin", 'G', "paneGlass"); // Blame thermal expansion for making gears have the same recipe
} else {
@ -319,9 +324,6 @@ public class CraftingTableRecipes extends RecipeMethods {
}
}
registerShaped(new ItemStack(ModBlocks.RUBBER_LOG_SLAB_HALF, 6), "WWW", 'W', new ItemStack(ModBlocks.RUBBER_PLANKS));
registerShaped(new ItemStack(ModBlocks.RUBBER_LOG_STAIR, 4), "W ", "WW ", "WWW", 'W', new ItemStack(ModBlocks.RUBBER_PLANKS));
Core.logHelper.info("Crafting Table Recipes Added");
}

View file

@ -29,7 +29,7 @@ import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import reborncore.api.recipe.RecipeHandler;
import techreborn.api.recipe.machines.CentrifugeRecipe;
import techreborn.init.ModBlocks;
import techreborn.init.IC2Duplicates;
import techreborn.items.DynamicCell;
import java.security.InvalidParameterException;
@ -78,7 +78,9 @@ public class IndustrialCentrifugeRecipes extends RecipeMethods {
register(getStack(Blocks.RED_MUSHROOM, 32), 5000, getMaterial("methane", Type.CELL));
register(getStack(Items.NETHER_WART, 32), 5000, getMaterial("methane", Type.CELL));
register(getMaterial("sap", 4, Type.PART), 1300, getMaterial("rubber", 14, Type.PART));
register(getStack(ModBlocks.RUBBER_LOG, 16), 5000, false, getMaterial("sap", 8, Type.PART), getMaterial("methane", Type.CELL), getMaterial("carbon", 4, Type.CELL));
ItemStack stack = IC2Duplicates.RUBBER_WOOD.getStackBasedOnConfig();
stack.setCount(16);
register(stack, 5000, false, getMaterial("sap", 8, Type.PART), getMaterial("methane", Type.CELL), getMaterial("carbon", 4, Type.CELL));
register(getStack(Blocks.SOUL_SAND, 16), 2500, getStack(Blocks.SAND, 10), getMaterial("saltpeter", 4, Type.DUST), getMaterial("coal", Type.DUST), getMaterial("oil", Type.CELL));
register(getOre("dustBronze"), 1500, getMaterial("copper", 6, Type.SMALL_DUST), getMaterial("tin", 2, Type.SMALL_DUST));
register(getOre("dustIron", 2), 1500, getMaterial("tin", Type.SMALL_DUST), getMaterial("nickel", Type.SMALL_DUST));