Page 1 of 1

Recipe Set Event Handler

Posted: Mon Mar 17, 2025 2:53 pm
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!

Re: Recipe Set Event Handler

Posted: Mon Mar 17, 2025 11:54 pm
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?

Re: Recipe Set Event Handler

Posted: Tue Mar 18, 2025 12:47 pm
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