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.
#KubeJSCreate Mixer recipe with Fluids?
33 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
try Fluid.of("immersiveenginnering:redstone_acid", 500)
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
Try this one:
event.recipes.create.mixing(
[Fluid.of('immersiveengineering:redstone_acid', 500)],
[Fluid.of('minecraft:water',1000),Item.of('minecraft:redstone_dust')]
)
it's currently three in the morning and i just closed mc but i'll try it first thing tomorrow 👍
Alright
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)])
You only have one e in immersiveengineering
you are correct, lemme fix that
I mistyped Here too so that's the reason why it didn't work
Yeah then it was my ID mistyped Up there. But yay
glad we got that worked out!
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
even using event.custom nothing appears for the recipe
What's your Code rn?
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" }) })
And it doesn't give you any warnings (/kubejs warnings) or errors
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
Did you also Check the Log or Ran /kubejs warnings?
Cause recipe errors are mostly warnigns
[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
The Item id of Redstone düst is Just minecraft:redstone Not redstone_dust
that seemed to fix it, though how can i specify more than one redstone dust?
"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