Lock Recipe Technology effect
- protocol_1903
- Filter Inserter

- Posts: 450
- Joined: Fri Sep 09, 2022 4:33 pm
- Contact:
Lock Recipe Technology effect
As in title, I would like an inverse to the 'unlock-recipe' technology research effect that instead locks the linked recipe. If implemented, this brings up the question of if it should lock the recipe if it was from multiple sources or was always available: I posit that it should lock the recipe, regardless of if/how it was previously unlocked. This makes the most sense from a simple perspective, is the easiest to implement, and is easiest to understand from the player perspective.
Py and PyBlock developer, wielder of LUA in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
https://mods.factorio.com/user/protocol_1903
Re: Lock Recipe Technology effect
Hmm. I suppose this could be used when researching a "better understanding" of iron casting, unlocking a more efficient recipe, and locking the existing one?
Or to have "alternate" recipes, where you can only have one active at a time - each alternate's technology would lock the other alternates' recipes. And maybe it would also automatically "un-research" the other alternates' technologies (would be likely be a separate interface request, for a "un-research other technology" technology effect.).
Would this reset any machines with the now-locked recipe set?
Or to have "alternate" recipes, where you can only have one active at a time - each alternate's technology would lock the other alternates' recipes. And maybe it would also automatically "un-research" the other alternates' technologies (would be likely be a separate interface request, for a "un-research other technology" technology effect.).
Would this reset any machines with the now-locked recipe set?
Re: Lock Recipe Technology effect
I think you can already do this via the on_research_finished event, and then setting recipe enabled=false.
Good Luck!
Good Luck!
- protocol_1903
- Filter Inserter

- Posts: 450
- Joined: Fri Sep 09, 2022 4:33 pm
- Contact:
Re: Lock Recipe Technology effect
The point is to not need to run scripts like that, and having proper support for this 'feature' is always better than scripting it manually. Additionally, script locking recipes is not respected when the technology tree is refreshed and enabled recipes are checked again.eugenekay wrote: Sun Feb 08, 2026 3:57 am I think you can already do this via the on_research_finished event, and then setting recipe enabled=false.
Good Luck!
Py and PyBlock developer, wielder of LUA in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
https://mods.factorio.com/user/protocol_1903
- protocol_1903
- Filter Inserter

- Posts: 450
- Joined: Fri Sep 09, 2022 4:33 pm
- Contact:
Re: Lock Recipe Technology effect
I assume so, similar to how surface conditions lock recipes.Quorken wrote: Sun Feb 08, 2026 3:40 am Would this reset any machines with the now-locked recipe set?
Py and PyBlock developer, wielder of LUA in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
https://mods.factorio.com/user/protocol_1903
