#help with helper functions and fluid mixing

11 messages · Page 1 of 1 (latest)

grizzled lynx
#

hello, i am trying to make a script to mix terrafirmacraft liquid dyes, heres what i have so far:

onEvent('recipes', event => {
    let dye_mixing = (output, input1, input2) => {
        event.recipes.create.mixing(
            Fluid.of(`tfc:fluid/${output}_dye`, 10), 
            [
                Fluid.of(`tfc:fluid/${input1}_dye`, 5), 
                Fluid.of(`tfc:fluid/${input2}_dye`, 5)
            ])
    }

    dye_mixing("orange", "red", "yellow")
    dye_mixing("magenta", "purple", "pink")
})

^ the above does not work

vague pendantBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

grizzled lynx
#

theoretically, the first one should make 10mB of tfc:fluid/orange_dye from 5mB of tfc:fluid/red_dye and 5mB of tfc:fluid/yellow_dye

muted knollBOT
#

You can find your KubeJS server log in /minecraft/logs/kubejs/server.log.
If you are on 1.18 or below it will be called server.txt.
Please send it if asked, as it contains helpful information.

old harbor
#

the fluid id is wrong, the correct one is tfc:${color}_dye

grizzled lynx
#

is it different from the block id? ill test anyways but i checked with /setblock and tfc:fluid/color_dye works

#

will check rn

#

huh

#

guess so

#

funky

#

works now thanks