Witam, mógłby mi ktoś dodać, aby gracze mogli się tylko tepać grupowym teleportem, gdy stoją na kamiennej płytce naciskowej? Ale, żeby nie wykluczało losowego teleportu dla guzika na gąbce.
options:
world: world # Ustaw tu owiat
x-max: 1230 # Maxymalne kordy x
x-min: -1230 # Minimalne kordy x
z-max: 1230 # Maxymlane kordy z
z-min: -1230 # Minimalne kordy z
on rightclick on button:
if block behind target block is note block:
set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"
while block under {_loc} is air or lava:
remove 1 from y-coords of {_loc}
block under {_loc} is lava:
set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"
loop players in radius 3 around block behind block:
teleport loop-player to {_loc}
teleport player to {_loc}
Pytanie
Venooski1337 0
Witam, mógłby mi ktoś dodać, aby gracze mogli się tylko tepać grupowym teleportem, gdy stoją na kamiennej płytce naciskowej? Ale, żeby nie wykluczało losowego teleportu dla guzika na gąbce.
options: world: world # Ustaw tu owiat x-max: 1230 # Maxymalne kordy x x-min: -1230 # Minimalne kordy x z-max: 1230 # Maxymlane kordy z z-min: -1230 # Minimalne kordy z on rightclick on button: if block behind target block is note block: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}" while block under {_loc} is air or lava: remove 1 from y-coords of {_loc} block under {_loc} is lava: set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}" loop players in radius 3 around block behind block: teleport loop-player to {_loc} teleport player to {_loc}
Edytowane przez LeKuLaUsuwam formatowanie, wstawiam w code.
Odnośnik do komentarza
https://skript.pl/temat/39668-grupowy-teleport/Udostępnij na innych stronach
0 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.