Okay, the problem seems to have been because brick_treasure_chest, being a default add-on, is automatically re-downloaded if the one you have is missing or different upon start-up. I added the code in question to event_variables and it works fine. Thanks again!