Skip to content

Commit

Permalink
Laser mirror cable recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
M-W-K committed Sep 9, 2024
1 parent e36a45e commit 1d787a8
Show file tree
Hide file tree
Showing 12 changed files with 93 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ public static void register() {
public static Material HafniumTetrachloride;
public static Material Zircaloy4;
public static Material Inconel718;
public static Material TitaniumDioxide;

/**
* Organic chemistry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ public static void register() {
.ingot(3).fluid()
.color(0xDCA0F0).iconSet(METALLIC)
.flags(EXT2_METAL, GENERATE_DOUBLE_PLATE, GENERATE_ROTOR, GENERATE_SMALL_GEAR, GENERATE_GEAR,
GENERATE_FRAME)
GENERATE_FRAME, GENERATE_FOIL)
.element(Elements.Ti)
.toolStats(ToolProperty.Builder.of(8.0F, 6.0F, 1536, 3)
.enchantability(14).build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ public static void register() {
SiliconDioxide = new Material.Builder(356, gregtechId("silicon_dioxide"))
.dust(1)
.color(0xC8C8C8).iconSet(QUARTZ)
.flags(NO_SMASHING, NO_SMELTING)
.flags(NO_SMASHING, NO_SMELTING, GENERATE_FOIL)
.components(Silicon, 1, Oxygen, 2)
.build();

Expand Down Expand Up @@ -1591,5 +1591,12 @@ public static void register() {
.dust(1)
.color(0x8B0000).iconSet(SAND)
.build();

TitaniumDioxide = new Material.Builder(453, gregtechId("titanium_dioxide"))
.dust(1)
.color(0xF8C8C8).iconSet(QUARTZ)
.flags(NO_SMASHING, NO_SMELTING, GENERATE_FOIL)
.components(Titanium, 1, Oxygen, 2)
.build();
}
}
3 changes: 3 additions & 0 deletions src/main/java/gregtech/common/items/MetaItem1.java
Original file line number Diff line number Diff line change
Expand Up @@ -1162,5 +1162,8 @@ public void registerSubItems() {

MULTIBLOCK_BUILDER = addItem(1004, "tool.multiblock_builder").addComponents(new MultiblockBuilderBehavior())
.setMaxStackSize(1);

ULTRASMOOTH_BOROSILICATE = addItem(1005, "ultrasmooth_borosilicate_glass");
LASER_REFLECTOR = addItem(1006, "laser_reflector");
}
}
3 changes: 3 additions & 0 deletions src/main/java/gregtech/common/items/MetaItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,9 @@ private MetaItems() {}

public static MetaItem<?>.MetaValueItem MULTIBLOCK_BUILDER;

public static MetaItem<?>.MetaValueItem ULTRASMOOTH_BOROSILICATE;
public static MetaItem<?>.MetaValueItem LASER_REFLECTOR;

private static final List<OrePrefix> orePrefixes = new ArrayList<>();

static {
Expand Down
55 changes: 45 additions & 10 deletions src/main/java/gregtech/loaders/recipe/ComputerRecipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
import net.minecraft.item.ItemStack;

import static gregtech.api.GTValues.*;
import static gregtech.api.recipes.RecipeMaps.ASSEMBLER_RECIPES;
import static gregtech.api.recipes.RecipeMaps.ASSEMBLY_LINE_RECIPES;
import static gregtech.api.recipes.RecipeMaps.*;
import static gregtech.api.unification.material.Materials.*;
import static gregtech.api.unification.ore.OrePrefix.*;
import static gregtech.common.blocks.MetaBlocks.*;
Expand Down Expand Up @@ -313,13 +312,49 @@ public static void init() {
.cleanroom(CleanroomType.CLEANROOM)
.duration(100).EUt(VA[IV]).buildAndRegister();

// ASSEMBLER_RECIPES.recipeBuilder()
// .input(LASER_PIPES[0], 2)
// .input(foil, Silver, 2)
// .input(NEUTRON_REFLECTOR)
// .fluidInputs(Polytetrafluoroethylene.getFluid(L))
// .output(LASER_PIPES[1])
// .cleanroom(CleanroomType.CLEANROOM)
// .duration(150).EUt(VA[IV]).buildAndRegister();
AUTOCLAVE_RECIPES.recipeBuilder()
.input(dust, BorosilicateGlass, 5)
.fluidInputs(Water.getFluid(1000))
.output(ULTRASMOOTH_BOROSILICATE)
.duration(3000).EUt(VA[IV]).buildAndRegister();

AUTOCLAVE_RECIPES.recipeBuilder()
.input(dust, BorosilicateGlass, 5)
.fluidInputs(DistilledWater.getFluid(1000))
.output(ULTRASMOOTH_BOROSILICATE)
.duration(2000).EUt(VA[IV]).buildAndRegister();

ASSEMBLER_RECIPES.recipeBuilder()
.notConsumable(EMITTER_ZPM)
.input(foil, TitaniumDioxide, 3)
.input(foil, SiliconDioxide, 3)
.input(ULTRASMOOTH_BOROSILICATE)
.fluidInputs(Oxygen.getPlasma(85))
.output(LASER_REFLECTOR)
.cleanroom(CleanroomType.CLEANROOM)
.duration(10000).EUt(VA[LuV]).buildAndRegister();

ASSEMBLER_RECIPES.recipeBuilder()
.notConsumable(EMITTER_UV)
.input(foil, Titanium)
.input(foil, Silicon)
.input(ULTRASMOOTH_BOROSILICATE)
.fluidInputs(Oxygen.getPlasma(1085))
.output(LASER_REFLECTOR)
.cleanroom(CleanroomType.CLEANROOM)
.duration(1000).EUt(VA[ZPM]).buildAndRegister();

ASSEMBLY_LINE_RECIPES.recipeBuilder()
.input(LASER_REFLECTOR)
.input(lens, NetherStar, 2)
.input(stick, Duranium, 6)
.input(ELECTRIC_PUMP_ZPM)
.input(foil, Osmiridium, 5)
.fluidInputs(Polytetrafluoroethylene.getFluid(L * 3),
NaquadahAlloy.getFluid(L * 32))
.output(LASER_PIPES[1])
.cleanroom(CleanroomType.CLEANROOM)
.stationResearch(s -> s.researchStack(LASER_REFLECTOR.getStackForm()).EUt(VA[ZPM]).CWUt(32))
.duration(350).EUt(VA[ZPM]).buildAndRegister();
}
}
16 changes: 16 additions & 0 deletions src/main/java/gregtech/loaders/recipe/MiscRecipeLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -507,5 +507,21 @@ public static void init() {
.input(ring, Steel, 2)
.output(STEEL_MINECART_WHEELS)
.duration(60).EUt(20).buildAndRegister();

CHEMICAL_RECIPES.recipeBuilder()
.input(dust, Titanium)
.fluidInputs(Oxygen.getFluid(2000))
.output(dust, TitaniumDioxide, 3)
.duration(100).EUt(60).buildAndRegister();

COMPRESSOR_RECIPES.recipeBuilder()
.input(dustSmall, SiliconDioxide)
.output(foil, SiliconDioxide)
.duration(200).EUt(1).buildAndRegister();

COMPRESSOR_RECIPES.recipeBuilder()
.input(dustSmall, TitaniumDioxide)
.output(foil, TitaniumDioxide)
.duration(200).EUt(1).buildAndRegister();
}
}
4 changes: 4 additions & 0 deletions src/main/resources/assets/gregtech/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,9 @@ metaitem.fertilizer.name=Fertilizer
metaitem.blacklight.name=Blacklight
metaitem.blacklight.tooltip=Long-Wave §dUltraviolet§7 light source

metaitem.ultrasmooth_borosilicate_glass.name=Ultrasmooth Borosilicate Glass
metaitem.laser_reflector.name=Dielectric Laser Mirror

gui.widget.incrementButton.default_tooltip=Hold Shift, Ctrl or both to change the amount
gui.widget.recipeProgressWidget.default_tooltip=Show Recipes

Expand Down Expand Up @@ -1838,6 +1841,7 @@ gregtech.material.hafnia=Hafnia
gregtech.material.hafnium_tetrachloride=Hafnium Tetrachloride
gregtech.material.zircaloy_4=Zircaloy-4
gregtech.material.inconel_718=Inconel-718
gregtech.material.titanium_dioxide=Titanium Dioxide


# Organic Chemistry Materials
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "gregtech:items/metaitems/laser_reflector"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "gregtech:items/metaitems/ultrasmooth_borosilicate_glass"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1d787a8

Please sign in to comment.