Replace a specific recipe result
Posted: Sun Nov 15, 2020 11:08 am
Hello lads, basically what i need to do is this:
in the results section i want to replace every single "processing-unit" with 2x iron-plate and 2x copper-plate, which in this case as the amount of processing units is x2 the correct result would be as if it was written like this:
As the example "processing-unit" would be called many times in other recipes, what would be the best solution to avoid changing it all by hand and recalculating the exact values?
Code: Select all
type = "recipe",
name = "MY_RANDOM_RECIPE",
--------[...]--------
results =
{
{type = "item", name = "iron-plate", amount = 2},
{type = "item", name = "copper-plate", amount = 2},
{type = "item", name = "processing-unit", amount = 2}
},
main_product= "iron-plate",
},
Code: Select all
results =
{
{type = "item", name = "iron-plate", amount = 2},
{type = "item", name = "copper-plate", amount = 2},
{type = "item", name = "iron-plate", amount = 4},
{type = "item", name = "copper-plate", amount = 4}
},