Skip to content

Commit

Permalink
LaB6 Recycling Recipes (GTNewHorizons#3604)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Robertz <[email protected]>
  • Loading branch information
Nockyx and Dream-Master authored Dec 5, 2024
1 parent bc909f6 commit fd7b74e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import static gregtech.api.enums.Mods.UniversalSingularities;
import static gregtech.api.util.GTModHandler.getModItem;
import static gregtech.api.util.GTRecipeBuilder.SECONDS;
import static gregtech.api.util.GTRecipeBuilder.TICKS;

import net.minecraft.item.ItemStack;

Expand All @@ -25,6 +26,7 @@
import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.TierEU;
import gregtech.api.util.GTOreDictUnificator;
import gtnhlanth.common.register.WerkstoffMaterialPool;

public class ElectricImplosionCompressorRecipes implements Runnable {

Expand All @@ -49,6 +51,17 @@ public void run() {
}
}

// Manual Add due to werkstoff material system disconnected from autogeneration
GTValues.RA.stdBuilder()
.itemInputs(WerkstoffMaterialPool.LanthanumHexaboride.get(OrePrefixes.dust, 4))
.itemOutputs(
WerkstoffMaterialPool.LanthanumHexaboride.get(OrePrefixes.gem, 3),
GTOreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 12L))
.duration(1 * TICKS)
.eut(TierEU.RECIPE_UEV)
.noOptimize()
.addTo(electricImplosionCompressorRecipes);

GTValues.RA.stdBuilder()
.itemInputs(new ItemStack(highDensityPlutoniumNugget, 5))
.itemOutputs(new ItemStack(highDensityPlutonium, 1))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import gregtech.api.enums.TierEU;
import gregtech.api.util.GTOreDictUnificator;
import gregtech.api.util.GTRecipeConstants;
import gtnhlanth.common.register.WerkstoffMaterialPool;

public class ImplosionCompressorRecipes implements Runnable {

Expand All @@ -38,6 +39,16 @@ public void run() {
.eut(TierEU.RECIPE_LV)
.addTo(implosionRecipes);

GTValues.RA.stdBuilder()
.itemInputs(WerkstoffMaterialPool.LanthanumHexaboride.get(OrePrefixes.dust, 4))
.itemOutputs(
WerkstoffMaterialPool.LanthanumHexaboride.get(OrePrefixes.gem, 3),
GTOreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 12L))
.metadata(GTRecipeConstants.ADDITIVE_AMOUNT, 4)
.duration(1 * SECONDS)
.eut(TierEU.RECIPE_LV)
.addTo(implosionRecipes);

if (GalacticraftMars.isModLoaded()) {

GTValues.RA.stdBuilder()
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/gregtech/loaders/postload/recipes/LatheRecipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.util.GTOreDictUnificator;
import gtnhlanth.common.register.WerkstoffMaterialPool;

public class LatheRecipes implements Runnable {

Expand All @@ -36,5 +37,14 @@ public void run() {
.duration(2 * SECONDS + 10 * TICKS)
.eut(8)
.addTo(latheRecipes);

GTValues.RA.stdBuilder()
.itemInputs(WerkstoffMaterialPool.LanthanumHexaboride.get(OrePrefixes.gemFlawless, 1))
.itemOutputs(
WerkstoffMaterialPool.LanthanumHexaboride.get(OrePrefixes.stickLong, 1),
WerkstoffMaterialPool.LanthanumHexaboride.get(OrePrefixes.dust, 1))
.duration((100 * SECONDS))
.eut(16)
.addTo(latheRecipes);
}
}

0 comments on commit fd7b74e

Please sign in to comment.