Skip to content

Commit

Permalink
Merge branch 'master' into refactor-ore-and-worldgen
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursivePineapple committed Jan 10, 2025
2 parents 800ed4b + 1e6ce0b commit 49c324f
Show file tree
Hide file tree
Showing 97 changed files with 1,799 additions and 977 deletions.
12 changes: 6 additions & 6 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
dependencies {
api("com.github.GTNewHorizons:StructureLib:1.4.2:dev")
api("net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev")
api("com.github.GTNewHorizons:NotEnoughItems:2.7.13-GTNH:dev")
api("com.github.GTNewHorizons:NotEnoughItems:2.7.15-GTNH:dev")
api("com.github.GTNewHorizons:NotEnoughIds:2.1.6:dev")
api("com.github.GTNewHorizons:GTNHLib:0.6.0:dev")
api("com.github.GTNewHorizons:GTNHLib:0.6.1:dev")
api("com.github.GTNewHorizons:ModularUI:1.2.17:dev")
api("com.github.GTNewHorizons:ModularUI2:2.2.0-1.7.10:dev")
api("com.github.GTNewHorizons:waila:1.8.2:dev")
api("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-518-GTNH:dev")
api("com.github.GTNewHorizons:AE2FluidCraft-Rework:1.4.12-gtnh:dev")
api("com.github.GTNewHorizons:AE2FluidCraft-Rework:1.4.16-gtnh:dev")
api('com.github.GTNewHorizons:Yamcl:0.6.0:dev')
api("com.github.GTNewHorizons:Postea:1.0.13:dev")

Expand All @@ -64,7 +64,7 @@ dependencies {
compileOnlyApi("com.github.GTNewHorizons:EnderIO:2.9.2:dev") { transitive = false }
compileOnlyApi("com.github.GTNewHorizons:ForestryMC:4.10.1:dev") { transitive = false }
compileOnlyApi("com.github.GTNewHorizons:ProjectRed:4.11.0-GTNH:dev") { transitive = false }
compileOnlyApi("com.github.GTNewHorizons:Railcraft:9.16.1:dev") { transitive = false }
compileOnlyApi("com.github.GTNewHorizons:Railcraft:9.16.2:dev") { transitive = false }

compileOnly("TGregworks:TGregworks:1.7.10-GTNH-1.0.27:deobf") {transitive = false}
compileOnly("com.github.GTNewHorizons:ThaumicBases:1.8.2:dev") { transitive = false }
Expand All @@ -85,10 +85,10 @@ dependencies {
compileOnly('com.github.GTNewHorizons:HoloInventory:2.5.0-GTNH:dev') { transitive = false }
compileOnly rfg.deobf("curse.maven:extra-utilities-225561:2264384")
compileOnly rfg.deobf('curse.maven:minefactory-reloaded-66672:2366150')
compileOnly("com.github.GTNewHorizons:OpenComputers:1.11.2-GTNH:dev") {transitive = false}
compileOnly("com.github.GTNewHorizons:OpenComputers:1.11.3-GTNH:dev") {transitive = false}
// https://www.curseforge.com/minecraft/mc-mods/advancedsolarpanels
compileOnlyApi rfg.deobf('curse.maven:advsolar-362768:2885953')
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.7.2-GTNH:dev') {transitive = false}
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.7.4-GTNH:dev') {transitive = false}
compileOnly("com.github.GTNewHorizons:BloodMagic:1.7.0:dev") { transitive = false }
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.4.0:dev") { transitive = false }
compileOnly("com.github.GTNewHorizons:BetterLoadingScreen:1.7.0-GTNH:dev") { transitive = false }
Expand Down
11 changes: 11 additions & 0 deletions src/main/java/bartworks/common/loaders/recipes/Assembler.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,17 @@ public void run() {
.eut(TierEU.RECIPE_MV)
.addTo(assemblerRecipes);

GTValues.RA.stdBuilder()
.itemInputs(
ItemList.MACHINE_HULLS[3].get(1),
ItemList.Electric_Pump_HV.get(2),
GTOreDictUnificator.get(OrePrefixes.circuit, Materials.EV, 4),
GTOreDictUnificator.get(OrePrefixes.pipeLarge, Materials.StainlessSteel, 2))
.itemOutputs(ItemList.Distillation_Tower.get(1))
.duration(10 * SECONDS)
.eut(30)
.addTo(assemblerRecipes);

GTValues.RA.stdBuilder()
.itemInputs(
ItemList.Hatch_Input_HV.get(64),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import static gregtech.api.util.GTRecipeBuilder.SECONDS;
import static gregtech.api.util.GTRecipeConstants.AssemblyLine;
import static gregtech.api.util.GTRecipeConstants.RESEARCH_ITEM;
import static gregtech.api.util.GTRecipeConstants.RESEARCH_TIME;
import static gregtech.api.util.GTRecipeConstants.SCANNING;

import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidRegistry;
Expand All @@ -18,6 +18,7 @@
import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.TierEU;
import gregtech.api.util.GTOreDictUnificator;
import gregtech.api.util.recipe.Scanning;

public class AssemblyLine implements Runnable {

Expand All @@ -27,9 +28,10 @@ public void run() {
? FluidRegistry.getFluid("molten.indalloy140")
: FluidRegistry.getFluid("molten.solderingalloy");

// Void Miner Mk1
GTValues.RA.stdBuilder()
.metadata(RESEARCH_ITEM, ItemList.OreDrill4.get(1L))
.metadata(RESEARCH_TIME, 25 * MINUTES + 36 * SECONDS)
.metadata(SCANNING, new Scanning(2 * MINUTES, TierEU.RECIPE_LuV))
.itemInputs(
ItemList.OreDrill4.get(1L),
GTOreDictUnificator.get(OrePrefixes.frameGt, Materials.Tritanium, 9L),
Expand All @@ -44,9 +46,10 @@ public void run() {
.duration(5 * MINUTES)
.addTo(AssemblyLine);

// Circuit Assembly Line
GTValues.RA.stdBuilder()
.metadata(RESEARCH_ITEM, ItemList.Machine_LuV_CircuitAssembler.get(1L))
.metadata(RESEARCH_TIME, 20 * MINUTES)
.metadata(SCANNING, new Scanning(1 * MINUTES + 40 * SECONDS, TierEU.RECIPE_IV))
.itemInputs(
ItemList.Machine_LuV_CircuitAssembler.get(1L),
ItemList.Robot_Arm_LuV.get(4L),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import static gregtech.api.util.GTStructureUtility.buildHatchAdder;
import static gregtech.api.util.GTStructureUtility.ofCoil;

import java.util.ArrayList;
import java.util.Arrays;

import javax.annotation.Nonnull;
Expand All @@ -35,7 +34,6 @@
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.StatCollector;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.fluids.FluidStack;

import com.gtnewhorizon.structurelib.alignment.constructable.ISurvivalConstructable;
import com.gtnewhorizon.structurelib.structure.IStructureDefinition;
Expand All @@ -50,15 +48,13 @@
import gregtech.api.GregTechAPI;
import gregtech.api.enums.GTValues;
import gregtech.api.enums.HeatingCoilLevel;
import gregtech.api.enums.Materials;
import gregtech.api.enums.SoundResource;
import gregtech.api.interfaces.ITexture;
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import gregtech.api.logic.ProcessingLogic;
import gregtech.api.metatileentity.implementations.MTEHatch;
import gregtech.api.metatileentity.implementations.MTEHatchEnergy;
import gregtech.api.metatileentity.implementations.MTEHatchOutput;
import gregtech.api.recipe.RecipeMap;
import gregtech.api.recipe.RecipeMaps;
import gregtech.api.recipe.check.CheckRecipeResult;
Expand All @@ -79,10 +75,7 @@ public class MTEMegaBlastFurnace extends MegaMultiBlockBase<MTEMegaBlastFurnace>
.addElement('=', StructureElementAirNoHint.getInstance())
.addElement(
't',
buildHatchAdder(MTEMegaBlastFurnace.class)
.atLeast(
OutputHatch.withAdder(MTEMegaBlastFurnace::addOutputHatchToTopList)
.withCount(t -> t.mPollutionOutputHatches.size()))
buildHatchAdder(MTEMegaBlastFurnace.class).atLeast(OutputHatch)
.casingIndex(CASING_INDEX)
.dot(1)
.buildAndChain(GregTechAPI.sBlockCasings1, CASING_INDEX))
Expand Down Expand Up @@ -144,9 +137,6 @@ private static String[][] createShape() {
}

private HeatingCoilLevel mCoilLevel;
protected final ArrayList<MTEHatchOutput> mPollutionOutputHatches = new ArrayList<>();
protected final FluidStack[] pollutionFluidStacks = { Materials.CarbonDioxide.getGas(1000),
Materials.CarbonMonoxide.getGas(1000), Materials.SulfurDioxide.getGas(1000) };
private int mHeatingCapacity;
private byte glassTier;
private final static int polPtick = PollutionConfig.basePollutionMBFSecond / 20
Expand All @@ -168,7 +158,7 @@ public IMetaTileEntity newMetaEntity(IGregTechTileEntity iGregTechTileEntity) {
@Override
protected MultiblockTooltipBuilder createTooltip() {
MultiblockTooltipBuilder tt = new MultiblockTooltipBuilder();
tt.addMachineType("Blast Furnace, MEBF")
tt.addMachineType("Blast Furnace, MEBF, MBF")
.addParallelInfo(Configuration.Multiblocks.megaMachinesMax)
.addInfo("You can use some fluids to reduce recipe time. Place the circuit in the Input Bus")
.addInfo("Each 900K over the min. Heat required reduces power consumption by 5% (multiplicatively)")
Expand All @@ -189,7 +179,7 @@ protected MultiblockTooltipBuilder createTooltip() {
.addPollutionAmount(getPollutionPerSecond(null))
.beginStructureBlock(15, 20, 15, true)
.addController("3rd layer center")
.addCasingInfoRange("Heat Proof Machine Casing", 0, 279, false)
.addCasingInfoRange("Heat Proof Machine Casing", 0, 447, false)
.addOtherStructurePart("864x Heating Coils", "Inner 13x18x13 (Hollow)")
.addOtherStructurePart("1007x Borosilicate Glass", "Outer 15x18x15")
.addStructureInfo("The glass tier limits the Energy Input tier")
Expand All @@ -199,9 +189,7 @@ protected MultiblockTooltipBuilder createTooltip() {
.addInputBus("Any bottom layer casing")
.addInputHatch("Any bottom layer casing")
.addOutputBus("Any bottom layer casing")
.addOutputHatch("Gasses, Any top layer casing")
.addStructureInfo("Recovery amount scales with Muffler Hatch tier")
.addOutputHatch("Platline fluids, Any bottom layer casing")
.addOutputHatch("Any Heat Proof Machine Casing")
.addStructureHint("This Mega Multiblock is too big to have its structure hologram displayed fully.")
.toolTipFinisher();
return tt;
Expand Down Expand Up @@ -275,17 +263,6 @@ public int getPollutionPerSecond(ItemStack aStack) {
return polPtick * 20;
}

public boolean addOutputHatchToTopList(IGregTechTileEntity aTileEntity, int aBaseCasingIndex) {
if (aTileEntity == null) return false;
IMetaTileEntity aMetaTileEntity = aTileEntity.getMetaTileEntity();
if (aMetaTileEntity == null) return false;
if (aMetaTileEntity instanceof MTEHatchOutput) {
((MTEHatch) aMetaTileEntity).updateTexture(aBaseCasingIndex);
return this.mPollutionOutputHatches.add((MTEHatchOutput) aMetaTileEntity);
}
return false;
}

@Override
protected String[] getExtendedInfoData() {
return new String[] { StatCollector.translateToLocal("GT5U.EBF.heat") + ": "
Expand Down Expand Up @@ -344,36 +321,13 @@ public HeatingCoilLevel getCoilLevel() {
return this.mCoilLevel;
}

@Override
public boolean addOutput(FluidStack aLiquid) {
if (aLiquid == null) return false;
FluidStack tLiquid = aLiquid.copy();
boolean isOutputPollution = false;
for (FluidStack pollutionFluidStack : this.pollutionFluidStacks) {
if (!tLiquid.isFluidEqual(pollutionFluidStack)) continue;

isOutputPollution = true;
break;
}
ArrayList<MTEHatchOutput> tOutputHatches;
if (isOutputPollution) {
tOutputHatches = this.mPollutionOutputHatches;
tLiquid.amount = tLiquid.amount * Math.min(100 - getAveragePollutionPercentage(), 100) / 100;
} else {
tOutputHatches = this.mOutputHatches;
}
return dumpFluid(tOutputHatches, tLiquid, true) || dumpFluid(tOutputHatches, tLiquid, false);
}

@Override
public boolean checkMachine(IGregTechTileEntity iGregTechTileEntity, ItemStack itemStack) {
this.mHeatingCapacity = 0;
this.glassTier = 0;

this.setCoilLevel(HeatingCoilLevel.None);

this.mPollutionOutputHatches.clear();

if (!this.checkPiece("main", 7, 17, 0) || this.getCoilLevel() == HeatingCoilLevel.None
|| this.mMaintenanceHatches.size() != 1) return false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ protected void doRegistrationStuff(Werkstoff w) {
if (!w.hasItemType(OrePrefixes.ore)) return;
if ((w.getGenerationFeatures().blacklist & 0b1000) != 0) return;

GTModHandler.addValuableOre(this, w.getmID(), 1);

ItemStack self = new ItemStack(this, 1, w.getmID());
OrePrefixes prefix = isSmall ? OrePrefixes.oreSmall : OrePrefixes.ore;

Expand Down
8 changes: 5 additions & 3 deletions src/main/java/ggfab/ComponentRecipeLoader.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package ggfab;

import static gregtech.api.recipe.RecipeMaps.assemblerRecipes;
import static gregtech.api.util.GTRecipeBuilder.HOURS;
import static gregtech.api.util.GTRecipeBuilder.MINUTES;
import static gregtech.api.util.GTRecipeBuilder.SECONDS;
import static gregtech.api.util.GTRecipeConstants.AssemblyLine;
import static gregtech.api.util.GTRecipeConstants.RESEARCH_ITEM;
import static gregtech.api.util.GTRecipeConstants.RESEARCH_TIME;
import static gregtech.api.util.GTRecipeConstants.SCANNING;

import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidRegistry;
Expand All @@ -16,18 +15,21 @@
import gregtech.api.enums.ItemList;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.TierEU;
import gregtech.api.util.GTOreDictUnificator;
import gregtech.api.util.GTUtility;
import gregtech.api.util.recipe.Scanning;

class ComponentRecipeLoader implements Runnable {

@Override
public void run() {
Fluid solderIndalloy = FluidRegistry.getFluid("molten.indalloy140");

// Advanced Assembly Line
GTValues.RA.stdBuilder()
.metadata(RESEARCH_ITEM, ItemList.Machine_Multi_Assemblyline.get(1L))
.metadata(RESEARCH_TIME, 1 * HOURS + 6 * MINUTES)
.metadata(SCANNING, new Scanning(1 * MINUTES + 30 * SECONDS, TierEU.RECIPE_IV))
.itemInputs(
ItemList.Machine_Multi_Assemblyline.get(1L),
new Object[] { OrePrefixes.circuit.get(Materials.LuV), 2 },
Expand Down
1 change: 1 addition & 0 deletions src/main/java/ggfab/mte/MTEAdvAssLine.java
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,7 @@ public void getWailaBody(ItemStack itemStack, List<String> currentTip, IWailaDat
NBTTagCompound tag = accessor.getNBTData();
String machineProgressString = GTWaila.getMachineProgressString(
tag.getBoolean("isActive"),
tag.getBoolean("isAllowedToWork"),
tag.getInteger("maxProgress"),
tag.getInteger("progress"));
currentTip.remove(machineProgressString);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ protected MultiblockTooltipBuilder createTooltip() {
.addInfo("Produces naquadah fuels.")
.addInfo("Needs field restriction coils to control the fatal radiation.")
.addInfo("Use higher tier coils to unlock more fuel types and perform more overclocks.")
.addInfo("Performs perfect overclocks.")
.addInfo(StatCollector.translateToLocal("GT5U.machines.perfectoc.tooltip"))
.addTecTechHatchInfo()
.beginStructureBlock(3, 15, 15, false)
.addController("Mid of the third layer")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
import static goodgenerator.util.ItemRefer.Compassline_Casing_ZPM;
import static goodgenerator.util.ItemRefer.Component_Assembly_Line;
import static gregtech.api.recipe.RecipeMaps.assemblerRecipes;
import static gregtech.api.util.GTRecipeBuilder.HOURS;
import static gregtech.api.util.GTRecipeBuilder.MINUTES;
import static gregtech.api.util.GTRecipeBuilder.SECONDS;
import static gregtech.api.util.GTRecipeBuilder.TICKS;
import static gregtech.api.util.GTRecipeConstants.AssemblyLine;
import static gregtech.api.util.GTRecipeConstants.RESEARCH_ITEM;
import static gregtech.api.util.GTRecipeConstants.RESEARCH_TIME;
import static gregtech.api.util.GTRecipeConstants.SCANNING;

import java.util.HashMap;

Expand All @@ -41,6 +40,7 @@
import gregtech.api.enums.TierEU;
import gregtech.api.util.GTOreDictUnificator;
import gregtech.api.util.GTUtility;
import gregtech.api.util.recipe.Scanning;
import gtPlusPlus.core.recipe.common.CI;
import tectech.recipe.TTRecipeAdder;

Expand All @@ -62,7 +62,7 @@ static void run() {
// The controller itself
GTValues.RA.stdBuilder()
.metadata(RESEARCH_ITEM, Compassline_Casing_EV.get(1))
.metadata(RESEARCH_TIME, 1 * HOURS)
.metadata(SCANNING, new Scanning(2 * MINUTES + 30 * SECONDS, TierEU.RECIPE_ZPM))
.itemInputs(
ItemList.Machine_Multi_Assemblyline.get(16L),
ItemList.Casing_Assembler.get(16L),
Expand Down Expand Up @@ -202,7 +202,7 @@ private static void generateCasingRecipes() {
t++;
GTValues.RA.stdBuilder()
.metadata(RESEARCH_ITEM, Compassline_Casing_IV.get(1))
.metadata(RESEARCH_TIME, (2250 << t) * TICKS)
.metadata(SCANNING, new Scanning(1 * MINUTES + 30 * SECONDS, TierEU.RECIPE_IV))
.itemInputs(
GTOreDictUnificator.get(OrePrefixes.frameGt, Materials.Europium, 1),
WerkstoffLoader.LuVTierMaterial.get(OrePrefixes.plateDense, 6),
Expand Down Expand Up @@ -230,7 +230,7 @@ private static void generateCasingRecipes() {
t++;
GTValues.RA.stdBuilder()
.metadata(RESEARCH_ITEM, Compassline_Casing_LuV.get(1))
.metadata(RESEARCH_TIME, (2250 << t) * TICKS)
.metadata(SCANNING, new Scanning(1 * MINUTES + 30 * SECONDS, TierEU.RECIPE_LuV))
.itemInputs(
GTOreDictUnificator.get(OrePrefixes.frameGt, Materials.Iridium, 1),
GTOreDictUnificator.get(OrePrefixes.plateSuperdense, Materials.Iridium, 1),
Expand Down Expand Up @@ -259,7 +259,7 @@ private static void generateCasingRecipes() {

GTValues.RA.stdBuilder()
.metadata(RESEARCH_ITEM, Compassline_Casing_ZPM.get(1))
.metadata(RESEARCH_TIME, (2250 << t) * TICKS)
.metadata(SCANNING, new Scanning(1 * MINUTES + 30 * SECONDS, TierEU.RECIPE_ZPM))
.itemInputs(
GTOreDictUnificator.get(OrePrefixes.frameGt, Materials.Osmium, 1),
GTOreDictUnificator.get(OrePrefixes.plateSuperdense, Materials.Osmium, 1),
Expand Down
Loading

0 comments on commit 49c324f

Please sign in to comment.