Fixed quality recipe input/outputs

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Laxai
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Nov 07, 2025 9:43 am
Contact:

Fixed quality recipe input/outputs

Post by Laxai »

id like to create a mod that reworks the way quality items are obtained.
for example, you could craft an uncommon iron plate using a basic iron plate in a rolling mill.

but i dont want it to be possible to then use that uncommon plate to craft a rare one and so on, that would have a different chain.

Code: Select all

{
    type = "recipe",
    name = "basic-iron-plate-rolling",
    category = "metal-rolling",
    allow_quality = false,
    ingredients = {{type = "item", name = "iron-plate", amount = 1, fixed_quality = "basic"}},
    results = {{type="item", name="iron-plate", amount=1, fixed_quality = "uncomon"}}
}
for my usecase its fine to not have quality effect apply to this at all. but it might be usefull to also have for example

Code: Select all

{
    type = "recipe",
    name = "totally-dope-iron-ore-crushing",
    category = "crushing",
    allow_quality = true,
    ingredients = {{type = "item", name = "iron-ore", amount = 3}},
    results = {
    	{type="item", name="iron-ore", amount=1, fixed_quality = "uncomon"}
    	{type="item", name="stone", amount=1, fixed_quality = "basic", apply_quality_effect = false}
    }
}
wich would always output basic stone but have the quality modules work on the produced ore
you could also have a recipie that takes :any-quality: and always outputs the quality you specify this way.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4284
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Fixed quality recipe input/outputs

Post by boskid »

Ref 131063
Post Reply

Return to “Modding interface requests”