Code: Select all
data.raw["item"]["iron-plate"].spoil_result = {
{
name = "copper-ore",
weight = 1
},
{
name = "iron-ore",
weight = 99
}
}
Code: Select all
data.raw["item"]["iron-plate"].spoil_result = {
{
name = "copper-ore",
weight = 1
},
{
name = "iron-ore",
weight = 99
}
}
Nope, currently you can only specify a single spoil_result, unless you do more complex shenanigans with spoil_to_trigger_result.
It wouldn't really be that janky. When combining items into a stack, the spoilage time is averaged, so it's already "janky" by your definition. Making the whole stack spoil into the same item based on the defined weights would be no less jank, and still makes sense.MacFeejj wrote: ↑Thu Dec 05, 2024 9:31 pm This is a nice idea, but technically it'd raise a _lot_ of implementation issues. Currently, one stack of items will always spoil into one stack of items - if a stack spoils while an inserter is moving it, or in a container with limited size, or while being carried in a rocket, it'll spoil into exactly one stack replacing the one already there - if one stack of items could spoil into multiple stacks, that would raise a _lot_ of issues. The only sane way I can see this working is if each stack spoils into the same item, which, while averaging out into the same result, would be quite janky.