Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit cdbe38e

Browse files
committed
add recipes for controllers + move to assline for hatches
1 parent 5819fff commit cdbe38e

File tree

5 files changed

+55
-12
lines changed

5 files changed

+55
-12
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ repositories {
3434
url "https://minecraft.curseforge.com/api/maven"
3535
}
3636
maven {
37-
url = "http://chickenbones.net/maven/"
37+
url "http://chickenbones.net/maven/"
3838
}
3939
maven {
40-
url = "http://dvs1.progwml6.com/files/maven/"
40+
url ="http://dvs1.progwml6.com/files/maven/"
4141
}
4242
maven { // TOP
4343
name 'tterrag maven'
@@ -54,7 +54,7 @@ repositories {
5454

5555
dependencies {
5656
deobfCompile("mezz.jei:jei_1.12.2:+")
57-
deobfCompile("curse.maven:gregtechceu-557242:3585578")
57+
provided(files("libs/gregtech-1.12.2-2.0.2-beta.jar"))
5858
deobfCompile("codechicken-lib-1-8:CodeChickenLib-1.12.2:3.2.3.358:universal")
5959
deobfCompile("codechicken:ChickenASM:1.12-1.0.2.9")
6060
deobfCompile("mcjty.theoneprobe:TheOneProbe-1.12:1.12-1.4.23-16")
12.1 MB
Binary file not shown.

src/main/java/net/htmlcsjs/htmlTech/api/unification/materials/HTMaterials.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public static void register() {
4646
Trinium.addFlags(GENERATE_FRAME);
4747
Titanium.addFlags(GENERATE_FOIL);
4848
Darmstadtium.addFlags(GENERATE_FOIL);
49+
UraniumRhodiumDinaquadide.addFlags(GENERATE_SPRING);
4950
}
5051

5152
public static void init() {

src/main/java/net/htmlcsjs/htmlTech/loaders/recipe/LaserEquipmentLoader.java

Lines changed: 50 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,24 @@
33
import gregtech.api.recipes.ingredients.IntCircuitIngredient;
44
import gregtech.api.unification.material.MarkerMaterials;
55
import gregtech.api.unification.stack.UnificationEntry;
6+
import gregtech.common.blocks.BlockMetalCasing;
67
import gregtech.loaders.recipe.CraftingComponent;
78
import net.htmlcsjs.htmlTech.common.HTConfig;
89
import net.htmlcsjs.htmlTech.common.blocks.BlockHTCasing;
910
import net.minecraft.item.ItemStack;
1011

1112
import static gregtech.api.GTValues.*;
1213
import static gregtech.api.recipes.RecipeMaps.ASSEMBLER_RECIPES;
14+
import static gregtech.api.recipes.RecipeMaps.ASSEMBLY_LINE_RECIPES;
1315
import static gregtech.api.unification.material.Materials.*;
1416
import static gregtech.api.unification.ore.OrePrefix.*;
17+
import static gregtech.common.blocks.MetaBlocks.METAL_CASING;
18+
import static gregtech.common.items.MetaItems.*;
1519
import static gregtech.common.metatileentities.MetaTileEntities.HULL;
1620
import static net.htmlcsjs.htmlTech.api.HTValues.mteLength;
1721
import static net.htmlcsjs.htmlTech.common.blocks.HTMetaBlocks.HT_CASING;
1822
import static net.htmlcsjs.htmlTech.common.blocks.HTMetaBlocks.LASER_PIPES;
19-
import static net.htmlcsjs.htmlTech.common.metatileentity.HTMetaTileEntities.LASER_INPUT_HATCHES;
20-
import static net.htmlcsjs.htmlTech.common.metatileentity.HTMetaTileEntities.LASER_OUTPUT_HATCH;
23+
import static net.htmlcsjs.htmlTech.common.metatileentity.HTMetaTileEntities.*;
2124

2225
public class LaserEquipmentLoader {
2326

@@ -45,32 +48,71 @@ public static void init() {
4548

4649
// Laser Collecting hatches
4750
for (int i = HTConfig.lasers.minLaserTier; i < mteLength; i++) {
48-
ASSEMBLER_RECIPES.recipeBuilder()
51+
ASSEMBLY_LINE_RECIPES.recipeBuilder()
4952
.input(HULL[i])
5053
.input(lens, Glass)
5154
.inputs((ItemStack) CraftingComponent.SENSOR.getIngredient(i))
55+
.inputs((ItemStack) CraftingComponent.VOLTAGE_COIL.getIngredient(i))
5256
.input(wireGtQuadruple, ((UnificationEntry) CraftingComponent.CABLE_QUAD.getIngredient(i)).material, 4)
5357
.input(foil, ((UnificationEntry) CraftingComponent.PLATE.getIngredient(i)).material, 4)
5458
.input(circuit, ((UnificationEntry) CraftingComponent.CIRCUIT.getIngredient(i)).material)
59+
.fluidInputs(SodiumPotassium.getFluid(1000))
5560
.output(LASER_INPUT_HATCHES[i])
56-
.EUt((int) V[i - 1] / 2)
61+
.EUt(VA[i])
5762
.duration(100)
5863
.buildAndRegister();
5964
}
6065

6166
// Laser Emitter hatch
62-
ASSEMBLER_RECIPES.recipeBuilder()
67+
ASSEMBLY_LINE_RECIPES.recipeBuilder()
6368
.input(HULL[ZPM])
64-
.input(circuit, MarkerMaterials.Tier.Ultimate)
69+
.input(circuit, MarkerMaterials.Tier.Master)
6570
.input(lens, Glass)
66-
.input(wireFine, UraniumRhodiumDinaquadide, 4)
71+
.input(wireFine, IndiumTinBariumTitaniumCuprate, 8)
6772
.input(foil, Silver, 2)
73+
.fluidInputs(SodiumPotassium.getFluid(1000))
6874
.output(LASER_OUTPUT_HATCH)
69-
.EUt((int) V[ZPM]/2)
75+
.EUt(VA[ZPM])
7076
.duration(100)
7177
.buildAndRegister();
7278

79+
// Laser projector controller
80+
ASSEMBLY_LINE_RECIPES.recipeBuilder()
81+
.inputs(HT_CASING.getItemVariant(BlockHTCasing.CasingType.NAQ_ALLOY_CASING))
82+
.input(wireFine, UraniumRhodiumDinaquadide, 64)
83+
.input(ULTRA_HIGH_POWER_INTEGRATED_CIRCUIT, 64)
84+
.input(EMITTER_ZPM, 2)
85+
.input(plateDouble, Duranium)
86+
.input(circuit, MarkerMaterials.Tier.Ultimate)
87+
.input(circuit, MarkerMaterials.Tier.Ultimate)
88+
.input(circuit, MarkerMaterials.Tier.Ultimate)
89+
.input(circuit, MarkerMaterials.Tier.Ultimate)
90+
.fluidInputs(SodiumPotassium.getFluid(1000))
91+
.fluidInputs(SolderingAlloy.getFluid(L*7))
92+
.output(LASER_PROJECTOR)
93+
//.reserchItem(LASER_OUTPUT_HATCH)
94+
.EUt(VA[ZPM])
95+
.duration(800)
96+
.buildAndRegister();
7397

98+
// Laser collector controller
99+
ASSEMBLY_LINE_RECIPES.recipeBuilder()
100+
.inputs(METAL_CASING.getItemVariant(BlockMetalCasing.MetalCasingType.HSSE_STURDY))
101+
.input(spring, UraniumRhodiumDinaquadide, 64)
102+
.input(ULTRA_HIGH_POWER_INTEGRATED_CIRCUIT, 64)
103+
.input(SENSOR_ZPM, 2)
104+
.input(plateDouble, Europium)
105+
.input(circuit, MarkerMaterials.Tier.Ultimate)
106+
.input(circuit, MarkerMaterials.Tier.Ultimate)
107+
.input(circuit, MarkerMaterials.Tier.Ultimate)
108+
.input(circuit, MarkerMaterials.Tier.Ultimate)
109+
.fluidInputs(SodiumPotassium.getFluid(1000))
110+
.fluidInputs(SolderingAlloy.getFluid(L*7))
111+
.output(LASER_COLLECTOR)
112+
//.reserchItem(LASER_INPUT_HATCHES[LuV])
113+
.EUt(VA[ZPM])
114+
.duration(800)
115+
.buildAndRegister();
74116

75117
}
76118
}

src/main/resources/assets/htmltech/lang/en_us.lang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ htmltech.machine.laser_input_hatch.umv.name=UMV Laser Collecting Hatch
2828
htmltech.machine.laser_input_hatch.uxv.name=UXV Laser Collecting Hatch
2929
htmltech.machine.laser_input_hatch.max.name=MAX Laser Collecting Hatch
3030

31-
tile.htmltech_casing.naq_alloy_casing.name=Resistant Naquadah Alloy
31+
tile.htmltech_casing.naq_alloy_casing.name=Resistant Naquadah Alloy Casing
3232

3333
item.material.oreprefix.laser=%s Laser
3434
material.floppa=FlOPPa

0 commit comments

Comments
 (0)