Page 1 of 1

On_recipe_change event

Posted: Fri Jul 20, 2018 5:06 pm
by Avacado
I've added a feature in my mod which creates a map tag over each machine for its current recipe. Currently I have a nth_tick event that scans all the machines against a list of their previous recipes to see if any have changed. It would be more convenient and hopefully computationally cheaper if there was just an on_recipe_change event.

Thanks!

Re: On_recipe_change event

Posted: Fri Jul 20, 2018 5:43 pm
by eradicator
That's a really neat idea with the tags. If chart tags had scale it would be even better (and also useful for other things like marking big ore fields with big icons).
+1

Re: On_recipe_change event

Posted: Thu Oct 18, 2018 10:38 pm
by Rseding91
This is the same as viewtopic.php?f=28&t=61339 and my last reply to that one is still the answer here.

Re: On_recipe_change event

Posted: Fri Oct 19, 2018 12:13 am
by Avacado
Thanks for getting back to me. Maybe I'll try the copy/paste and GUI close events as an alternative. Currently I'm using nth tick, but that is inefficient and at the time I didn't think about being able to use GUI close.

Though, I'm not really sure what the other requestor meant by:
I can't look on_gui_closed becose the gui doesn't have to be explicitly closed by the player, when keeping track of the open gui of the player is very inefficient.
Wouldn't bot placement, copy/paste and GUI cover everything apart from another mod setting the recipe or another mod closing the GUI without the player?