Event - Treasure Chest Extension
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 whether the activating client has collected the target chest or not.
If NAME is blank then the target brick will be considered the treasure chest brick. If it's not blank then the brick name you put in will be used as the chest brick.
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:
<var:gl:numChests>
<var:cl:chestsFound>
<var:cl:chestsLeft>
Download on Bockland Glass