on place: if name of player's tool is "&cCase": if {xcase} is true: cancel event remove 1 ender chest named "&cCase" from player's inventory loop all players: if {msgcase.%loop-player%} is true: send " &4&l» &c%player% &7otworzyl &cCase &7i otrzymal&8:" to loop-player set {_drop} to false while {_drop} is false: chance of 0.25575%: set {_drop} to true 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 chance of 5%: set {_drop} to true drop 1 iron sword of sharpness 5 and fire aspect 2 loop all players: if {msgcase.%loop-player%} is true: send " &f&l» &a1x Miecz 5/2" to loop-player ... loop all players: if {msgcase.%loop-player%} is true: send " &4&l» &7zakupisz na&8: " to loop-player