Make empty cells require a glass pane due to thermal expansion changing their gear recipes to clash. Config to disable + add old recipe to rolling machine
This commit is contained in:
parent
66e60655bf
commit
a0ee459d13
2 changed files with 16 additions and 1 deletions
|
@ -30,6 +30,8 @@ import net.minecraft.init.Enchantments;
|
|||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
import reborncore.common.registration.RebornRegistry;
|
||||
import reborncore.common.registration.impl.ConfigRegistry;
|
||||
import reborncore.common.util.OreUtil;
|
||||
import reborncore.common.util.RebornCraftingHelper;
|
||||
import reborncore.common.util.StringUtils;
|
||||
|
@ -49,7 +51,12 @@ import techreborn.items.ingredients.ItemParts;
|
|||
/**
|
||||
* Created by Prospector
|
||||
*/
|
||||
@RebornRegistry
|
||||
public class CraftingTableRecipes extends RecipeMethods {
|
||||
|
||||
@ConfigRegistry(config = "recipes", category = "crafting", key = "cellRecipe", comment = "Enables the new thermal expansion compatible cell recipe")
|
||||
public static boolean newCellRecipe = true;
|
||||
|
||||
public static void init() {
|
||||
|
||||
registerCompressionRecipes();
|
||||
|
@ -59,7 +66,12 @@ public class CraftingTableRecipes extends RecipeMethods {
|
|||
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));
|
||||
registerShaped(DynamicCell.getEmptyCell(16), " T ", "T T", " T ", 'T', "ingotTin");
|
||||
if(newCellRecipe){
|
||||
registerShaped(DynamicCell.getEmptyCell(16), " T ", "TGT", " T ", 'T', "ingotTin", 'G', "paneGlass"); // Blame thermal expansion for making gears have the same recipe
|
||||
} else {
|
||||
registerShaped(DynamicCell.getEmptyCell(16), " T ", "T T", " T ", 'T', "ingotTin");
|
||||
}
|
||||
|
||||
registerShaped(getStack(ModBlocks.REFINED_IRON_FENCE), "RRR", "RRR", 'R', "ingotRefinedIron");
|
||||
registerShaped(getStack(ModBlocks.REINFORCED_GLASS, 7), "GAG", "GGG", "GAG", 'A', "plateAdvancedAlloy", 'G', "blockGlass");
|
||||
registerShaped(getStack(ModBlocks.REINFORCED_GLASS, 7), "GGG", "AGA", "GGG", 'A', "plateAdvancedAlloy", 'G', "blockGlass");
|
||||
|
|
|
@ -29,6 +29,7 @@ import net.minecraft.init.Items;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import techreborn.api.TechRebornAPI;
|
||||
import techreborn.items.DynamicCell;
|
||||
import techreborn.lib.ModInfo;
|
||||
|
||||
/**
|
||||
|
@ -56,6 +57,8 @@ public class RollingMachineRecipes extends RecipeMethods {
|
|||
register(new ResourceLocation(ModInfo.MOD_ID, "tripwire_hook"), getStack(Blocks.TRIPWIRE_HOOK, 4), " I ", " S ", " W ", 'I', "ingotIron", 'S', "stickWood", 'W', "plankWood");
|
||||
register(new ResourceLocation(ModInfo.MOD_ID, "heavy_pressure_plate"), getStack(Blocks.HEAVY_WEIGHTED_PRESSURE_PLATE, 2), "II ", 'I', "ingotIron");
|
||||
register(new ResourceLocation(ModInfo.MOD_ID, "light_pressure_plate"), getStack(Blocks.LIGHT_WEIGHTED_PRESSURE_PLATE, 2), "GG ", 'G', "ingotGold");
|
||||
|
||||
register(new ResourceLocation(ModInfo.MOD_ID, "empty_cell"), DynamicCell.getEmptyCell(24), " T ", "T T", " T ", 'T', "ingotTin");
|
||||
}
|
||||
|
||||
static void register(ResourceLocation resourceLocation, ItemStack output, Object... componentsObjects) {
|
||||
|
|
Loading…
Add table
Reference in a new issue