if slot 19 of player's current inventory is diamond:
apply strength 2 for 10000 seconds to player
Chcę aby skrypt sprawdzał co znajduje się w slocie 19 i wykrywał czy jest to diament o jakiejś danej nazwie i dodawał np. siłe na 5 sek, lecz gdy daje tego if'a w komende lub samego to cały czas błąd że:
"player's current inventory" to nie przedmiot i już proszę o sprawdzenie wysłanego kody bo mam dość już robienia tego w skripcie z tą dokumentacją, z góry dzięki za odpowiedź!
command /kit wojownik:
permission: kit.gracz
trigger:
message "Wybrales kit <green>wojownik"
give leather helmet of protection 2 named "<green>Hełm wojownika" to the player
give leather chestplate of protection 2 named "<green>Klata wojownika" to the player
give leather leggings of protection 2 named "<green>Spodnie wojownika" to the player
give leather boots of protection 2 named "<green>Buty wojownika" to the player
give stone sword of sharpness 5 named "<green>Miecz wojownika" to the player
command /kit lucznik:
permission: kit.gracz
trigger:
message "Wybrales kit <blue>lucznik"
give leather helmet of protection 1 named "<blue>Hełm lucznika" to the player
give leather chestplate of protection 1 named "<blue>Klata lucznika" to the player
give leather leggings of protection 1 named "<blue>Spodnie lucznika" to the player
give leather boots of protection 1 named "<blue>Buty lucznika" to the player
give bow of infinity 1, power 4 named "<blue>Luk lucznika" to the player
give 1 arrow to the player
command /kit mag:
permission: kit.gracz
trigger:
message "Wybrales kit <violet>mag"
give leather helmet named "<violet>Hełm maga" to the player
give leather chestplate named "<violet>Klata maga" to the player
give leather leggings named "<violet>Spodnie maga" to the player
give leather boots named "<violet>Buty maga" to the player
give wooden sword of sharpness 4 named "<violet>Maczuga maga" to the player
Witam,
Mam taki problem że mam takie same komendy tj.: /kit wojownik, /kit lucznik, /kit mag
i skript wywala mi błąd że jest komenda /kit zdefiniowana wcześniej, i kit wojownik dobrze działa a inne nie.
Jeżeli ktoś mi pomoże był bym wdzięczny