on place: if name of player's tool is not "&cCase": stop cancel event if {xcase} is false; send "&7Skrzynki sa wylaczone!" stop remove 1 ender chest named "&cCase" from player's inventory chance of 0.25575%: drop 1 beacon add " &f&l» &a1x &aB&bE&cA&aC&bO&cN" to {_msg::*} chance of 5%: drop 1 iron sword of sharpness 5 and fire aspect 2 add " &f&l» &a1x Miecz 5/2" to {_msg::*} if (size of {_msg::*} > 0): add " &4&l» &7zakupisz na&8: " to {_msg::*} loop all players: if {msgcase.%loop-player%} is true: send " &4&l» &c%player% &7otworzyl &cCase &7i otrzymal&8:" to loop-player send {_msg::*} to loop-player stop send "Nic nie trafiles"