Added gem upgrade recipes to GT
Can now be safely removed from Gregtech.zs
This commit is contained in:
parent
a0c2f1b8b5
commit
045fac94a6
2 changed files with 6 additions and 0 deletions
|
@ -6,6 +6,7 @@ import gregtech.api.enums.OrePrefixes;
|
||||||
import gregtech.api.util.GT_OreDictUnificator;
|
import gregtech.api.util.GT_OreDictUnificator;
|
||||||
import gregtech.api.util.GT_Utility;
|
import gregtech.api.util.GT_Utility;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraftforge.oredict.OreDictionary;
|
||||||
|
|
||||||
public class ProcessingGemExquisite implements gregtech.api.interfaces.IOreRecipeRegistrator {
|
public class ProcessingGemExquisite implements gregtech.api.interfaces.IOreRecipeRegistrator {
|
||||||
public ProcessingGemExquisite() {
|
public ProcessingGemExquisite() {
|
||||||
|
@ -18,5 +19,7 @@ public class ProcessingGemExquisite implements gregtech.api.interfaces.IOreRecip
|
||||||
if (!aMaterial.contains(gregtech.api.enums.SubTag.NO_WORKING))
|
if (!aMaterial.contains(gregtech.api.enums.SubTag.NO_WORKING))
|
||||||
GT_Values.RA.addLatheRecipe(GT_Utility.copyAmount(1L, new Object[]{aStack}), GT_OreDictUnificator.get(OrePrefixes.stickLong, aMaterial, 3L), GT_OreDictUnificator.getDust(aMaterial, aPrefix.mMaterialAmount - OrePrefixes.stickLong.mMaterialAmount * 3L), (int) Math.max(aMaterial.getMass() * 10L, 1L), 16);
|
GT_Values.RA.addLatheRecipe(GT_Utility.copyAmount(1L, new Object[]{aStack}), GT_OreDictUnificator.get(OrePrefixes.stickLong, aMaterial, 3L), GT_OreDictUnificator.getDust(aMaterial, aPrefix.mMaterialAmount - OrePrefixes.stickLong.mMaterialAmount * 3L), (int) Math.max(aMaterial.getMass() * 10L, 1L), 16);
|
||||||
GT_Values.RA.addForgeHammerRecipe(aStack, GT_OreDictUnificator.get(OrePrefixes.gemFlawless, aMaterial, 2L), 64, 16);
|
GT_Values.RA.addForgeHammerRecipe(aStack, GT_OreDictUnificator.get(OrePrefixes.gemFlawless, aMaterial, 2L), 64, 16);
|
||||||
|
for(ItemStack is: OreDictionary.getOres("craftingLens"+aMaterial.mColor.mName.replace(" ","")))
|
||||||
|
GT_Values.RA.addLaserEngraverRecipe(GT_OreDictUnificator.get(OrePrefixes.gemFlawless,aMaterial,3L), is,GT_Utility.copyAmount(1L, new Object[]{aStack}),2400,2000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@ import gregtech.api.enums.OrePrefixes;
|
||||||
import gregtech.api.util.GT_OreDictUnificator;
|
import gregtech.api.util.GT_OreDictUnificator;
|
||||||
import gregtech.api.util.GT_Utility;
|
import gregtech.api.util.GT_Utility;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraftforge.oredict.OreDictionary;
|
||||||
|
|
||||||
public class ProcessingGemFlawless implements gregtech.api.interfaces.IOreRecipeRegistrator {
|
public class ProcessingGemFlawless implements gregtech.api.interfaces.IOreRecipeRegistrator {
|
||||||
public ProcessingGemFlawless() {
|
public ProcessingGemFlawless() {
|
||||||
|
@ -18,5 +19,7 @@ public class ProcessingGemFlawless implements gregtech.api.interfaces.IOreRecipe
|
||||||
if (!aMaterial.contains(gregtech.api.enums.SubTag.NO_WORKING))
|
if (!aMaterial.contains(gregtech.api.enums.SubTag.NO_WORKING))
|
||||||
GT_Values.RA.addLatheRecipe(GT_Utility.copyAmount(1L, new Object[]{aStack}), GT_OreDictUnificator.get(OrePrefixes.stickLong, aMaterial, 1L), GT_OreDictUnificator.getDust(aMaterial, aPrefix.mMaterialAmount - OrePrefixes.stickLong.mMaterialAmount), (int) Math.max(aMaterial.getMass() * 5L, 1L), 16);
|
GT_Values.RA.addLatheRecipe(GT_Utility.copyAmount(1L, new Object[]{aStack}), GT_OreDictUnificator.get(OrePrefixes.stickLong, aMaterial, 1L), GT_OreDictUnificator.getDust(aMaterial, aPrefix.mMaterialAmount - OrePrefixes.stickLong.mMaterialAmount), (int) Math.max(aMaterial.getMass() * 5L, 1L), 16);
|
||||||
GT_Values.RA.addForgeHammerRecipe(aStack, GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 2L), 64, 16);
|
GT_Values.RA.addForgeHammerRecipe(aStack, GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 2L), 64, 16);
|
||||||
|
for(ItemStack is:OreDictionary.getOres("craftingLens"+aMaterial.mColor.mName.replace(" ","")))
|
||||||
|
GT_Values.RA.addLaserEngraverRecipe(GT_OreDictUnificator.get(OrePrefixes.gem,aMaterial,3L), is,GT_Utility.copyAmount(1L, new Object[]{aStack}),1200,480);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue