Fix wrench recipe issues
Remove fluid pipe Add recipe to switch rubber Fix some missing textures
This commit is contained in:
parent
0a2e878b88
commit
edf266588f
9 changed files with 34 additions and 22 deletions
|
@ -6,9 +6,12 @@ import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
|||
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
|
||||
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
||||
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
|
||||
import reborncore.api.recipe.RecipeHandler;
|
||||
import reborncore.common.util.CraftingHelper;
|
||||
import techreborn.compat.ICompatModule;
|
||||
import techreborn.init.ModBlocks;
|
||||
import techreborn.init.ModItems;
|
||||
import techreborn.items.ItemParts;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
@ -36,7 +39,10 @@ public class RecipesIC2 implements ICompatModule {
|
|||
|
||||
@Override
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
CraftingHelper.addShapelessRecipe(ItemParts.getPartByName("rubber"), IC2Items.getItem("crafting", "rubber"));
|
||||
CraftingHelper.addShapelessRecipe(IC2Items.getItem("crafting", "rubber"), ItemParts.getPartByName("rubber"));
|
||||
|
||||
CraftingHelper.addShapelessRecipe(IC2Items.getItem("electric_wrench"), new ItemStack(ModItems.wrench), IC2Items.getItem("crafting", "small_power_unit"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -254,5 +254,7 @@ import java.util.List;
|
|||
recipeTransferRegistry
|
||||
.addRecipeTransferHandler(ContainerCompressor.class, RecipeCategoryUids.COMPRESSOR, 0, 1, 2, 36);
|
||||
|
||||
registry.getJeiHelpers().getItemBlacklist().addItemToBlacklist(new ItemStack(ModBlocks.pump));
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -439,7 +439,8 @@ public class ModRecipes
|
|||
new ItemStack(Blocks.NETHERRACK),
|
||||
ItemDusts.getDustByName("netherrack"),
|
||||
300, 27));
|
||||
|
||||
|
||||
|
||||
for(String oreDictionaryName : OreDictionary.getOreNames()) {
|
||||
if(isDictPrefixed(oreDictionaryName, "ore", "gem", "ingot")) {
|
||||
ItemStack oreStack = getDictOreOrNull(oreDictionaryName, 1);
|
||||
|
@ -456,8 +457,11 @@ public class ModRecipes
|
|||
continue;
|
||||
|
||||
boolean ore = data[0].equals("ore");
|
||||
Core.logHelper.info("Ore: " + data[1]);
|
||||
Core.logHelper.debug("Ore: " + data[1]);
|
||||
ItemStack dust = getDictOreOrNull(joinDictName("dust", data[1]), ore ? 2 : 1);
|
||||
if(dust == null || dust.getItem() == null){
|
||||
continue;
|
||||
}
|
||||
RecipeHandler.addRecipe(new GrinderRecipe(oreStack, dust, ore ? 270 : 200, ore ? 31 : 22));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,12 +50,12 @@ public class TechRebornParts implements ICompatModule
|
|||
cables.setRegistryName("cables");
|
||||
GameRegistry.register(cables);
|
||||
|
||||
MultipartRegistry.registerPart(EmptyFluidPipe.class, "techreborn:fluidpipe.empty");
|
||||
MultipartRegistry.registerPart(InsertingFluidPipe.class, "techreborn:fluidpipe.inserting");
|
||||
MultipartRegistry.registerPart(ExtractingFluidPipe.class, "techreborn:fluidpipe.extracting");
|
||||
fluidPipe = new ItemFluidPipe();
|
||||
fluidPipe.setRegistryName("fluidPipe");
|
||||
GameRegistry.register(fluidPipe);
|
||||
// MultipartRegistry.registerPart(EmptyFluidPipe.class, "techreborn:fluidpipe.empty");
|
||||
// MultipartRegistry.registerPart(InsertingFluidPipe.class, "techreborn:fluidpipe.inserting");
|
||||
// MultipartRegistry.registerPart(ExtractingFluidPipe.class, "techreborn:fluidpipe.extracting");
|
||||
// fluidPipe = new ItemFluidPipe();
|
||||
// fluidPipe.setRegistryName("fluidPipe");
|
||||
// GameRegistry.register(fluidPipe);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue