on leftclick on sea lantern: cancel event if name of player's tool is "&3Prestige &bKeys": chance of 26%: set {_r1} to a random integer between 1000 and 10000000 add {_r1} to {tokens::%Player%} set {_rc} to format({_r1}) create hologram "&3&LPrestige &b&lCrate;;ItemStack:magma cream;&3+%{_rc}% &bTokens" at block above block above block above event-block for 2 seconds send "&3&LPrestige &b&lCrate &7» &3+%{_rc}% &bTokens" stop chance of 26%: set {_r2} to a random integer between 1 and 1000 add {_r2} to {commonkeys::%Player%} create hologram "&3&LPrestige &b&lCrate;;ItemStack:tripwire hook;&2+%{_r2}% &aCommon Keys" at block above block above block above event-block for 2 seconds send "&3&LPrestige &b&lCrate &7» &2+%{_r2}% &ACommon Keys" stop chance of 26%: set {_r3} to a random integer between 1 and 500 add {_r3} to {rarekeys::%Player%} create hologram "&3&LPrestige &b&lCrate;;ItemStack:tripwire hook;&5+%{_r3}% &dRare Keys" at block above block above block above event-block for 2 seconds send "&3&LPrestige &b&lCrate &7» &5+%{_r3}% &dRare Keys" stop chance of 25%: set {_r4} to a random integer between 1 and 250 add {_r4} to {legendarykeys::%Player%} create hologram "&3&LPrestige &b&lCrate;;ItemStack:tripwire hook;&4+%{_r4}% &CLegendary Keys" at block above block above block above event-block for 2 seconds send "&3&LPrestige &b&lCrate &7» &4+%{_r4}% &CLegendary Keys" stop remove 1 tripwire hook from player's tool else: send "&3&LPrestige &b&lCrate &7» &3Do You Try To &bAboose &3OF This Crates ?" on rightclick on sea lantern: cancel event open chest with 3 rows named "&3&LPrestige &b&lCrate" to player wait 3 ticks set {_slot} to -1 loop 27 times: add 1 to {_slot} format gui slot {_slot} of player with black stained glass pane named "&3Prestige &bCrate" to do nothing format gui slot 4 of player with end crystal named "&b&lRewards &7:" to do nothing format gui slot 10 of player with magma cream named "&6<okens" with lore "" and "&f&m-----------------" and "" and "&71k-10M &eTokens" and "&eChance &7» &e25 Pourcent" and "" and "&f&m-----------------" to do nothing format gui slot 12 of player with tripwire hook named "&A&lCommon Keys" with lore "" and "&f&m-----------------" and "" and "&71-1k &ACommon Keys" and "&2Chance &7» &225 Pourcent" and "" and "&f&m-----------------" to do nothing format gui slot 14 of player with tripwire hook named "&d&lRare Keys" with lore "" and "&f&m-----------------" and "" and "&71-500 &dRare Keys" and "&5Chance &7» &525 Pourcent" and "" and "&f&m-----------------" to do nothing format gui slot 16 of player with tripwire hook named "&C&LLegendary Keys" with lore "" and "&f&m-----------------" and "" and "&71-250 &CLegendary Keys" and "&4Chance &7» &425 Pourcent" and "" and "&f&m-----------------" to do nothing