on place: if name of player's tool is "&5&lPremiumChest": if {xcase} is true: cancel event remove 1 chest named "&5&lPremiumChest" from player's inventory set {_n} to {_i::%player%} chance of 1%: set {_n} to 1 chance of 2%: set {_n} to 2 chance of 3%: set {_n} to 3 #reszte sam zrob loop all players: if {msgcase.%loop-player%} is true: send " &4&l» &c%player% &7otworzyl &5&lPremiumChest &7i otrzymal&8:" to loop-player if {_n} is 1: drop 1 beacon loop all players: if {msgcase.%loop-player%} is true: send " &f&l» &a1x &aB&bE&cA&aC&bO&cN" to loop-player if {_n} is 2: drop 1 diamond sword of sharpness 5 and unbreaking 3 and fire aspect 2 loop all players: if {msgcase.%loop-player%} is true: send " &f&l» &a1x Miecz 5/3/2" to loop-player if {_n} is 3: drop 1 diamond helmet of protection 4 and unbreaking 3 drop 1 diamond chestplate of protection 4 and unbreaking 3 drop 1 diamond leggings of protection 4 and unbreaking 3 drop 1 diamond boots of protection 4 and unbreaking 3 loop all players: if {msgcase.%loop-player%} is true: send " &f&l» &a1x Set 4/3" to loop-player if {_n} is 4: drop diamond pickaxe of efficiency 6 and unbreaking 3 and fortune 3 loop all players: if {msgcase.%loop-player%} is true: send " &f&l» &a1x Kilof 6/3/3" to loop-player if {_n} is 5: drop 2 tnt named "&7Rzucane &4TNT" loop all players: if {msgcase.%loop-player%} is true: send " &f&l» &a2x Rzucane TNT" to loop-player if {_n} is 6: drop 10 enchanted golden apple loop all players: if {msgcase.%loop-player%} is true: send " &f&l» &a2x Koxy" to loop-player if {_n} is 7: drop 13 golden apple loop all players: if {msgcase.%loop-player%} is true: send " &f&l» &a4x Refy" to loop-player if {_n} is 8: drop 3 120 named "&9&lBoyfarmer" loop all players: if {msgcase.%loop-player%} is true: send " &f&l» &a3x &9&lBoyFarmer" to loop-player if {_n} is 9: drop glowing tripwire hook named "&cAntyNogi" loop all players: if {msgcase.%loop-player%} is true: send " &f&l» &a1 AntyNogi" to loop-player if {_n} is 10: drop 3 50 named "&9&lSandfarmer" loop all players: if {msgcase.%loop-player%} is true: send " &f&l» &a3x SandFarmer" to loop-player if {_n} is 11: drop 3 379 named "&a&lKopacz fosy" loop all players: if {msgcase.%loop-player%} is true: send " &f&l» &a3x KopaczFosy" to loop-player if {_n} is 12: drop 1 paper named "&31&7/&34 &7Itemów na Gildie" loop all players: if {msgcase.%loop-player%} is true: send " &f&l» &a1x &31&7/&34 &7Itemów na Gildie" to loop-player if {_n} is 3: drop 1 paper named "&31&7/&34 &7Itemów na Gildie" loop all players: if {msgcase.%loop-player%} is true: send " &f&l» &a1x &31&7/&34 &7Itemów na Gildie" to loop-player loop all players: if {msgcase.%loop-player%} is true: send " &4&l» &5&lPremiumChest &7zakupisz za &c&lPSC&7!" to loop-player