Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Add precious metals alloy recipe for ABS #781

Merged
merged 5 commits into from
Nov 25, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/main/java/gtPlusPlus/core/recipe/RECIPES_GREGTECH.java
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,21 @@ private static void blastSmelterRecipes() {
0,
20 * 120,
491520);

// molten precious metals alloy
CORE.RA.addBlastSmelterRecipe(
new ItemStack[] { ItemUtils.getGregtechCircuit(6),
ItemUtils.getItemStackOfAmountFromOreDict("dustRuthenium", 1),
ItemUtils.getItemStackOfAmountFromOreDict("dustRhodium", 1),
ItemUtils.getItemStackOfAmountFromOreDict("dustPalladium", 1),
ItemUtils.getItemStackOfAmountFromOreDict("dustPlatinum", 1),
ItemUtils.getItemStackOfAmountFromOreDict("dustOsmium", 1),
ItemUtils.getItemStackOfAmountFromOreDict("dustIridium", 1) },
GT_Values.NF,
FluidUtils.getFluidStack("molten.precious metals alloy", 864),
0,
20 * 540,
7864320);
}

private static void dehydratorRecipes() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import net.minecraft.item.ItemStack;
Expand All @@ -10,6 +11,8 @@

import org.apache.commons.lang3.ArrayUtils;

import gregtech.api.enums.Materials;
import gregtech.api.enums.MaterialsUEVplus;
import gregtech.api.util.GT_Recipe;
import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.api.objects.minecraft.ItemStackData;
Expand Down Expand Up @@ -64,6 +67,22 @@ private static boolean isValid(final ItemStack[] inputs, final ItemStack outputs

public static synchronized boolean generateGTNHBlastSmelterRecipesFromEBFList() {

List<String> blacklist = new ArrayList<>();
// superconductor base
blacklist.add(Materials.Pentacadmiummagnesiumhexaoxid.getDust(1).getUnlocalizedName());
blacklist.add(Materials.Titaniumonabariumdecacoppereikosaoxid.getDust(1).getUnlocalizedName());
blacklist.add(Materials.Uraniumtriplatinid.getDust(1).getUnlocalizedName());
blacklist.add(Materials.Vanadiumtriindinid.getDust(1).getUnlocalizedName());
blacklist.add(
Materials.Tetraindiumditindibariumtitaniumheptacoppertetrakaidekaoxid.getDust(1).getUnlocalizedName());
blacklist.add(Materials.Tetranaquadahdiindiumhexaplatiumosminid.getDust(1).getUnlocalizedName());
blacklist.add(Materials.Longasssuperconductornameforuvwire.getDust(1).getUnlocalizedName());
blacklist.add(Materials.Longasssuperconductornameforuhvwire.getDust(1).getUnlocalizedName());
blacklist.add(Materials.SuperconductorUEVBase.getDust(1).getUnlocalizedName());
blacklist.add(Materials.SuperconductorUIVBase.getDust(1).getUnlocalizedName());
blacklist.add(Materials.SuperconductorUMVBase.getDust(1).getUnlocalizedName());

blacklist.add(MaterialsUEVplus.TranscendentMetal.getDust(1).getUnlocalizedName());
// Make a counting object
int mSuccess = 0;

Expand Down Expand Up @@ -154,10 +173,13 @@ public static synchronized boolean generateGTNHBlastSmelterRecipesFromEBFList()
time = x.mDuration;
enabled = x.mEnabled;
special = x.mSpecialValue;

// continue to next recipe if the Temp is too high.
if (special > 3600) {
Logger.MACHINE_INFO("[ABS] Skipping ABS addition for GTNH due to temp.");
// black list apply
lordIcocain marked this conversation as resolved.
Show resolved Hide resolved
if (blacklist.contains(x.mInputs[0].getUnlocalizedName())) {
continue;
}
// skip high temp recipe with wrong voltage
if ((special > 3600) && (voltage == 120)) {
Logger.MACHINE_INFO("[ABS] Skipping ABS addition for GTNH due to wrong voltage");
continue;
} else {
FluidStack mMoltenStack = null;
Expand Down