How to detect if an item has been put in or removed from a particular chest?
Posted: Wed Nov 14, 2018 8:58 pm
Hi,
So I sort of inherited an old mod that used on_tick to poll all of the mod's chests (Blueprint Reader) to see if a blueprint is placed in the chest, and it updates the circuit network based on that.
I already have reliable events for the creation and destruction of the chest, and am properly handling that.
I would like to remove the polling behavior, and rely on events to tell if a blueprint is in the chest or not, but it seems like there are no adequately descriptive events that are appropriate for this.
I want to know what combination of events I need to check for to detect whether a blueprint is placed into the chest inventory or removed, and maybe a better understanding of the behavior of those events, because the API descriptions were all of maybe 10 words each so I don't really get what they cover?
So I sort of inherited an old mod that used on_tick to poll all of the mod's chests (Blueprint Reader) to see if a blueprint is placed in the chest, and it updates the circuit network based on that.
I already have reliable events for the creation and destruction of the chest, and am properly handling that.
I would like to remove the polling behavior, and rely on events to tell if a blueprint is in the chest or not, but it seems like there are no adequately descriptive events that are appropriate for this.
I want to know what combination of events I need to check for to detect whether a blueprint is placed into the chest inventory or removed, and maybe a better understanding of the behavior of those events, because the API descriptions were all of maybe 10 words each so I don't really get what they cover?