Page 1 of 1

Fixed quality recipe input/outputs

Posted: Fri Nov 07, 2025 1:31 pm
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.

Re: Fixed quality recipe input/outputs

Posted: Fri Nov 07, 2025 1:45 pm
by boskid
Ref 131063