@Kormic dał mi kiedyś taki skrypt i na skript 2.2 dzialal mam 2.5 i są błędy w 19 i 37 linijce.
Daje kod:
options:
# Zasięg koordynatu X:
min-x: -2500
max-x: 2500
# Zasięg koordynatu Z:
min-z: -2500
max-z: 2500
grupowe-tp-zasieg: 4
grupowe-tp-block: note block
grupowe-tp-wiadomosc: &aZostales przeteleportowany na koordynaty&7: &6%x-loc of loop-player%&e, &6%y-loc of loop-player%&e, &6%z-loc of loop-player%
grupowe-tp-min-graczy: 2
niedozwolone-bloki: water or lava
all-tp-przycisk: stone button
function getRandomTPLocation(p: player) :: location:
set {_loc} to location at (random integer between {@min-x} and {@max-x}), 256, (random integer between {@min-z} and {@max-z}) in {_p}'s world
while block under block at {_loc} is air:
remove 1 from y-loc of {_loc}
if block under {_loc} is {@niedozwolone-bloki}:
set {_loc} to location at (random integer between {@min-x} and {@max-x}), 256, (random integer between {@min-z} and {@max-z}) in {_p}'s world
if y-loc of block under block at {_loc} is less than 1:
set {_loc} to location at (random integer between {@min-x} and {@max-x}), 256, (random integer between {@min-z} and {@max-z}) in {_p}'s world
return {_loc}
on right click:
if "%target block%" doesn't contain "{@all-tp-przycisk}":
stop
if block west or south or east or north target block is {@grupowe-tp-block}:
set {_loc} to getRandomTPLocation(player)
loop 2 times:
set {_p} to random player out of players in radius {@grupowe-tp-zasieg} around block behind target block
teleport {_p} to {_loc}
send "{@grupowe-tp-wiadomosc}" to {_p}
Pytanie
VEROxYT 3
@Kormic dał mi kiedyś taki skrypt i na skript 2.2 dzialal mam 2.5 i są błędy w 19 i 37 linijce.
Daje kod:
options: # Zasięg koordynatu X: min-x: -2500 max-x: 2500 # Zasięg koordynatu Z: min-z: -2500 max-z: 2500 grupowe-tp-zasieg: 4 grupowe-tp-block: note block grupowe-tp-wiadomosc: &aZostales przeteleportowany na koordynaty&7: &6%x-loc of loop-player%&e, &6%y-loc of loop-player%&e, &6%z-loc of loop-player% grupowe-tp-min-graczy: 2 niedozwolone-bloki: water or lava all-tp-przycisk: stone button function getRandomTPLocation(p: player) :: location: set {_loc} to location at (random integer between {@min-x} and {@max-x}), 256, (random integer between {@min-z} and {@max-z}) in {_p}'s world while block under block at {_loc} is air: remove 1 from y-loc of {_loc} if block under {_loc} is {@niedozwolone-bloki}: set {_loc} to location at (random integer between {@min-x} and {@max-x}), 256, (random integer between {@min-z} and {@max-z}) in {_p}'s world if y-loc of block under block at {_loc} is less than 1: set {_loc} to location at (random integer between {@min-x} and {@max-x}), 256, (random integer between {@min-z} and {@max-z}) in {_p}'s world return {_loc} on right click: if "%target block%" doesn't contain "{@all-tp-przycisk}": stop if block west or south or east or north target block is {@grupowe-tp-block}: set {_loc} to getRandomTPLocation(player) loop 2 times: set {_p} to random player out of players in radius {@grupowe-tp-zasieg} around block behind target block teleport {_p} to {_loc} send "{@grupowe-tp-wiadomosc}" to {_p}Odnośnik do komentarza
https://skript.pl/temat/42764-tp-dru%C5%BCyn/Udostępnij na innych stronach
2 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ą.