|
4 | 4 | import static gregtech.api.unification.ore.OrePrefix.*; |
5 | 5 | import static gtexpert.integration.deda.recipes.DraconicMaterialsRecipe.ABFDurationMultiplier; |
6 | 6 |
|
| 7 | +import net.minecraftforge.fluids.FluidStack; |
| 8 | + |
| 9 | +import gregtech.api.fluids.store.FluidStorageKeys; |
7 | 10 | import gregtech.api.recipes.ModHandler; |
8 | 11 | import gregtech.api.recipes.RecipeMaps; |
9 | 12 | import gregtech.api.recipes.category.RecipeCategories; |
|
15 | 18 | import gregtech.api.unification.material.properties.PropertyKey; |
16 | 19 | import gregtech.api.unification.stack.UnificationEntry; |
17 | 20 | import gregtech.common.ConfigHolder; |
| 21 | +import gregtech.common.items.MetaItems; |
18 | 22 |
|
19 | 23 | import gregicality.multiblocks.api.fluids.GCYMFluidStorageKeys; |
20 | 24 | import gregicality.multiblocks.api.recipes.GCYMRecipeMaps; |
@@ -325,6 +329,11 @@ public static void init() { |
325 | 329 | int durationFluixAlloy = propertyFluixAlloy.getDurationOverride(); |
326 | 330 | if (durationFluixAlloy < 0) durationFluixAlloy = Math.max(1, |
327 | 331 | (int) (GTEMaterials.FluixAlloy.getMass() * propertyFluixAlloy.getBlastTemperature() / 100L)); |
| 332 | + int vacuumEUt = propertyFluixAlloy.getVacuumEUtOverride() != -1 ? propertyFluixAlloy.getVacuumEUtOverride() : |
| 333 | + VA[MV]; |
| 334 | + int vacuumDuration = propertyFluixAlloy.getVacuumDurationOverride() != -1 ? |
| 335 | + propertyFluixAlloy.getVacuumDurationOverride() : |
| 336 | + (int) GTEMaterials.FluixAlloy.getMass() * 3; |
328 | 337 |
|
329 | 338 | // Fluid |
330 | 339 | if (Mods.DraconicEvolution.isModLoaded()) { |
@@ -377,6 +386,28 @@ public static void init() { |
377 | 386 | .output(dust, GTEMaterials.FluixAlloy, 8) |
378 | 387 | .duration(200).EUt(VA[GTEValues.ae2VoltageTier]) |
379 | 388 | .buildAndRegister(); |
| 389 | + |
| 390 | + // Ingot |
| 391 | + RecipeMaps.VACUUM_RECIPES.recipeBuilder() |
| 392 | + .notConsumable(MetaItems.SHAPE_MOLD_INGOT) |
| 393 | + .fluidInputs(new FluidStack(GTEMaterials.FluixAlloy.getFluid(GCYMFluidStorageKeys.MOLTEN), 144)) |
| 394 | + .fluidInputs(Materials.Helium.getFluid(FluidStorageKeys.LIQUID, 500)) |
| 395 | + .fluidOutputs(Materials.Helium.getFluid(250)) |
| 396 | + .output(ingot, GTEMaterials.FluixAlloy, 1) |
| 397 | + .duration(vacuumDuration) |
| 398 | + .EUt(vacuumEUt) |
| 399 | + .buildAndRegister(); |
| 400 | + if (Mods.DraconicEvolution.isModLoaded()) { |
| 401 | + RecipeMaps.VACUUM_RECIPES.recipeBuilder() |
| 402 | + .notConsumable(MetaItems.SHAPE_MOLD_INGOT) |
| 403 | + .fluidInputs(new FluidStack(GTEMaterials.FluixAlloy.getFluid(GCYMFluidStorageKeys.MOLTEN), 144)) |
| 404 | + .fluidInputs(GTEMaterials.Cryotheum.getFluid(250)) |
| 405 | + .fluidOutputs(GTEMaterials.Pyrotheum.getFluid(GCYMFluidStorageKeys.MOLTEN, 50)) |
| 406 | + .output(ingot, GTEMaterials.FluixAlloy, 1) |
| 407 | + .duration(vacuumDuration / 2) |
| 408 | + .EUt(vacuumEUt) |
| 409 | + .buildAndRegister(); |
| 410 | + } |
380 | 411 | } |
381 | 412 |
|
382 | 413 | public static void remove() { |
|
0 commit comments