#Randomly replace items in shapeless recipe

14 messages · Page 1 of 1 (latest)

viscid arrow
#

I'm not sure if its possible, but I was looking into creating by-products from hand crafting certain recipes, and was wondering if there was a way to have .replaceIngredients() replace with a % chance for each slot etc. I've tried looking online but I'm honestly having a bit of difficulty finding reliable documentation on the methods available.

potent pantherBOT
#

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

viral pier
#

@viscid arrow so

you mean when player crafting something, there is the chance, that one or several crafting slot ingredient can be replaced with some sort of junk after player crafted the thing?

viscid arrow
#

Yeah pretty much

#

I was dabbling with the replace ingredient but I’m thinking that seems like it doesn’t quite hit the mark

#

So I also tried looking into a customIngredient thing (I’ve forgotten the name for a moment sorry)

#

That seemed much more flexible (and so more likely to work) but I couldn’t quite work out how to actually reliably replace items in the grid without crashing the game semi regularly

viscid arrow
#

I also cant work out how to get it to only replace a single instance of an item rather than every matching instance, which may fall into a similar category.

viscid arrow
#

Ive had more success with the customIngredientAction method

#

much as I cannot find any documentation on it

viscid arrow
#

Got it working with the custom action