- Katılım
- 29 Haziran 2017
- Mesajlar
- 35
- Elmaslar
- 1
- Puanlar
- 3.750
- Yaş
- 34
Arkadaşlar böyle bir komut var girildiği zaman adamın seviyesi belirtilenden yüksekse bir takım işlemler gerçekleştiriliyor. Adam 60 level veya üstündeyse adamdan 60 levelı alıp bir item vermesini istiyorum ancak 60 level gitmiyor adamdan komut olarak ne kullanmam lazım level gitmesini sağlamak için?
Kod:
command /gxbxp:
trigger:
set {_xp} to player's level
set {_name} to player
wait 0.2 seconds
if {_xp} is greater or equal to 60:
execute console command "/xp give player -60L"
give player 1 netherrack of unbreaking 1 named "&cGlyxa Bloğu"
send "&f&m+----------------------------------+"
send "&a60 Seviye &ekarşılığında başarıyla &a1 Glyxa Bloğu &esatın aldın!"
send ""
send "&a-60 Seviye&e, &a+1 Glyxa Bloğu."
send "&f&m+----------------------------------+"
play raw sound "mob.villager.yes" at player with pitch 1 volume 1
else if {_xp} is less than 60:
send "&cEn az 60 seviye olmalısın!"
play raw sound "mob.villager.no" at player with pitch 1 volume 1