Skip to content

Commit

Permalink
Merge branch 'master' into fix-multi-extruder-sound
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss authored Jan 10, 2025
2 parents 610dbe8 + f4ec9f5 commit b10b88a
Show file tree
Hide file tree
Showing 39 changed files with 335 additions and 262 deletions.
10 changes: 5 additions & 5 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.14-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 @@ -88,7 +88,7 @@ dependencies {
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
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 @@ -33,7 +33,6 @@
import bartworks.util.MathUtils;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.util.GTLanguageManager;
import gregtech.api.util.GTModHandler;

public class BWMetaGeneratedOres extends BWMetaGeneratedBlocks {

Expand All @@ -45,12 +44,7 @@ public BWMetaGeneratedOres(Material p_i45386_1_, Class<? extends TileEntity> til
}

@Override
protected void doRegistrationStuff(Werkstoff w) {
if (w != null) {
if (!w.hasItemType(OrePrefixes.ore) || (w.getGenerationFeatures().blacklist & 0b1000) != 0) return;
GTModHandler.addValuableOre(this, w.getmID(), 1);
}
}
protected void doRegistrationStuff(Werkstoff w) {}

public static boolean setOreBlock(World aWorld, int aX, int aY, int aZ, int aMetaData, boolean air, Block block,
int[] aBlockMeta) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

import gregtech.api.enums.OrePrefixes;
import gregtech.api.util.GTLanguageManager;
import gregtech.api.util.GTModHandler;

public class BWMetaGeneratedSmallOres extends BWMetaGeneratedOres {

Expand All @@ -35,12 +34,7 @@ public BWMetaGeneratedSmallOres(Material p_i45386_1_, Class<? extends TileEntity
}

@Override
protected void doRegistrationStuff(Werkstoff w) {
if (w != null) {
if (!w.hasItemType(OrePrefixes.ore) || (w.getGenerationFeatures().blacklist & 0b1000) != 0) return;
GTModHandler.addValuableOre(this, w.getmID(), 1);
}
}
protected void doRegistrationStuff(Werkstoff w) {}

@Override
public String getUnlocalizedName() {
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
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 b10b88a

Please sign in to comment.