#KubeJSCreate Mixer recipe with Fluids?

33 messages · Page 1 of 1 (latest)

acoustic helm
#

I'm new to the mod, i've made a few custom recipes involving mixing and manual crafting, but I can't seem to figure out how to have a Create Mixer output a fluid.
The wiki only shows an example with the output labeled as "Fluid.water(10)" but i'd like it to be Immersive Engineering's Redstone acid, I've tried doing just "immersiveengineering:redstone_acid" but it didnt seem to create a recipe, and doing Fluid.redstone_acid(500) results in an error. I cant seem to find a proper explanation on the wiki, sorry if this is a common/dumb question. please ping me in responses, as i'm much more likely to get back to it.

serene cloakBOT
#

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

dawn spindle
#

try Fluid.of("immersiveenginnering:redstone_acid", 500)

acoustic helm
#

it doesnt seem to make a recipe even with that

#

currently it's looking like this:

ServerEvents.recipes(event=> { event.recipes.create.mixing( Fluid.of("immersiveenginnering:redstone_acid", 500), [ Fluid.water(1000), 'minecraft:redstone_dust' ] ) })

#

it's not giving me any errors, it says it all loads fine, nothing happens though.

#

ah i see. this time i totally just mispelled it, i'll try it again spelled correctly. whoops

#

still got nothing

thorny aurora
#

Try this one:

event.recipes.create.mixing(
  [Fluid.of('immersiveengineering:redstone_acid', 500)],
  [Fluid.of('minecraft:water',1000),Item.of('minecraft:redstone_dust')]
)
acoustic helm
#

it's currently three in the morning and i just closed mc but i'll try it first thing tomorrow 👍

thorny aurora
#

Alright

gusty narwhal
#

okay so I am also attempting this too. and it didn't work for me either

#

i probably typed it wrong but here's my code:

c.recipes.create.mixing([Fluid.of('immersivengineering:redstone_acid', 1000)], [Item.of('4x minecraft:redstone'), Fluid.of('minecraft:water', 1000)])
dawn spindle
#

You only have one e in immersiveengineering

gusty narwhal
#

you are correct, lemme fix that

dawn spindle
gusty narwhal
#

it works

#

we now have a bit of working code for shadow yay!

dawn spindle
#

Yeah then it was my ID mistyped Up there. But yay

gusty narwhal
#

glad we got that worked out!

acoustic helm
#

even with the typo fixed i'm still not getting anything at all, and just putting that line of code into the file gave me an error back; "Cannot call method "mixing" of undefined"

#

it keeps saying everything loaded correctly but it doesn't even create some weirdly broken recipe, just nothing at all. my other recipes are working fine, i don't get why this isnt

acoustic helm
#

even using event.custom nothing appears for the recipe

dawn spindle
#

What's your Code rn?

acoustic helm
#

i've used the ones above but i just tried using
ServerEvents.recipes(event=> { event.custom({ "type": "create:mixing", "ingredients": [ { "item": "minecraft:redstone_dust" }, { "fluidTag": "minecraft:water", "amount": 1000 } ], "results": [ { "fluid": "immersiveengineering:redstone_acid", "amount": 250 } ], "heatRequirement": "heated" }) })

dawn spindle
#

And it doesn't give you any warnings (/kubejs warnings) or errors

acoustic helm
#

no warnings or errors, appears as the green "kubejs reloaded correctly" in chat when i do /reload, then after a bit i check rei and there's only the default recipe for redstone acid

dawn spindle
#

Did you also Check the Log or Ran /kubejs warnings?

#

Cause recipe errors are mostly warnigns

acoustic helm
#

[12:08:20] [WARN] Error parsing recipe create:kjs_2g7r0vug690drbhg4eagcnbjn[create:mixing]: {"type":"create:mixing","ingredients":[[],{"fluid":"minecraft:water","nbt":{},"amount":1000}],"results":[{"fluid":"immersiveengineering:redstone_acid","amount":250}],"heatRequirement":"heated"}: com.google.gson.JsonSyntaxException: Item array cannot be empty, at least one item must be defined

dawn spindle
#

The Item id of Redstone düst is Just minecraft:redstone Not redstone_dust

acoustic helm
#

that seemed to fix it, though how can i specify more than one redstone dust?

dawn spindle
#

"4x minecraft:redstone" If using kubejs create otherwise you add a keycalled "count" with the value being the amount of Redstone. To the json i mean