Background: Making a hg plugin that will work with imported maps. Problem: Chests! Need to find a way to deal with chests Solution: 1) Add items to chests on the fly. When player opens chest (triggered by invopenevent) check if chest is in an array. if not then add items in (randomly selected from a list). If in array then do nothing. 2) Same as above but skip adding items to chests and directly give players items from a random list. If in the array then do nothing. HELP: How do I specifically detect chest inv open or interact with a chest? I could use on touch then scan for chests but im sure theres a better way. If i go route 1: how do I add items to a chest? How to clear items in chest? Whats the best way to add a chest to the array (was thinking coords) If i go route 2: How would I set chest gui canceled and auto close the chest?