KubeJS

KubeJS

61M Downloads

[1.16.4 forge, v 1604.3.2.121] Mekanism Addon doesn't work for Infusing

theLadyStardust opened this issue ยท 4 comments

commented

The example that was on the Curseforge page for the Mekanism addon for the Metallurgic Infuser doesn't seem to be working. Is the example incorrect? Otherwise, Kube and the mekanism addon seems to be working, the recipe I added with the crusher works fine. Here's the line I'm using, it's in events.listen for recipes, and other recipes in the same block are working.
event.recipes.mekanism.metallurgic_infusing('minecraft:comparator', 'minecraft:nether_quartz', 'mekanism:redstone', 20)
I've tried using item.of() on the inputs/outputs, no dice. Any help would be greatly appreciated. A few other questions that the docs weren't able to answer - Is there a way to add new fluids the same way you can add items and blocks? and is there a way, aside from making multiple recipes, to allow for multiple inputs, aside from forge tags? Aside from this, the mod's been working really well for what I want it to do, thanks for making it!

commented

Can you provide a full script file please? (go to https://hastebin.com/ and paste the contents there, then send the link here)

Also please tell me which folder the script is in, is it in kubejs/server_scripts or another folder?

commented

It's in server_scripts. I managed to get the infusing recipe to work, it was likely something else in the file. I did have an issue with injecting recipes, however. Here's the file, the lines that aren't working are at 438 - 440. https://hastebin.com/kiqefixiju.csharp

commented

Your gas ingredient is formatted incorrectly:
{gas: "mekanism:sulfuric_acid", 200}
needs the amount key because you're using a js object, so:
{gas: "mekanism:sulfuric_acid", amount: 200}

As for your other questions:

Is there a way to add new fluids the same way you can add items and blocks?

Yes, there is an event called fluid.registry which you can use to create fluids using a Fluid Builder

and is there a way, aside from making multiple recipes, to allow for multiple inputs, aside from forge tags?

Yes, vanilla ingredients support lists of tags / items and you can achieve the same effect in KubeJS by using ingredient.of([...])

Hope I could help!

commented

That's perfect! Thanks so much!