Update recipes.dyes.js (#2925)
* Update recipes.dyes.js added base 9 dye mixing as fluids + 2 custom ones as stated in the issue #2818 * Revert "Update recipes.dyes.js" This reverts commit b06ed24bf42fafc4233c6c6278fa5199e5542bfd. * Update recipes.dyes.js added base 9 dye mixing as fluids + 2 custom ones as stated in the issue #2818 attempt nr 2
This commit is contained in:
parent
849f6409d5
commit
9e0c303438
1 changed files with 45 additions and 0 deletions
|
|
@ -156,4 +156,49 @@ function registerTFCDyeRecipes(event) {
|
|||
})
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region Dye mixing
|
||||
const dyeMixes = [
|
||||
// input 1
|
||||
[
|
||||
'black', 'white', 'white',
|
||||
'white', 'blue', 'blue',
|
||||
'purple', 'white', 'red',
|
||||
'orange', 'yellow'
|
||||
],
|
||||
// input 2
|
||||
[
|
||||
'light_gray', 'gray', 'green',
|
||||
'blue', 'green', 'red',
|
||||
'pink', 'red', 'yellow',
|
||||
'black', 'blue'
|
||||
],
|
||||
// output
|
||||
[
|
||||
'gray', 'light_gray', 'light_green',
|
||||
'light_blue', 'cyan', 'purple',
|
||||
'magenta', 'pink', 'orange',
|
||||
'brown', 'green'
|
||||
]
|
||||
]
|
||||
|
||||
for (let i = 0; i < dyeMixes[2].length; i++) {
|
||||
if (!Fluid.exists(`tfc:${dyeMixes[0][i]}_dye`) ||
|
||||
!Fluid.exists(`tfc:${dyeMixes[1][i]}_dye`) ||
|
||||
!Fluid.exists(`tfc:${dyeMixes[2][i]}_dye`)
|
||||
) continue
|
||||
|
||||
event.recipes.gtceu.mixer(`mixer_dye_${dyeMixes[2][i]}`)
|
||||
.inputFluids(
|
||||
Fluid.of(`tfc:${dyeMixes[0][i]}_dye`, 144),
|
||||
Fluid.of(`tfc:${dyeMixes[1][i]}_dye`, 144)
|
||||
)
|
||||
.outputFluids(
|
||||
Fluid.of(`tfc:${dyeMixes[2][i]}_dye`, 288)
|
||||
)
|
||||
.duration(20)
|
||||
.EUt(8)
|
||||
}
|
||||
|
||||
//#endregion
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue