Skip to content

Commit 2203ad9

Browse files
committed
2 parents fbbb971 + 9e0c303 commit 2203ad9

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

kubejs/server_scripts/tfc/recipes.dyes.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,49 @@ function registerTFCDyeRecipes(event) {
156156
})
157157

158158
//#endregion
159+
160+
//#region Dye mixing
161+
const dyeMixes = [
162+
// input 1
163+
[
164+
'black', 'white', 'white',
165+
'white', 'blue', 'blue',
166+
'purple', 'white', 'red',
167+
'orange', 'yellow'
168+
],
169+
// input 2
170+
[
171+
'light_gray', 'gray', 'green',
172+
'blue', 'green', 'red',
173+
'pink', 'red', 'yellow',
174+
'black', 'blue'
175+
],
176+
// output
177+
[
178+
'gray', 'light_gray', 'light_green',
179+
'light_blue', 'cyan', 'purple',
180+
'magenta', 'pink', 'orange',
181+
'brown', 'green'
182+
]
183+
]
184+
185+
for (let i = 0; i < dyeMixes[2].length; i++) {
186+
if (!Fluid.exists(`tfc:${dyeMixes[0][i]}_dye`) ||
187+
!Fluid.exists(`tfc:${dyeMixes[1][i]}_dye`) ||
188+
!Fluid.exists(`tfc:${dyeMixes[2][i]}_dye`)
189+
) continue
190+
191+
event.recipes.gtceu.mixer(`mixer_dye_${dyeMixes[2][i]}`)
192+
.inputFluids(
193+
Fluid.of(`tfc:${dyeMixes[0][i]}_dye`, 144),
194+
Fluid.of(`tfc:${dyeMixes[1][i]}_dye`, 144)
195+
)
196+
.outputFluids(
197+
Fluid.of(`tfc:${dyeMixes[2][i]}_dye`, 288)
198+
)
199+
.duration(20)
200+
.EUt(8)
201+
}
202+
203+
//#endregion
159204
}

0 commit comments

Comments
 (0)