Page 1 of 1

Quality Ore Patch Support

Posted: Tue Jul 22, 2025 3:11 am
by OilyMac
I'd like to create quality ore patches, but I haven't been able to make it work. I can think of two ways that would let me accomplish this.

1. Quality in ResourceEntityPrototype

local quality_iron_ore_resource = table.deepcopy(data.raw.resource["iron-ore"])
quality_iron_ore_resource.quality = "uncommon" <<<

2. Quality in ItemProductPrototype

minable = {
results = {{
type=item,
name="iron-ore",
quality="uncommon", <<<
amount=1
}}
}

Either would be sufficient, or maybe there's a better third option I haven't thought of.

Re: Quality Ore Patch Support

Posted: Tue Jul 22, 2025 11:56 pm
by nullevoy
I agree that either this, or some way to specify the output quality of an assembler recipe should be added, because there is physically no way to implement this without adding randomness from quality bonuses to the mix.

Happened to attempt making a mod for this today as well, but even fixing the assembler's output quality on a no input recipe doesn't yield results.

Re: Quality Ore Patch Support

Posted: Thu Jul 24, 2025 12:37 pm
by Rseding91
Sorry but no. Quality on the patch itself would mean additional data in save files and additional memory usage even when not used by mods - so it's out. Quality on the minable properties goes against how the entire quality system works in that the quality you get is the quality of the entity.

This is simply not a supported modding case.

Re: Quality Ore Patch Support

Posted: Thu Jul 24, 2025 4:10 pm
by OilyMac
Thanks for the response.

To clarify, my thinking was that the quality on minable results would serve as the baseline, and then whatever quality chance for better would apply from there. Similar to how using uncommon ingredients gets you at least uncommon output, but you could get rare, etc. So I'd argue that what I'm asking for is just extending the same mechanics backwards one step from miners to the patch itself.