bilektugrul
Demir Cevheri Gibiyim
- Katılım
- 30 Haziran 2015
- Mesajlar
- 186
- Elmaslar
- 241
- Puan
- 13.675
- Yaş
- 26
- Minecraft
- bilektugrul
Discord:
bilektugrul
Şans kutusu ve market skripti
Kullandığım bounty skripti:
Şans kutusu aldığımda puanım yetersizse bile -lere düşürüp veriyor.Nasıl düzeltebilirim?
Kod:
options:
ss: &7&l[&a&lŞansKutusu&7&l]
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&l>>>> &a&lŞans Kutusu Açılıyor &7&l<<<<" 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 named "&a&lŞanslı Kılıç" 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 named "&a&lŞanslı Kılıç" to player
chance of 10%:
send "{@ss} &7&lŞans Kutusundan &a&l10 Elmas &7&lÇıktı" to player
give 10 diamond named "&a&lŞanslı Elmas" 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 named "&a&lŞanslı Kafalık" to player
give iron chestplate of protection 1 named "&a&lŞanslı Zırh" to player
give iron leggings of protection 1 named "&a&lŞanslı Pantolon" to player
give iron boots of protection 1 named "&a&lŞanslı Botlar" to player
else:
send "{@ss} &a&lAnahtarın Olmadan Şans Kutusunu Açamassın" to player
cancel event
command /sanskutusumarketal <player>:
permission: market.sanskutusumarketal
permission message: &cİznin yok!
trigger:
give 1 gold block named "&6&lŞans Kutusu" with lore "&bŞans Kutusu" to arg-1
remove 300 from {bounty.%arg 1%}
command /market:
permission: market.ac
permission message: &4Bu Komutu Kullanmak İçin Yeterli Yetkiye Sahip Değilsin!
aliases: marketaç,marketgir,shop
trigger:
open chest with 5 rows named "&4&lBounty Market" to player
format slot 0 of player with gold block named "&6&lŞans Kutusu" with lore "&bŞans Kutusu||300 Bounty" to close then run "sanskutusumarketal %player%"
Kod:
options:
prefix: &8[&3Bounty&8]&l&c
permission: bounty.perm
deathbounty: 8
killbounty: 12
on death:
victim is a player
attacker is a player
remove {@deathbounty} from {bounty.%victim%}
add {@killbounty} to {bounty.%attacker%}
send "{@prefix} Oldugun Icin {@deathbounty} Puan Kaybettin!" to victim
send "{@prefix} Oyuncu Oldurdugun Icin {@killbounty} Puan Caldin!" to attacker
on join:
add 0 to {bounty.%player%}
on chat:
cancel event
loop all players:
if loop-player has the permission "{@permission}":
send "&8[&e%{bounty.%player%}%&8] %player's display name%&l&f»&r <%{chatrengi.%player%}%>%message%" to loop-player
Şans kutusu aldığımda puanım yetersizse bile -lere düşürüp veriyor.Nasıl düzeltebilirim?