forked from tomdodd4598/NuclearCraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcraftTweaker.txt
329 lines (225 loc) · 16.7 KB
/
craftTweaker.txt
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
NuclearCraft CraftTweaker Recipe Addition and Removal
#=====================================================#
Note: The double set of brackets `([...])` are a must-have!
This is basically because all NC CT methods require an array of objects, be they ingredients, strings, integers or doubles.
All recipes involve five sets of information - item inputs, fluid inputs, item outputs, fluid outputs and extra info. The
first four are clearly the ingredients and products involved in the recipe, and the extra info contains data such as
processing time and power for machines, the base lifetime, power and heat variable of fusion combos, etc.
All parts of the recipe are simply listed in the method - the internal NC code will deal with splitting it up into those
five categories and packaging the information up into a recipe.
Chance Ingredients
#==================#
Item and fluid outputs can have additional info attached to them - specifically, info that can randomise the output stack
size somewhat. This additional info is simply tagged onto the end of the specified ingredient.
The size of the stack produced on each process is randomly assigned from a binomial distribution specified by the chance
info. The percentage and ingredient stack size play the roles of the probability and number of trials, respectively. A
minimum stack size can also be specified - without this, the minimum stack size is simply 0.
For ChanceFluidStacks, a 'stack difference' must also be specified, which determines the difference in size between the
possible stacks (for ChanceItemStacks and ChanceOreStacks, this is effectively 1). For example, a ChanceFluidStack for
an ingredient of size 500, with a stack difference of 150 and minimum stack size of 50, will produce 50, 200, 350 or 500
millibuckets of the fluid.
Additional ChanceItemStack or ChanceOreStack info can be:
A percentage (int), e.g. `<minecraft:coal>*2, 25`,
A percentage (int) and minimum stack size (int), e.g. `<ore:dustGlowstone>*3, 60, 2`.
Additional ChanceFluidStack info can be:
A percentage (int) and stack difference (int), e.g. `<liquid:water>*1500, 35, 300`.
A percentage (int), stack difference (int) and minimum stack size (int), e.g. `<liquid:oil>*1000, 80, 200, 400`.
Note: neither the additional info nor the combination of ingredient and info should be in a set of brackets. Just write
the additional info as part of the full recipe list straight after the ingredient as shown in the examples above.
Recipe Addition
#===============#
Specifying an ingredient involves listing the item inputs, fluid inputs, item outputs, fluid outputs and extra info, in
that order.
Item inputs can be:
An ItemStack, e.g. `<minecraft:gunpowder>*4`,
An OreStack, e.g. `<ore:ingotIron>*2`,
An empty stack, i.e. `null`.
Fluid inputs can be:
A FluidStack, e.g. `<liquid:lava>*1500`,
An empty stack, i.e. `null`.
Item outputs can be:
An ItemStack,
A ChanceItemStack, e.g. `<minecraft:quartz>*3, 50, 1`,
An OreStack,
A ChanceOreStack, e.g. `<ore:dustSulfur>*4, 75`,
An empty stack, i.e. `null`.
Fluid outputs can be:
A FluidStack,
A ChanceFluidStack, e.g. `<liquid:ethanol>*2000, 40, 250, 500`.
An empty stack, i.e. `null`.
The allowed recipe extras are specified below per recipe. Be sure to use a decimal when a double is required and you want
to use a whole number, e.g. `1.0` rather than just `1`.
Recipe Removal
#==============#
When specifying a recipe to remove, all that is required is for either all input or output ingredients to be specified.
Ingredient chance data is not required. Again, the items must come first, followed by the fluids.
You may also want to remove all of a certain type of recipe - to do this, simply use the `removeAllRecipes()` method.
___________________________________________________________________________________________________________________________
---------------------------------------------------------------------------------------------------------------------------
Recipe Methods
#==============#
Note: recipe extras in curly brackets `{...}` are optional, but must be in the order specified. For example, if you want to
set a Manufactory recipe's power multiplier, you must also first set a time multiplier. Make sure to not actually include
the curly brackets!
Manufactory:
>------------<
mods.nuclearcraft.manufactory.addRecipe([itemInput, itemOutput, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.manufactory.removeRecipeWithInput([itemInput]);
mods.nuclearcraft.manufactory.removeRecipeWithOutput([itemOutput]);
___________________________________________________________________________________________________________________________
Isotope Separator:
>------------------<
mods.nuclearcraft.isotope_separator.addRecipe([itemInput, itemOutput1, itemOutput2, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.isotope_separator.removeRecipeWithInput([itemInput]);
mods.nuclearcraft.isotope_separator.removeRecipeWithOutput([itemOutput1, itemOutput2]);
___________________________________________________________________________________________________________________________
Decay Hastener:
>---------------<
mods.nuclearcraft.decay_hastener.addRecipe([itemInput, itemOutput, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.decay_hastener.removeRecipeWithInput([itemInput]);
mods.nuclearcraft.decay_hastener.removeRecipeWithOutput([itemOutput]);
___________________________________________________________________________________________________________________________
Fuel Reprocessor:
>-----------------<
mods.nuclearcraft.fuel_reprocessor.addRecipe([itemInput, itemOutput1, itemOutput2, itemOutput3, itemOutput4, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.fuel_reprocessor.removeRecipeWithInput([itemInput]);
mods.nuclearcraft.fuel_reprocessor.removeRecipeWithOutput([itemOutput1, itemOutput2, itemOutput3, itemOutput4]);
___________________________________________________________________________________________________________________________
Alloy Furnace:
>--------------<
mods.nuclearcraft.alloy_furnace.addRecipe([itemInput1, itemInput2, itemOutput, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.alloy_furnace.removeRecipeWithInput([itemInput1, itemInput2]);
mods.nuclearcraft.alloy_furnace.removeRecipeWithOutput([itemOutput]);
___________________________________________________________________________________________________________________________
Infuser:
>--------<
mods.nuclearcraft.infuser.addRecipe([itemInput, fluidInput, itemOutput, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.infuser.removeRecipeWithInput([itemInput, fluidInput]);
mods.nuclearcraft.infuser.removeRecipeWithOutput([itemOutput]);
___________________________________________________________________________________________________________________________
Melter:
>-------<
mods.nuclearcraft.melter.addRecipe([itemInput, fluidOutput, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.melter.removeRecipeWithInput([itemInput]);
mods.nuclearcraft.melter.removeRecipeWithOutput([fluidOutput]);
___________________________________________________________________________________________________________________________
Supercooler:
>------------<
mods.nuclearcraft.supercooler.addRecipe([fluidInput, fluidOutput, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.supercooler.removeRecipeWithInput([fluidInput]);
mods.nuclearcraft.supercooler.removeRecipeWithOutput([fluidOutput]);
___________________________________________________________________________________________________________________________
Electrolyzer:
>-------------<
mods.nuclearcraft.electrolyser.addRecipe([fluidInput, fluidOutput1, fluidOutput2, fluidOutput3, fluidOutput4, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.electrolyser.removeRecipeWithInput([fluidInput]);
mods.nuclearcraft.electrolyser.removeRecipeWithOutput([fluidOutput1, fluidOutput2, fluidOutput3, fluidOutput4]);
___________________________________________________________________________________________________________________________
Irradiator:
>-----------<
mods.nuclearcraft.irradiator.addRecipe([fluidInput1, fluidInput2, fluidOutput1, fluidOutput2, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.irradiator.removeRecipeWithInput([fluidInput1, fluidInput2]);
mods.nuclearcraft.irradiator.removeRecipeWithOutput([fluidOutput1, fluidOutput2]);
___________________________________________________________________________________________________________________________
Ingot Former:
>-------------<
mods.nuclearcraft.ingot_former.addRecipe([fluidInput, itemOutput, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.ingot_former.removeRecipeWithInput([fluidInput]);
mods.nuclearcraft.ingot_former.removeRecipeWithOutput([itemOutput]);
___________________________________________________________________________________________________________________________
Pressurizer:
>------------<
mods.nuclearcraft.pressurizer.addRecipe([itemInput, itemOutput, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.pressurizer.removeRecipeWithInput([itemInput]);
mods.nuclearcraft.pressurizer.removeRecipeWithOutput([itemOutput]);
___________________________________________________________________________________________________________________________
Chemical Reactor:
>-----------------<
mods.nuclearcraft.chemical_reactor.addRecipe([fluidInput1, fluidInput2, fluidOutput1, fluidOutput2, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.chemical_reactor.removeRecipeWithInput([fluidInput1, fluidInput2]);
mods.nuclearcraft.chemical_reactor.removeRecipeWithOutput([fluidOutput1, fluidOutput2]);
___________________________________________________________________________________________________________________________
Salt Mixer:
>-----------<
mods.nuclearcraft.salt_mixer.addRecipe([fluidInput1, fluidInput2, fluidOutput, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.salt_mixer.removeRecipeWithInput([fluidInput1, fluidInput2]);
mods.nuclearcraft.salt_mixer.removeRecipeWithOutput([fluidOutput]);
___________________________________________________________________________________________________________________________
Crystallizer:
>-------------<
mods.nuclearcraft.crystallizer.addRecipe([fluidInput, itemOutput, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.crystallizer.removeRecipeWithInput([fluidInput]);
mods.nuclearcraft.crystallizer.removeRecipeWithOutput([itemOutput]);
___________________________________________________________________________________________________________________________
Fluid Enricher:
>---------------<
mods.nuclearcraft.dissolver.addRecipe([itemInput, fluidInput, fluidOutput, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.dissolver.removeRecipeWithInput([itemInput, fluidInput]);
mods.nuclearcraft.dissolver.removeRecipeWithOutput([fluidOutput]);
___________________________________________________________________________________________________________________________
Fluid Extractor:
>----------------<
mods.nuclearcraft.extractor.addRecipe([itemInput, itemOutput, fluidOutput, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.extractor.removeRecipeWithInput([itemInput]);
mods.nuclearcraft.extractor.removeRecipeWithOutput([itemOutput, fluidOutput]);
___________________________________________________________________________________________________________________________
Centrifuge:
>-----------<
mods.nuclearcraft.centrifuge.addRecipe([fluidInput, fluidOutput1, fluidOutput2, fluidOutput3, fluidOutput4, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.centrifuge.removeRecipeWithInput([fluidInput]);
mods.nuclearcraft.centrifuge.removeRecipeWithOutput([fluidOutput1, fluidOutput2, fluidOutput3, fluidOutput4]);
___________________________________________________________________________________________________________________________
Rock Crusher:
>-------------<
mods.nuclearcraft.rock_crusher.addRecipe([itemInput, itemOutput1, itemOutput2, itemOutput3, {timeMultiplier (double), powerMultiplier (double), processRadiation (double)}]);
mods.nuclearcraft.rock_crusher.removeRecipeWithInput([itemInput]);
mods.nuclearcraft.rock_crusher.removeRecipeWithOutput([itemOutput1, itemOutput2, itemOutput3]);
___________________________________________________________________________________________________________________________
Decay Generator:
>----------------<
mods.nuclearcraft.decay_generator.addRecipe([blockInput, blockOutput, lifetimeTicks (double), energyPerSecond (double), {processRadiation (double)}]);
mods.nuclearcraft.decay_generator.removeRecipeWithInput([blockInput]);
mods.nuclearcraft.decay_generator.removeRecipeWithOutput([blockOutput]);
___________________________________________________________________________________________________________________________
Fission:
>--------<
mods.nuclearcraft.fission.addRecipe([itemInput, itemOutput, baseTime (double), basePower (double), baseHeat (double), guiName (String), {processRadiation (double)}]);
mods.nuclearcraft.fission.removeRecipeWithInput([itemInput]);
mods.nuclearcraft.fission.removeRecipeWithOutput([itemOutput]);
___________________________________________________________________________________________________________________________
Fusion:
>-------<
mods.nuclearcraft.fusion.addRecipe([fluidInput1, fluidInput2, fluidOutput1, fluidOutput2, fluidOutput3, fluidOutput4, comboTime (double), comboPower (double), comboHeatVar (double), {processRadiation (double)}]);
mods.nuclearcraft.fusion.removeRecipeWithInput([fluidInput1, fluidInput2]);
mods.nuclearcraft.fusion.removeRecipeWithOutput([fluidOutput1, fluidOutput2, fluidOutput3, fluidOutput4]);
___________________________________________________________________________________________________________________________
Salt Fission:
>-------------<
mods.nuclearcraft.salt_fission.addRecipe([fluidInput, fluidOutput, baseTime (double), basePower (double), {processRadiation (double)}]);
mods.nuclearcraft.salt_fission.removeRecipeWithInput([fluidInput]);
mods.nuclearcraft.salt_fission.removeRecipeWithOutput([fluidOutput]);
___________________________________________________________________________________________________________________________
Coolant Heater:
>---------------<
mods.nuclearcraft.coolant_heater.addRecipe([fluidInput, fluidOutput, coolingRate (double)]);
mods.nuclearcraft.coolant_heater.removeRecipeWithInput([fluidInput]);
mods.nuclearcraft.coolant_heater.removeRecipeWithOutput([fluidOutput]);
___________________________________________________________________________________________________________________________
Heat Exchanger:
>---------------<
mods.nuclearcraft.heat_exchanger.addRecipe([fluidInput, fluidOutput, heatRequired (double), temperatureIn (int), temperatureOut (int)]);
mods.nuclearcraft.heat_exchanger.removeRecipeWithInput([fluidInput]);
mods.nuclearcraft.heat_exchanger.removeRecipeWithOutput([fluidOutput]);
___________________________________________________________________________________________________________________________
Steam Turbine:
>--------------<
mods.nuclearcraft.turbine.addRecipe([fluidInput, fluidOutput, {timeMultiplier (double), powerMultiplier (double)}]);
mods.nuclearcraft.turbine.removeRecipeWithInput([fluidInput]);
mods.nuclearcraft.turbine.removeRecipeWithOutput([fluidOutput]);
___________________________________________________________________________________________________________________________
Condenser:
>----------<
mods.nuclearcraft.condenser.addRecipe([fluidInput, fluidOutput, {timeMultiplier (double)}]);
mods.nuclearcraft.condenser.removeRecipeWithInput([fluidInput]);
mods.nuclearcraft.condenser.removeRecipeWithOutput([fluidOutput]);
___________________________________________________________________________________________________________________________