Merhaba, skript ile yapdığım guileri oyuncular envanterine alıp yerlere atabiliyorlar bunu nasıl çözebilirim?
Kod:
command /boss [<text>]:
aliases: yaratık, boss, canavar
trigger:
if player is an op:
if arg-1 is not set:
send ""
send "&7/boss ayarla &8[&eDoğacağı noktayı ayarlarsınız.&8]"
send "&7/boss doğur &8[&eDoğum noktasını ayarladıktan sonra doğurur.&8]"
send ""
if arg-1 is "ayarla":
set {bosslokasyon} to location of player
send "{@prefix} &7Boss doğum noktası başarıyla ayarlandı." to player
if arg-1 is "doğur":
spawn zombie at {bosslokasyon}
set name of spawned zombie to "{@boss_isim}"
set maximum health of last spawned zombie to {@boss_can}
set health of last spawned zombie to {@boss_can}
set last spawned zombie's walking speed to 1
set last spawned zombie's tool to diamond sword of sharpness 5
equip last spawned zombie with bedrock
equip last spawned zombie with diamond chestplate of protection 1
equip last spawned zombie with diamond leggings of protection 1
equip last spawned zombie with diamond boots of protection 1
broadcast "{@prefix} &e{@boss_isim} &7isimli boss doğdu. &7Hemen kesmek için &e/warp boss'a &7git!"
set {boss::durum} to true
if arg-1 is not set:
play raw sound "note.pling" at player with pitch 1 volume 10
open virtual chest with size 5 named "&0Boss Menüsü" to player
format gui slot 0 and 1 and 2 and 3 and 5 and 6 and 7 and 8 and 9 and 18 and 27 and 17 and 26 and 35 and 36 and 44 and 37 and 38 and 40 and 42 and 43 of player with black stained glass pane named ""
format gui slot 20 of player with zombie head named "&61. SEVİYE TECRÜBE PUANI" with lore "&r||&7Boss: {@boss_isim}||&7Boss Canı: &e{@boss_can}||&7Gereken boss seviyesi: &e1. seviye &8(&70-500 arası puan&8)||||&e&nDüşen Eşyalar:||||&8(&ex1&8) &7Koruma 1 Kask||&8(&ex1&8) &7Koruma 1 Göğüslük||&8(&ex1&8) &7Koruma 1 Pantolon||&8(&ex1&8) &7Koruma 1 Bot||&8(&ex1&8) &7Keskinlik 1 Kılıç||&r" to nothing
format gui slot 22 of player with zombie head named "&62. SEVİYE TECRÜBE PUANI" with lore "&r||&7Boss: {@boss_isim}||&7Boss Canı: &e{@boss_can}||&7Gereken boss seviyesi: &e2. seviye &8(&7500-1500 arası puan&8)||||&e&nDüşen Eşyalar:||||&8(&ex1&8) &7Koruma 2 Kask||&8(&ex1&8) &7Koruma 2 Göğüslük||&8(&ex1&8) &7Koruma 2 Pantolon||&8(&ex1&8) &7Koruma 2 Bot||&8(&ex1&8) &7Keskinlik 2 Kılıç||&r" to nothing
format gui slot 24 of player with zombie head named "&63. SEVİYE TECRÜBE PUANI" with lore "&r||&7Boss: {@boss_isim}||&7Boss Canı: &e{@boss_can}||&7Gereken boss seviyesi: &e3. seviye &8(&71500+ puan&8)||||&e&nDüşen Eşyalar:||||&8(&ex1&8) &7Koruma 4 Kask||&8(&ex1&8) &7Koruma 3 Göğüslük||&8(&ex1&8) &7Koruma 3 Pantolon||&8(&ex1&8) &7Koruma 3 Bot||&8(&ex1&8) &7Keskinlik 3 Kılıç||&8(&ex1&8) &7Verimlilik 3, Servet 3 ve Kırılmazlık 3 Kazma || &r" to nothing
format gui slot 39 of player with arrow named "&6Geri Dön" with lore "||&7Genel menüye dönebilirsiniz.||||&8▪ &eGitmek için Tıkla!" to close then run player command "menü"
format gui slot 41 of player with barrier named "&6Kapat" with lore "||&7Menüleri kapatabilirsiniz.||||&8▪ &eKapatmak için Tıkla!" to close
format gui slot 4 of player with sunflower named "&6Boss Puanı" with lore "||&7Mob ve oyuncu keserek kazanabilirsiniz.||&7Senin puanın: &e%{boss::puan::%player%}%" to nothing