options: namesword: &e&oMuszyN cooldown: 5 messagecooldown: &8* &2Musisz odczekac &a5 &2sekund. on rightclick holding a diamond sword: if name of player's tool is "{@namesword}": if {cd.%player%} is not set: set {cd.%player%} to true teleport target entity to player apply slowness 10 to the target entity for 5 seconds wait {@cooldown} seconds clear {cd.%player%} else: send "{@messagecooldown}" to player command /dajmiecz: trigger: give diamond sword named "{@namesword}" to player send "&eDostales miecz o nazwie {@namesword}" to player
I czy dało by się zrobić inne opóźnienie niż to wyżej (nie usuwa zmiennej)
Jeszcze 2 pytanie, jak sprawdzić czy patrzymy na gracza lub na moba. Miałem takie cuś if target entity is player or creature: ale nie działało.
Pytanie
xFreku 100
Mam taki kod:
options: namesword: &e&oMuszyN cooldown: 5 messagecooldown: &8* &2Musisz odczekac &a5 &2sekund. on rightclick holding a diamond sword: if name of player's tool is "{@namesword}": if {cd.%player%} is not set: set {cd.%player%} to true teleport target entity to player apply slowness 10 to the target entity for 5 seconds wait {@cooldown} seconds clear {cd.%player%} else: send "{@messagecooldown}" to player command /dajmiecz: trigger: give diamond sword named "{@namesword}" to player send "&eDostales miecz o nazwie {@namesword}" to playerI czy dało by się zrobić inne opóźnienie niż to wyżej (nie usuwa zmiennej)
Jeszcze 2 pytanie, jak sprawdzić czy patrzymy na gracza lub na moba. Miałem takie cuś if target entity is player or creature: ale nie działało.
Odnośnik do komentarza
https://skript.pl/temat/2006-czy-da-si%C4%99-zrobi%C4%87-inny-cooldown/Udostępnij na innych stronach
1 odpowiedź na to pytanie
Rekomendowane odpowiedzi