Page 1 of 1

Random results from Recipe

Posted: Sun Feb 23, 2020 3:17 pm
by Norway174
Hello,

I'm working on my first mod, a stone washer, where you can dump into excess stone, and get back out a random amount of resources, like iron ore, or copper ore.
And I got everything working...

But with set amounts, like 5 stone wold always results in 2 iron and 2 copper. For example.
I would like to make it so, with 5 stone, there's a chance to get anywhere between 0 to 4 of each resource.

But I'm not sure if that's even possible. I've been looking at the Wiki. And not finding anything related to it.

So now I'm turning here, in hopes maybe there is another way?

Re: Random results from Recipe

Posted: Sun Feb 23, 2020 4:29 pm
by eradicator
https://wiki.factorio.com/Types/ItemProductPrototype

Or look at how Kovarex Enrichment works in the base game.

Re: Random results from Recipe

Posted: Tue Feb 25, 2020 7:17 pm
by Norway174
eradicator wrote: Sun Feb 23, 2020 4:29 pm https://wiki.factorio.com/Types/ItemProductPrototype

Or look at how Kovarex Enrichment works in the base game.
Thank you! Exactly what I was looking for. :D

Got it working perfectly now.