Treasure Chest ExtensionUploaded by Jes00
Aug 1st 2019, 9:23 AM
Adds extended functionality for the default treasure chest brick.
If you have Event_onChestOpen, Event_onFoundAllChests, or Script_TreasureChestVars, delete them and replace them with this mod.
Adds the following events:
Brick > collectChest [NAME] [BOOL] - Collects or uncollects the target chest from the activating client.
Brick > checkChest [NAME] - Checks wether the activating client has collected the target chest or not.
onChestOpen - Called when a chest is collected that the client hasn't found yet.
onCheckChestTrue - Called when checkChest is called if the client has already collected the target chest.
onCheckChestFalse - Called when checkChest is called if the client has not already collected the target chest.
onFoundAllChests - Called when someone has collected all the chests in the server.
If Event_Variables is enabled, adds the following variables: