Blood asp fixes for scanner and tc recipes for mercury
This commit is contained in:
parent
2ad8584a4b
commit
840f269088
2 changed files with 9 additions and 7 deletions
|
@ -11,13 +11,18 @@ import gregtech.api.metatileentity.MetaTileEntity;
|
|||
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
|
||||
import gregtech.api.objects.GT_RenderedTexture;
|
||||
import gregtech.api.objects.ItemData;
|
||||
import gregtech.api.util.*;
|
||||
import gregtech.api.util.GT_LanguageManager;
|
||||
import gregtech.api.util.GT_Log;
|
||||
import gregtech.api.util.GT_OreDictUnificator;
|
||||
import gregtech.api.util.GT_Recipe;
|
||||
import gregtech.api.util.GT_Utility;
|
||||
import gregtech.common.items.behaviors.Behaviour_DataOrb;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraft.nbt.NBTTagString;
|
||||
import scala.tools.nsc.symtab.SymbolLoadersStats;
|
||||
|
||||
public class GT_MetaTileEntity_Scanner
|
||||
extends GT_MetaTileEntity_BasicMachine {
|
||||
|
@ -165,11 +170,8 @@ public class GT_MetaTileEntity_Scanner
|
|||
if(ItemList.Tool_DataStick.isStackEqual(getSpecialSlot(), false, true)&& aStack !=null){
|
||||
for(GT_Recipe.GT_Recipe_AssemblyLine tRecipe:GT_Recipe.GT_Recipe_AssemblyLine.sAssemblylineRecipes){
|
||||
if(GT_Utility.areStacksEqual(tRecipe.mResearchItem, aStack, true)){
|
||||
|
||||
this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[]{getSpecialSlot()});
|
||||
getSpecialSlot().stackSize -= 1;
|
||||
GT_Utility.ItemNBT.setBookTitle(this.mOutputItems[0], GT_LanguageManager.getTranslation(tRecipe.mOutput.getDisplayName())+" Construction Data");
|
||||
|
||||
NBTTagCompound tNBT = this.mOutputItems[0].getTagCompound();
|
||||
if (tNBT == null) {
|
||||
tNBT = new NBTTagCompound();
|
||||
|
@ -185,7 +187,6 @@ public class GT_MetaTileEntity_Scanner
|
|||
|
||||
tNBT.setTag("f"+i, tRecipe.mFluidInputs[i].writeToNBT(new NBTTagCompound()));
|
||||
}
|
||||
|
||||
tNBT.setString("author", "Assembly Line Recipe Generator");
|
||||
NBTTagList tNBTList = new NBTTagList();
|
||||
tNBTList.appendTag(new NBTTagString("Constructionplan for "+tRecipe.mOutput.stackSize+" "+GT_LanguageManager.getTranslation(tRecipe.mOutput.getDisplayName())+". Needed EU/t: "+tRecipe.mEUt+" Productiontime: "+(tRecipe.mDuration/20)));
|
||||
|
@ -202,7 +203,6 @@ public class GT_MetaTileEntity_Scanner
|
|||
tNBT.setTag("pages", tNBTList);
|
||||
|
||||
this.mOutputItems[0].setTagCompound(tNBT);
|
||||
|
||||
aStack.stackSize -= 1;
|
||||
calculateOverclockedNess(30,tRecipe.mResearchTime);
|
||||
//In case recipe is too OP for that machine
|
||||
|
|
|
@ -238,6 +238,7 @@ public class GT_MachineRecipeLoader implements Runnable {
|
|||
if (tMaterial.mStandardMoltenFluid != null) {
|
||||
GT_Values.RA.addFluidSolidifierRecipe(ItemList.Shape_Mold_Casing.get(0L, new Object[0]), tMaterial.getMolten(72L), ItemList.IC2_Item_Casing_Steel.get(1L, new Object[0]), 16, 8);
|
||||
}
|
||||
GT_Values.RA.addFluidSolidifierRecipe(ItemList.Shape_Mold_Ball.get(0L, new Object[0]), Materials.Mercury.getFluid(1000L), GT_ModHandler.getModItem("Thaumcraft", "ItemResource", 1, 3), 128, 4);
|
||||
GT_Values.RA.addFluidSolidifierRecipe(ItemList.Shape_Mold_Ball.get(0L, new Object[0]), Materials.Mercury.getFluid(1000L), GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Mercury, 1L), 128, 4);
|
||||
GT_Values.RA.addFluidSolidifierRecipe(ItemList.Shape_Mold_Ball.get(0L, new Object[0]), Materials.Water.getFluid(250L), new ItemStack(Items.snowball, 1, 0), 128, 4);
|
||||
GT_Values.RA.addFluidSolidifierRecipe(ItemList.Shape_Mold_Ball.get(0L, new Object[0]), GT_ModHandler.getDistilledWater(250L), new ItemStack(Items.snowball, 1, 0), 128, 4);
|
||||
|
@ -359,6 +360,7 @@ public class GT_MachineRecipeLoader implements Runnable {
|
|||
GT_Values.RA.addFluidExtractionRecipe(new ItemStack(Items.coal, 1, 1), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 1L), Materials.Creosote.getFluid(100L), 1000, 128, 4);
|
||||
GT_Values.RA.addFluidExtractionRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L), ItemList.IC2_Plantball.get(1L, new Object[0]), Materials.Creosote.getFluid(5L), 100, 16, 4);
|
||||
GT_Values.RA.addFluidExtractionRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HydratedCoal, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L), Materials.Water.getFluid(100L), 10000, 32, 4);
|
||||
GT_Values.RA.addFluidExtractionRecipe(GT_ModHandler.getModItem("Thaumcraft", "ItemResource", 1, 3), GT_Values.NI, Materials.Mercury.getFluid(1000L), 10000, 128, 4);
|
||||
GT_Values.RA.addFluidExtractionRecipe(GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Mercury, 1L), GT_Values.NI, Materials.Mercury.getFluid(1000L), 10000, 128, 4);
|
||||
GT_Values.RA.addFluidExtractionRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Monazite, 1L), GT_Values.NI, Materials.Helium.getFluid(200L), 10000, 64, 64);
|
||||
|
||||
|
|
Loading…
Reference in a new issue