on rightclick with chest:
if player has 1 chest in his inventory:
send "&a[&8LuckyBlock&a] &3&lBir LuckyBlock Açıyorsun."
wait 1 seconds
send "&a[&8LuckyBlock&a] &3&lLuckyBlock Açılıyor. #3 saniye"
wait 3 seconds
chance of 2%:
execute console command "/eco give %player% 150000"
send "&a[&8LuckyBlock&a] &c150.000 kazandin."
broadast "&a[&8LuckyBlock&a] &9&l%player% &c&l150.500 Kazandi!"
chance of 70%:
execute console command "/give %player% 3 1"
send "&a[&8LuckyBlock&a] &cŞansına küs taş çıktı."
chance of 15%:
execute console command "/give %player% diamond 1"
send "&a[&8LuckyBlock&a] &cHadi yine şanslısın elmas kazandin"
remove 1 chest from player