options:
ss: &7[&aŞansKutusu&7]
command /şanskutusuver:
permission: şans.admin
permission message: &4Bu Komutu Kullanmak İçin Yeterli Yetkiye Sahip Değilsin!
aliases: şanskutusual,şanskutusu
trigger:
give 1 gold nugget named "&6&lAnahtar" to player
give 1 gold block named "&6&lŞans Kutusu" with lore "&bŞans Kutusu" to player
on rightclick with gold block:
if name of player's tool contain "&6&lŞans Kutusu":
if player has gold nugget named "&6&lAnahtar":
cancel event
remove 1 gold nugget named "&6&lAnahtar" from the player
remove 1 gold block named "&6&lŞans Kutusu" with lore "&bŞans Kutusu" from the player
send "&7>>>> &aŞans Kutusu Açılıyor &7<<<<" to player
chance of 20%:
send "{@ss} &7&lŞans Kutusundan &a&lKeskinlik 1 Kılıç &7&lÇıktı" to player
give 1 iron sword of sharpness 1 to player
chance of 10%:
send "{@ss} &7&lŞans Kutusundan &a&lKeskinlik 1 Kılıç &7&lÇıktı" to player
give 1 iron sword of sharpness 1 to player
chance of 10%:
send "{@ss} &7&lŞans Kutusundan &a&l10 Elmas &7&lÇıktı" to player
give 10 diamond to player
chance of 5%:
send "{@ss} &7&lŞans Kutusundan &a&lIron Set Koruma 1 &7&lÇıktı" to player
give iron helmet of protection 1 to player
give iron chestplate of protection 1 to player
give iron leggings of protection 1 to player
give iron boots of protection 1 to player
else:
send "{@ss} &a&lAnahtarın Olmadan Şans Kutusunu Açamassın" to player
cancel event
on leftclick:
if clicked block is chest:
cancel event
if player has 1 gold nugget named "&6&lAnahtar" with lore "&bŞans kutusu açmak için gereklidir.":
play raw sound "note.bassattack" at player with pitch 1 volume 20
play raw sound "note.bassattack" at player with pitch 1 volume 20
play raw sound "note.bassattack" at player with pitch 1 volume 20
play raw sound "note.bassattack" at player with pitch 1 volume 20
strike lightning effect at player
remove 1 gold nugget named "&6&lAnahtar" with lore "&bŞans kutusu açmak için gereklidir." from the player
remove 1 gold block named "&6&lŞans Kutusu" with lore "&bŞans Kutusu" from the player
send "&7>>>> &aŞans Kutusu Açılıyor &7<<<<" to player
send "&7>>>> &aBoş çıkabilir! &7<<<<"
chance of 20%:
send "{@ss} &7Şans Kutusundan &aKeskinlik 1 Kılıç &7Çıktı" to player
give 1 iron sword of sharpness 1 to player
chance of 10%:
send "{@ss} &7Şans Kutusundan &aKeskinlik 1 Kılıç &7Çıktı" to player
give 1 iron sword of sharpness 1 to player
chance of 10%:
send "{@ss} &7Şans Kutusundan &a10 Elmas &7Çıktı" to player
give 10 diamond to player
chance of 5%:
send "{@ss} &7Şans Kutusundan &aIron Set Koruma 1 &7Çıktı" to player
give iron helmet of protection 1 to player
give iron chestplate of protection 1 to player
give iron leggings of protection 1 to player
give iron boots of protection 1 to player
else:
play raw sound "random.pop" at player with pitch 1 volume 20
send "&bBir anahtar olmadan şans kutusu açamazsın!"
send "&aMarket açılıyor..."
wait 0.7 seconds
run player command "market" as op
on rightclick:
if clicked block is chest:
cancel event
if player has 1 gold nugget named "&6&lAnahtar" with lore "&bŞans kutusu açmak için gereklidir.":
play raw sound "note.bassattack" at player with pitch 1 volume 20
play raw sound "note.bassattack" at player with pitch 1 volume 20
play raw sound "note.bassattack" at player with pitch 1 volume 20
play raw sound "note.bassattack" at player with pitch 1 volume 20
strike lightning effect at player
remove 1 gold nugget named "&6&lAnahtar" with lore "&bŞans kutusu açmak için gereklidir." from the player
remove 1 gold block named "&6&lŞans Kutusu" with lore "&bŞans Kutusu" from the player
send "&7>>>> &aŞans Kutusu Açılıyor &7<<<<" to player
send "&7>>>> &aBoş çıkabilir! &7<<<<"
chance of 20%:
send "{@ss} &7Şans Kutusundan &aKeskinlik 1 Kılıç &7Çıktı" to player
give 1 iron sword of sharpness 1 to player
chance of 10%:
send "{@ss} &7Şans Kutusundan &aKeskinlik 1 Kılıç &7Çıktı" to player
give 1 iron sword of sharpness 1 to player
chance of 10%:
send "{@ss} &7Şans Kutusundan &a10 Elmas &7Çıktı" to player
give 10 diamond to player
chance of 5%:
send "{@ss} &7Şans Kutusundan &aIron Set Koruma 1 &7Çıktı" to player
give iron helmet of protection 1 to player
give iron chestplate of protection 1 to player
give iron leggings of protection 1 to player
give iron boots of protection 1 to player
else:
play raw sound "random.pop" at player with pitch 1 volume 20
send "&bBir anahtar olmadan şans kutusu açamazsın!"
send "&aMarket açılıyor..."
wait 0.7 seconds
run player command "market" as op