Page 1 of 1
result vs results
Posted: Fri Oct 25, 2019 6:41 am
by Honktown
I see some mods use "results" even when there's only a single item for certain things (mining, recipes). Is there a reason for this?
Re: result vs results
Posted: Fri Oct 25, 2019 6:56 am
by boskid
"result" is old one, for it to specify amount you would have to add extra property "result_count" because default is 1 (you can see this in "transport-belt" recipe). No other attributes can be added for it.
"results" is new, generic one in which you can specify many products, each with its own count and with some extra options like minimum count, maximum count, probability and catalyst amount.
Since "result" is not going to be removed for obvious reasons, feel free to use whatever you want.
Re: result vs results
Posted: Fri Oct 25, 2019 5:50 pm
by Honktown
Thanks. Makes sense.