#Trying to use KubeJS create to make a mixing recipe with multiple possible inputs

10 messages · Page 1 of 1 (latest)

west ingot
#

So I'm trying to make a recipe that accepts several different types of grass, which I know you can use an array for, but when I try and make the count higher than one, it gives me an error. Can this be fixed?

Here is my code:

event.recipes.create.mixing('kubejs:recycled_plant_matter', [['5x minecraft:grass', '3x minecraft:tall_grass', '5x minecraft:seagrass'], Fluid.of('minecraft:water', 50)])
worn totemBOT
#

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

deep grove
#

you can't have different counts between the same item group iirc

#

you can also try InputItem.of(<array>)

west ingot
deep grove
#

I think you have to use itemstacks so InputItem.of([Item.of("3x minecraft:dirt"), Item.of("3x minecraft:sand")])

west ingot
deep grove
#

Then remove the counts and try InpitItem.of(<array>, <count>)

west ingot
#

it worked!

#

thank you for helping!