Skip to content

Commit

Permalink
Harder Polarizer recipes and fix TantalumCarbide recipe (#1667)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungOnionMC authored Aug 8, 2024
1 parent be585a9 commit a584e71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.gregtechceu.gtceu.api.data.chemical.material.properties.IngotProperty;
import com.gregtechceu.gtceu.api.data.chemical.material.properties.PropertyKey;
import com.gregtechceu.gtceu.api.data.tag.TagPrefix;
import com.gregtechceu.gtceu.common.data.GTMaterials;
import com.gregtechceu.gtceu.data.recipe.VanillaRecipeHelper;

import net.minecraft.data.recipes.FinishedRecipe;
Expand Down Expand Up @@ -49,6 +50,9 @@ public static void processPolarizing(TagPrefix polarizingPrefix, Material materi
}

private static int getVoltageMultiplier(Material material) {
if (material == GTMaterials.Steel || material == GTMaterials.Iron) return VH[LV];
if (material == GTMaterials.Neodymium) return VH[HV];
if (material == GTMaterials.Samarium) return VH[IV];
return material.getBlastTemperature() >= 1200 ? VA[LV] : 2;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ private static void registerMixerRecipes(Consumer<FinishedRecipe> provider) {
.inputItems(dust, Tantalum)
.inputItems(dust, Carbon)
.outputItems(dust, TantalumCarbide, 2)
.duration(150).EUt(VA[IV])
.duration(150).EUt(VA[EV])
.save(provider);

MIXER_RECIPES.recipeBuilder("hsla_steel")
Expand Down

0 comments on commit a584e71

Please sign in to comment.