More recipes, work on #182
This commit is contained in:
parent
96a7b56b5f
commit
0c80f2beda
3 changed files with 76 additions and 0 deletions
|
@ -1190,6 +1190,29 @@ public class RecipesIC2 implements ICompatModule {
|
||||||
'D', ItemDusts.getDustByName("diamond"),
|
'D', ItemDusts.getDustByName("diamond"),
|
||||||
'A', IC2Items.getItem("advancedAlloy"));
|
'A', IC2Items.getItem("advancedAlloy"));
|
||||||
|
|
||||||
|
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.lithiumBatpack, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
|
"BCB", "BPB", "B B",
|
||||||
|
'B', new ItemStack(ModItems.lithiumBattery),
|
||||||
|
'P', "plateAluminum",
|
||||||
|
'C', IC2Items.getItem("advancedCircuit"));
|
||||||
|
|
||||||
|
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.lithiumBattery, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
|
" C ", "PFP", "PFP",
|
||||||
|
'F', ItemCells.getCellByName("lithium"),
|
||||||
|
'P', "plateAluminum",
|
||||||
|
'C', IC2Items.getItem("insulatedGoldCableItem"));
|
||||||
|
|
||||||
|
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.lapotronpack, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
|
"FOF", "SPS", "FIF",
|
||||||
|
'F', ItemParts.getPartByName("energyFlowCircuit"),
|
||||||
|
'O', new ItemStack(ModItems.lapotronicOrb),
|
||||||
|
'S', ItemParts.getPartByName("superConductor"),
|
||||||
|
'I', "ingotIridium",
|
||||||
|
'P', new ItemStack(ModItems.lapotronpack));
|
||||||
|
|
||||||
|
|
||||||
|
Recipes.compressor.addRecipe(new RecipeInputOreDict("dustLazurite"), null, ItemParts.getPartByName("lazuriteChunk"));
|
||||||
|
|
||||||
Core.logHelper.info("Added Expensive IC2 Recipes");
|
Core.logHelper.info("Added Expensive IC2 Recipes");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@ public class ModItems {
|
||||||
public static Item rockCutter;
|
public static Item rockCutter;
|
||||||
public static Item lithiumBatpack;
|
public static Item lithiumBatpack;
|
||||||
public static Item lapotronpack;
|
public static Item lapotronpack;
|
||||||
|
public static Item lithiumBattery;
|
||||||
public static Item omniTool;
|
public static Item omniTool;
|
||||||
public static Item advancedDrill;
|
public static Item advancedDrill;
|
||||||
public static Item lapotronicOrb;
|
public static Item lapotronicOrb;
|
||||||
|
@ -101,6 +102,8 @@ public class ModItems {
|
||||||
GameRegistry.registerItem(lithiumBatpack, "lithiumBatpack");
|
GameRegistry.registerItem(lithiumBatpack, "lithiumBatpack");
|
||||||
lapotronpack = PoweredItem.createItem(ItemLapotronPack.class);
|
lapotronpack = PoweredItem.createItem(ItemLapotronPack.class);
|
||||||
GameRegistry.registerItem(lapotronpack, "lapotronPack");
|
GameRegistry.registerItem(lapotronpack, "lapotronPack");
|
||||||
|
lithiumBattery = PoweredItem.createItem(ItemLithiumBattery.class);
|
||||||
|
GameRegistry.registerItem(lithiumBattery, "lithiumBattery");
|
||||||
lapotronicOrb = PoweredItem.createItem(ItemLapotronicOrb.class);
|
lapotronicOrb = PoweredItem.createItem(ItemLapotronicOrb.class);
|
||||||
GameRegistry.registerItem(lapotronicOrb, "lapotronicOrb");
|
GameRegistry.registerItem(lapotronicOrb, "lapotronicOrb");
|
||||||
omniTool = PoweredItem.createItem(ItemOmniTool.class);
|
omniTool = PoweredItem.createItem(ItemOmniTool.class);
|
||||||
|
|
50
src/main/java/techreborn/items/ItemLithiumBattery.java
Normal file
50
src/main/java/techreborn/items/ItemLithiumBattery.java
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
package techreborn.items;
|
||||||
|
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import techreborn.api.power.IEnergyItemInfo;
|
||||||
|
import techreborn.client.TechRebornCreativeTab;
|
||||||
|
|
||||||
|
public class ItemLithiumBattery extends ItemTR implements IEnergyItemInfo {
|
||||||
|
|
||||||
|
public ItemLithiumBattery() {
|
||||||
|
super();
|
||||||
|
setMaxStackSize(1);
|
||||||
|
setMaxDamage(1);
|
||||||
|
setUnlocalizedName("techreborn.lithiumBattery");
|
||||||
|
setCreativeTab(TechRebornCreativeTab.instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
@Override
|
||||||
|
public void registerIcons(IIconRegister iconRegister) {
|
||||||
|
this.itemIcon = iconRegister.registerIcon("techreborn:" + "lithiumBattery");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public double getMaxPower(ItemStack stack) {
|
||||||
|
return 100000;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canAcceptEnergy(ItemStack stack) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canProvideEnergy(ItemStack stack) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public double getMaxTransfer(ItemStack stack) {
|
||||||
|
return 64;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getStackTeir(ItemStack stack) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue