From 9e0c303438f5cbc33d0167e7d7b1ce62ddbf614e Mon Sep 17 00:00:00 2001 From: OLOXpl <125832723+OLOXpl@users.noreply.github.com> Date: Sun, 1 Feb 2026 18:43:07 +0100 Subject: [PATCH] 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 --- kubejs/server_scripts/tfc/recipes.dyes.js | 45 +++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/kubejs/server_scripts/tfc/recipes.dyes.js b/kubejs/server_scripts/tfc/recipes.dyes.js index 8499a98f5..a0d9d435b 100644 --- a/kubejs/server_scripts/tfc/recipes.dyes.js +++ b/kubejs/server_scripts/tfc/recipes.dyes.js @@ -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 } \ No newline at end of file