Merhaba,
Bu skript forumda biri istemişti onu görüp yaptım, paylaşmak istedim.Üstünüzde olan leveli kaybetmemek için bir chest içine depolayabiliyorsunuz.Chest kullandığınız zaman oradaki leveli size aktarıyor iyi kullanımlar..
Kod:
/saklamakutusu
Kod:
#SaveLevel
command /saklamakutusu:
trigger:
player's inventory does not contain 1 chest named "&cLevel Kutusu [BOŞ]":
give 1 chest named "&cLevel Kutusu [BOŞ]" to player
else:
message "&cEnvanterinizde zaten 1 saklama kutusu bulunuyor ?"
#Use
on rightclick with chest:
name of player's tool contains "[DOLU]":
cancel event
set {_l} to lore of player's tool
replace all "&7Level: &a" with "" in {_l}
set {_l} to {_l} parsed as number
message "&cLevel kutusu kullanıldı.. &7(Level: %{_l}%)"
delete player's tool
loop {_l} times:
wait 1 second
execute console command "/playsound note.pling %player%"
increase player's level by 1
message "&cLevel kutusu kullanıldı.. &7(Level: %loop-number%)"
name of player's tool contains "[BOŞ]":
cancel event
player's level is bigger than 1:
message "&c%player's level% kadar level sakladiniz.."
set lore of player's tool to "&7Level: &a%player's level%"
set name of player's tool to "&aLevel Kutusu [DOLU]"
execute console command "/playsound random.levelup %player%"
set player's level to 0
else:
message "&cLevel saklayabilmek için 1 levelden fazla olmalisiniz.."