aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/loaders/postload/chains/GT_NaniteChain.java
blob: 63e4ab98eabaaab05346b7a0aa3f5188fc54d276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
package gregtech.loaders.postload.chains;

import static gregtech.api.enums.Mods.BartWorks;
import static gregtech.api.enums.Mods.GTPlusPlus;
import static gregtech.api.enums.Mods.GoodGenerator;
import static gregtech.api.enums.Mods.NewHorizonsCoreMod;
import static gregtech.api.util.GT_ModHandler.getModItem;

import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;

import gregtech.api.enums.GT_Values;
import gregtech.api.enums.ItemList;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.util.GT_OreDictUnificator;

public class GT_NaniteChain {

    public static void run() {

        ItemStack aUVTierLens = getModItem(NewHorizonsCoreMod.ID, "item.MysteriousCrystalLens", 0);
        ItemStack aUHVTierLens = getModItem(NewHorizonsCoreMod.ID, "item.ChromaticLens", 0);
        ItemStack aUEVTierLens = getModItem(NewHorizonsCoreMod.ID, "item.RadoxPolymerLens", 0);
        ItemStack aUIVTierLens = ItemList.EnergisedTesseract.get(0);
        ItemStack aUMVTierLens = GT_OreDictUnificator.get(OrePrefixes.lens, Materials.Dilithium, 0, false);

        // Carbon Nanite Recipe Before Nano Forge
        Fluid solderIndalloy = FluidRegistry.getFluid("molten.indalloy140") != null
                ? FluidRegistry.getFluid("molten.indalloy140")
                : FluidRegistry.getFluid("molten.solderingalloy");

        GT_Values.RA.addAssemblylineRecipe(
                Materials.Carbon.getNanite(1),
                3600 * 20,
                new Object[] { ItemList.Hull_UV.get(16), Materials.Carbon.getNanite(16),
                        ItemList.Field_Generator_ZPM.get(16), ItemList.Conveyor_Module_UV.get(16),
                        ItemList.Electric_Motor_UV.get(32),
                        new Object[] { OrePrefixes.circuit.get(Materials.Master), 16 },
                        GT_OreDictUnificator.get(OrePrefixes.wireGt08, Materials.Naquadah, 32) },
                new FluidStack[] { new FluidStack(solderIndalloy, 144 * 32), Materials.HSSS.getMolten(144L * 32),
                        Materials.Osmiridium.getMolten(144L * 16) },
                ItemList.NanoForge.get(1),
                2400 * 20,
                (int) GT_Values.VP[7]);

        GT_Values.RA.addAssemblylineRecipe(
                ItemList.Circuit_Crystalmainframe.get(1),
                144000,
                new Object[] { new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 16 },
                        ItemList.Robot_Arm_UV.get(16), ItemList.Circuit_Chip_Stemcell.get(32),
                        GT_OreDictUnificator.get(OrePrefixes.ring, Materials.NaquadahAlloy, 32),
                        GT_OreDictUnificator.get(OrePrefixes.stick, Materials.NaquadahAlloy, 16),
                        Materials.Carbon.getDust(64) },
                new FluidStack[] { Materials.UUMatter.getFluid(10000), new FluidStack(solderIndalloy, 144 * 32) },
                Materials.Carbon.getNanite(2),
                50 * 20,
                (int) GT_Values.VP[8]);

        /*
         * General Rules for making nanite recipes: 1. Never make a nanite that takes a long time to make and only gives
         * 1, just to be consumed. 2. Nanites meant to be consumed should either have a short duration or a big output.
         * 3. Nanites which aren't consumed should have a long duration and output less than 16. 4. Nanites should
         * always take UUM as a fluid and a lot of power to make.
         */

        // Carbon Nanites - Used to make more Nano Forge Controllers
        GT_Values.RA.addNanoForgeRecipe(
                new ItemStack[] { aUVTierLens,
                        getModItem(BartWorks.ID, "bw.werkstoffblockscasingadvanced.01", 8, 31776),
                        ItemList.Circuit_Chip_SoC.get(64) },
                new FluidStack[] { Materials.UUMatter.getFluid(200_000) },
                new ItemStack[] { Materials.Carbon.getNanite(64), },
                null,
                null,
                500 * 20,
                10_000_000,
                1);

        // Silver Nanites - Used in Tier 2 PCB Factory to improve board production
        GT_Values.RA.addNanoForgeRecipe(
                new ItemStack[] { aUEVTierLens, Materials.Silver.getBlocks(8), ItemList.Circuit_Chip_SoC.get(16) },
                new FluidStack[] { Materials.UUMatter.getFluid(200000) },
                new ItemStack[] { Materials.Silver.getNanite(1) },
                null,
                null,
                750 * 20,
                10_000_000,
                2);

        // Neutronium Nanites - Used to upgrade the Nano Forge to Tier 2
        GT_Values.RA.addNanoForgeRecipe(
                new ItemStack[] { aUHVTierLens, Materials.Neutronium.getBlocks(8), ItemList.Circuit_Chip_SoC2.get(64),
                        ItemList.Circuit_Chip_SoC2.get(32) },
                new FluidStack[] { Materials.UUMatter.getFluid(200000) },
                new ItemStack[] { Materials.Neutronium.getNanite(1) },
                null,
                null,
                100 * 20,
                100_000_000,
                1);

        // Glowstone Nanites - Used in the optical circuit line
        GT_Values.RA.addNanoForgeRecipe(
                new ItemStack[] { aUEVTierLens, getModItem(GTPlusPlus.ID, "blockCompressedObsidian", 8, 7), // Double
                        // compressed
                        // glowstone
                        // blocks
                        // (yes, it's
                        // not
                        // obsidian)
                        ItemList.Circuit_Chip_SoC2.get(64) },
                new FluidStack[] { Materials.UUMatter.getFluid(50000) },
                new ItemStack[] { Materials.Glowstone.getNanite(64) },
                null,
                null,
                200 * 20,
                50_000_000,
                2);

        // Gold Nanites - Used in Tier 3 PCB Factory to improve board production
        GT_Values.RA.addNanoForgeRecipe(
                new ItemStack[] { aUMVTierLens, Materials.Gold.getBlocks(8), ItemList.Circuit_Chip_SoC.get(16) },
                new FluidStack[] { Materials.UUMatter.getFluid(300000) },
                new ItemStack[] { Materials.Gold.getNanite(1) },
                null,
                null,
                1_000 * 20,
                100_000_000,
                3);

        // Transcendent Metal Nanites - Used to upgrade the Nano Forge to Tier 3
        GT_Values.RA.addNanoForgeRecipe(
                new ItemStack[] { aUIVTierLens, Materials.TranscendentMetal.getBlocks(8),
                        ItemList.Circuit_Chip_SoC2.get(64), ItemList.Circuit_Chip_SoC2.get(64),
                        ItemList.Circuit_Chip_SoC2.get(64) },
                new FluidStack[] { Materials.UUMatter.getFluid(2000000) },
                new ItemStack[] { Materials.TranscendentMetal.getNanite(1) },
                null,
                null,
                750 * 20,
                1_000_000_000,
                2);

        // White Dwarf Matter Nanites. Used to make Magnetohydrodynamically constrained star matter.
        GT_Values.RA.addNanoForgeRecipe(
                new ItemStack[] { aUMVTierLens, getModItem(BartWorks.ID, "gt.bwMetaGeneratedlens", 0, 36), // Magneto
                        // lens
                        getModItem(GTPlusPlus.ID, "MU-metaitem.01", 0, 32105), // Quantum Anomaly, couldn't find any
                        // better naming
                        Materials.WhiteDwarfMatter.getBlocks(8),
                        getModItem(NewHorizonsCoreMod.ID, "item.PicoWafer", 32),
                        getModItem(GoodGenerator.ID, "huiCircuit", 1, 4) // Paradox circuit
                },
                new FluidStack[] { Materials.UUMatter.getFluid(500_000), Materials.RawStarMatter.getFluid(50_000),
                        Materials.Space.getMolten(720), },
                new ItemStack[] { Materials.WhiteDwarfMatter.getNanite(4) },
                null,
                null,
                750 * 20,
                2_000_000_000,
                3);

        // Black Dwarf Matter Nanites. Used to make Magnetohydrodynamically constrained star matter.
        GT_Values.RA.addNanoForgeRecipe(
                new ItemStack[] { aUMVTierLens, getModItem(BartWorks.ID, "gt.bwMetaGeneratedlens", 0, 36), // Magneto
                        // lens
                        getModItem(GTPlusPlus.ID, "MU-metaitem.01", 0, 32105), // Quantum Anomaly, couldn't find any
                        // better naming
                        Materials.BlackDwarfMatter.getBlocks(8),
                        getModItem(NewHorizonsCoreMod.ID, "item.PicoWafer", 32),
                        getModItem(GoodGenerator.ID, "huiCircuit", 1, 4) // Paradox circuit
                },
                new FluidStack[] { Materials.UUMatter.getFluid(500_000), Materials.RawStarMatter.getFluid(50_000),
                        Materials.Time.getMolten(720), },
                new ItemStack[] { Materials.BlackDwarfMatter.getNanite(4) },
                null,
                null,
                750 * 20,
                2_000_000_000,
                3);

        // Universium nanites.
        GT_Values.RA.addNanoForgeRecipe(
                new ItemStack[] { aUMVTierLens,
                        // Quantum Anomaly, couldn't find any better naming.
                        getModItem(GTPlusPlus.ID, "MU-metaitem.01", 0, 32105), Materials.Universium.getBlocks(8),

                        ItemList.Optically_Perfected_CPU.get(16), ItemList.Optically_Compatible_Memory.get(16),
                        getModItem(GoodGenerator.ID, "huiCircuit", 1, 4) // Paradox circuit
                },
                new FluidStack[] { Materials.SpaceTime.getMolten(144), Materials.Infinity.getMolten(576),
                        Materials.UUMatter.getFluid(1_000_000), },
                new ItemStack[] { Materials.Universium.getNanite(2) },
                null,
                null,
                750 * 20,
                2_000_000_000,
                3);

    }
}