forked from GlobbyPotato/Rockhounding_Chemistry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CraftTweaker_chemistry_script_1_10_2.zs
196 lines (145 loc) · 9.49 KB
/
CraftTweaker_chemistry_script_1_10_2.zs
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
//----------------------------------
//----------Seasoning Rack----------
//----------------------------------
//input = the input itemstack
//output = the output itemstack
//ADD
mods.rockhounding_chemistry.SeasoningRack.add(input, output);
mods.rockhounding_chemistry.SeasoningRack.add(<minecraft:wheat>, <minecraft:wheat_seeds>);
//REMOVE
mods.rockhounding_chemistry.SeasoningRack.remove(input);
mods.rockhounding_chemistry.SeasoningRack.remove(<rockhounding_chemistry:chemicalItems:7>);
//----------------------------------
//----------Mineral Sizer-----------
//----------------------------------
//input = the input itemstack
//output = the extractible itemstack/s
//probability = the probability for each output item to be extracted
//comminution = the level of comminution of each output item
//ADD with random output
mods.rockhounding_chemistry.MineralSizer.add(input, [output1, output2, output3, output4, output5], [probability1, probability2, probability3, probability4, probability5], false);
mods.rockhounding_chemistry.MineralSizer.add(<minecraft:hardened_clay>, [<minecraft:dye:0>, <minecraft:dye:1>, <minecraft:dye:2>, <minecraft:dye:3>, <minecraft:dye:4>], [20, 20, 20, 20, 20], false);
//ADD with leveled output
mods.rockhounding_chemistry.MineralSizer.add(input, [output1, output2, output3, output4, output5], [comminution1, comminution2, comminution3, comminution4, comminution5], true);
mods.rockhounding_chemistry.MineralSizer.add(<minecraft:hardened_clay>, [<minecraft:dye:0>, <minecraft:dye:1>, <minecraft:dye:2>, <minecraft:dye:3>, <minecraft:dye:4>], [20, 20, 20, 20, 20], true);
//ADD with single output
mods.rockhounding_chemistry.MineralSizer.add(input, output);
mods.rockhounding_chemistry.MineralSizer.add(<minecraft:gravel>, <minecraft:dye:6>);
//REMOVE
mods.rockhounding_chemistry.MineralSizer.remove(input);
mods.rockhounding_chemistry.MineralSizer.remove(<rockhounding_chemistry:miscItems:27>);
//----------------------------------
//-----------Leaching Vat-----------
//----------------------------------
//input = the input itemstack
//output = the extractible itemstack/s
//probability = the probability for each output to be extracted
//gravity = specific gravity of each element multiplied x100 (i.e. 1.55 must be written as 155)
//ADD with random output
mods.rockhounding_chemistry.LeachingVat.add(input, [output1, output2, output3, output4, output5], [probability1, probability2, probability3, probability4, probability5]);
mods.rockhounding_chemistry.LeachingVat.add(<minecraft:sandstone>, [<minecraft:dye:15>, <minecraft:dye:14>, <minecraft:dye:13>, <minecraft:dye:12>, <minecraft:dye:11>], [20, 20, 20, 20, 20]);
//ADD with density-wise output
mods.rockhounding_chemistry.LeachingVat.add(input, [output1, output2, output3, output4, output5], [gravity1, gravity2, gravity3, gravity4, gravity5], true);
mods.rockhounding_chemistry.LeachingVat.add(<minecraft:sandstone>, [<minecraft:dye:15>, <minecraft:dye:14>, <minecraft:dye:13>, <minecraft:dye:12>, <minecraft:dye:11>], [330, 218, 1400, 774, 158], true);
//ADD with single output
mods.rockhounding_chemistry.LeachingVat.add(input, output);
mods.rockhounding_chemistry.LeachingVat.add(<minecraft:cobblestone>, <minecraft:dye:15>);
//REMOVE
mods.rockhounding_chemistry.LeachingVat.remove(input);
mods.rockhounding_chemistry.LeachingVat.remove(<rockhounding_chemistry:mineralOres:2>);
//----------------------------------
//----------Metal Alloyer----------
//----------------------------------
//name = the name of the alloy that will appear in the machine selector
//ingredients = the oredicted inputs composing the alloy. Max 6 elements
//quantities = the quantity of each ingredient required. Max 6 elements
//alloy = the itemstack representing the output alloy, usually ingots
//scrap = the itemstack representing the waste of the alloying, usually nuggets. Optional.
//ADD with scrap output
mods.rockhounding_chemistry.MetalAlloyer.add(name, [ingredient1, ingredient2, ingredient3],[quantity1, quantity2, quantity3], output, scrap);
mods.rockhounding_chemistry.MetalAlloyer.add("Netherite", ["dustZinc", "dustUranium", "dustChromium", "dustBoron"],[6, 4, 2, 1], <minecraft:blaze_rod>*9, <minecraft:gold_nugget>);
//ADD without scrap output
mods.rockhounding_chemistry.MetalAlloyer.add(name, [ingredient1, ingredient2, ingredient3, ingredient4],[quantity1, quantity2, quantity3, quantity4], output);
mods.rockhounding_chemistry.MetalAlloyer.add("Netherite", ["dustZinc", "dustUranium", "dustChromium", "dustBoron"],[6, 4, 2, 1], <minecraft:blaze_rod>*9);
//REMOVE
mods.rockhounding_chemistry.MetalAlloyer.remove(alloy);
mods.rockhounding_chemistry.MetalAlloyer.remove(<rockhounding_chemistry:alloyItems:10>);
//----------------------------------
//--------Chemical Extractor--------
//----------------------------------
//category = the name of the category that will identify the processed item
//input = the itemstack representing the processed mineral
//elements = the array of the extracted elements composing the formula
//percentages = the quantity of each ingredient being extracted
//ADD
mods.rockhounding_chemistry.ChemicalExtractor.add(category, input, [element1, element2, element3, element4],[percentage1, percentage2, percentage3, percentage4]);
mods.rockhounding_chemistry.ChemicalExtractor.add("Netheride", <minecraft:blaze_rod>, ["zinc", "uranium", "chromium", "boron"],[40, 20, 10, 10]);
//REMOVE
mods.rockhounding_chemistry.ChemicalExtractor.remove(input);
mods.rockhounding_chemistry.ChemicalExtractor.remove(<rockhounding_chemistry:arsenateShards:1>);
//INHIBIT
mods.rockhounding_chemistry.ChemicalExtractor.inhibit([element...]);
mods.rockhounding_chemistry.ChemicalExtractor.inhibit(["vanadium", "osmium", "iridium"]);
//----------------------------------
//------------Lab Oven--------------
//----------------------------------
//solute = itemstack representing the solid ingredient of the solution
//catalyst = if the solution will be considered a Catalyst
//solvent = the first fluidstack representing the solvent.
//solventAmount = the needed amount of solvent.
//reagent = the second fluidstack representing the solvent. It can be null
//reagentAmount = the needed amount of reagent.
//solution = the fluidstack representing the final solution
//solutionAmount = the resulting amount of solution.
//ADD with reagent
mods.rockhounding_chemistry.LabOven.add(solute, catalyst, solvent, solventAmount, reagent, reagentAmount, solution, solutionAmount);
mods.rockhounding_chemistry.LabOven.add(<minecraft:slime_ball>, false, <liquid:water>, 1000, <liquid:sulfuric_acid>, 500, <liquid:silicone>, 100);
//ADD without reagent
mods.rockhounding_chemistry.LabOven.add(solute, catalyst, solvent, solventAmount, solution, solutionAmount);
mods.rockhounding_chemistry.LabOven.add(<minecraft:slime_ball>, false, <liquid:water>, 1000, <liquid:silicone>, 100);
//REMOVE
mods.rockhounding_chemistry.LabOven.remove(solution);
mods.rockhounding_chemistry.LabOven.remove(<liquid:chloromethane>);
//----------------------------------
//------Deposition Chamber----------
//----------------------------------
//input = itemstack representing the input
//output = itemstack representing the output
//solvent = the fluidstack representing the solvent.
//solventAmount = the needed amount of solvent (Max 10000).
//temperature = the working temperature (Max 3000)
//pressure = the working pressure (Max 32000).
//ADD
mods.rockhounding_chemistry.DepositionChamber.add(input, output, solvent, solventAmount, temperature, pressure);
mods.rockhounding_chemistry.DepositionChamber.add(<minecraft:slime_ball>, <minecraft:slime>, <liquid:water>, 4000, 1500, 21000);
//REMOVE
mods.rockhounding_chemistry.DepositionChamber.remove(output);
mods.rockhounding_chemistry.DepositionChamber.remove(<rockhounding_chemistry:alloyItems:31>);
//----------------------------------
//------------Lab Blender-----------
//----------------------------------
//input = array of itemstacks representing the ingredient itemstacks, including quantities (max 9)
//oredict = array of strings representing the ingredients oredicts (max 9)
//quantities = the quantity of each ingredient required
//output = itemstack representing the output
//ADD with itemstacks
mods.rockhounding_chemistry.LabBlender.add([input1, input2, input3], output);
mods.rockhounding_chemistry.LabBlender.add([<minecraft:redstone>*9, <minecraft:gunpowder>*4, <minecraft:glowstone>*2], <rockhounding_core:fuel_blend>*9);
//ADD with oredicts
mods.rockhounding_chemistry.LabBlender.add([oredict1, oredict2, oredict3], [quantity1, quantity2, quantity3], output);
mods.rockhounding_chemistry.LabBlender.add(["dustRedstone", "dustGunpowder", "dustGlowstone"], [9,4,2], <rockhounding_core:fuel_blend>*9);
//REMOVE
mods.rockhounding_chemistry.LabBlender.remove(output);
mods.rockhounding_chemistry.LabBlender.remove(<rockhounding_core:fuel_blend>);
//----------------------------------
//----------Casting Bench-----------
//----------------------------------
//oredict = string representing the ingredient oredict
//output = itemstack representing the output
//pattern = the used pattern: 0=GENERIC, 1=COIL, 2=ROD, 3=FOIL, 4=ARM, 5=CASING, 6=GEAR, 7=INGOT
//ADD
mods.rockhounding_chemistry.CastingBench.add(oredict, output, pattern);
mods.rockhounding_chemistry.CastingBench.add("blockIron", <minecraft:iron_ingot>*9, 0);
//REMOVE
mods.rockhounding_chemistry.CastingBench.remove(output);
mods.rockhounding_chemistry.CastingBench.remove(<minecraft:iron_ingot>);