Skocz do zawartości
  • 0

Co zrobić?


Michaelek_
 Udostępnij

Pytanie

Witam, napisałem skrypt na randomowe tp po zjedzeniu koxa aczkolwiek nie teleportuje mnie po zjedzeniu, dlaczego?

Cytat

options:
        x-min: -2000
        x-max: 2000
        z-min: -2000
        z-max: 2000
on consume:
        if event-item is enchanted golden apple:
                set {_x} to random integer between {@x-min} and {@x-max}
                set {_y} to 100
                set {_z} to random integer between {@z-min} and {@z-max}
                set {randomtp.god.%player%} to true
                teleport player to {_location}
                send "&3>> &2Przeteleportowano w losowe koordynaty &6(x: %{_X}% | z: %{_z}%)&6."
                stop
on damage:
        if victim is player:
                if {randomtp.god.%victim%} is true:
                cancel event
                delete {randomtp.god.%victim%}
                stop

 

 

Edytowane przez Michaelek_
Odnośnik do komentarza
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
options:
    x-min: -2000
    x-max: 2000
    z-min: -2000
    z-max: 2000
on consume:
    if event-item is enchanted golden apple:
        set {_x} to random integer between {@x-min} and {@x-max}
        set {_y} to 100
        set {_z} to random integer between {@z-min} and {@z-max}
        set {randomtp.god.%player%} to true
        set {_location} to location at {_x}, {_y}, {_z}
        teleport player to {_location}
        send "&3>> &2Przeteleportowano w losowe koordynaty &6(x: %{_X}% | z: %{_z}%)&6."
        stop
on damage:
    if victim is player:
        if {randomtp.god.%victim%} is true:
            cancel event
            delete {randomtp.god.%victim%}
            stop

Liczę na plusik.
Jeśli wszystko działa, prosiłbym abyś zaznaczył moją odpowiedź jako najlepsza odpowiedź.

Edytowane przez Kamill0s
poprawienie tabowania
Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...