Skocz do zawartości
  • 0

randomowy spawn gianta


krfcm

Pytanie

Witam, mam problem z skryptem na randomowy spawn gianta na mapie co 5 minut. A dokładniej nie wiem jak zrobić żeby respił się w losowych kordynatach na danym obszarze np x 2500 x-2500 z1500 z-2000 i w tej obrębie respił się giant co {czas}.

Odnośnik do komentarza
https://skript.pl/temat/1402-randomowy-spawn-gianta/
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

options:    x-max: 2500    x-min: -2500    z-max: 1500    z-min: -2000    world: world every 5 minutes:    set {_l} to location of spawn of "{@world}"    set y-coords of {_l} to 256    set {_x} to random integer between {@x-min} and {@x-max}    set {_z} to random integer between {@z-min} and {@z-max}    set x-coords of {_l} to {_x}    set z-coords of {_l} to {_z}    while block under block at {_l} is air:        set {_l} to location of block under block at {_l}    spawn giant at {_l}command /forcegiantspawn:    aliases: fgs    trigger:        set {_l} to location of spawn of "{@world}"        set y-coords of {_l} to 256        set {_x} to random integer between {@x-min} and {@x-max}        set {_z} to random integer between {@z-min} and {@z-max}        set x-coords of {_l} to {_x}        set z-coords of {_l} to {_z}        while block under block at {_l} is air:            set {_l} to location of block under block at {_l}        spawn giant at {_l}

W opcjach ustawiasz koordynaty i świat, w którym ma się pojawiać gigant.

Czas możesz zmienić w 8 linijce.

Komenda /fgs spawnuje giganta w momencie jej użycia.

Odnośnik do komentarza
https://skript.pl/temat/1402-randomowy-spawn-gianta/#findComment-11260
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

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