Recipe Set Event Handler

Place to get help with not working mods / modding interface.
adam_bise
Filter Inserter
Filter Inserter
Posts: 572
Joined: Fri Jun 08, 2018 10:42 pm
Contact:

Recipe Set Event Handler

Post by adam_bise »

Looking for an event handler that triggers on setting or changing a recipe in any way. But the closest one I could find was on_selected_entity_changed, but I don't know how it works.

What I am wanting to do is, in a scenario, only allow certain recipes to be configured in a given area by unsetting recipes that were set outside of the allowed area.

But then I found this post, so now I am wondering if this scenario is even possible. viewtopic.php?t=61339

The whole premise of the scenario revolves around restricting recipes and entities to certain areas. If I can't do the recipe part then there is no point.

Any tips appreciated!
adam_bise
Filter Inserter
Filter Inserter
Posts: 572
Joined: Fri Jun 08, 2018 10:42 pm
Contact:

Re: Recipe Set Event Handler

Post by adam_bise »

If I have to I could also mark offending entities for deconstruction. But how can I scan the recipes on each entity in an area?
Natha
Filter Inserter
Filter Inserter
Posts: 250
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

Re: Recipe Set Event Handler

Post by Natha »

That's been already discussed: viewtopic.php?t=61339
But you can ask there if they could implement it now, since circuits are able to set the recipe
Post Reply

Return to “Modding help”