Siemka wszystkim, otóż mam pewien problem ze skryptem na losowe tp.
Kod tego skryptu to
on first join:
rtp(player)
on respawn:
rtp(player)
on bed enter:
if player has permission "vip.home":
send "&7Twoj dom zostal zapisany"
set {rtp::%Player%} to location at event-block
function rtp(gracz: player):
if {_gracz} has permission "vip.home":
if block at {rtp::_gracz} is bed block:
teleport {_gracz} to {rtp::_gracz}
stop
else:
set {_gtp} to false
loop 1000 times:
set {_x} to random integer between 0 and 1000
set {_y} to random integer between 30 and 250
set {_z} to random integer between 0 and 1000
set {_tp} to location at {_x}, {_y}, {_z}
if block at {_tp} is air:
if block under {_tp} is not air or water or stone or 9 or 8:
teleport {_gracz} to {_tp}
exit loop
else:
set {_gtp} to false
loop 1000 times:
set {_x} to random integer between 0 and 1000
set {_y} to random integer between 30 and 250
set {_z} to random integer between 0 and 1000
set {_tp} to location at {_x}, {_y}, {_z}
if block at {_tp} is air:
if block under {_tp} is not air or water or stone or 9 or 8:
teleport {_gracz} to {_tp}
exit loop
Skrypt nie może pobrać zmiennych {_x} {_y} {_z} to zmiennej {_tp}. Błąd
{_tp} can only be set to one object, not more (rtp.sk, line 22: set {_tp} to location at {_x}, {_y}, {_z}')
Każda odpowiedź jest nagradzana należytym lajkiem.
Pytanie
sfuty 11
Siemka wszystkim, otóż mam pewien problem ze skryptem na losowe tp.
Kod tego skryptu to
on first join: rtp(player) on respawn: rtp(player) on bed enter: if player has permission "vip.home": send "&7Twoj dom zostal zapisany" set {rtp::%Player%} to location at event-block function rtp(gracz: player): if {_gracz} has permission "vip.home": if block at {rtp::_gracz} is bed block: teleport {_gracz} to {rtp::_gracz} stop else: set {_gtp} to false loop 1000 times: set {_x} to random integer between 0 and 1000 set {_y} to random integer between 30 and 250 set {_z} to random integer between 0 and 1000 set {_tp} to location at {_x}, {_y}, {_z} if block at {_tp} is air: if block under {_tp} is not air or water or stone or 9 or 8: teleport {_gracz} to {_tp} exit loop else: set {_gtp} to false loop 1000 times: set {_x} to random integer between 0 and 1000 set {_y} to random integer between 30 and 250 set {_z} to random integer between 0 and 1000 set {_tp} to location at {_x}, {_y}, {_z} if block at {_tp} is air: if block under {_tp} is not air or water or stone or 9 or 8: teleport {_gracz} to {_tp} exit loop
Skrypt nie może pobrać zmiennych {_x} {_y} {_z} to zmiennej {_tp}. Błąd
{_tp} can only be set to one object, not more (rtp.sk, line 22: set {_tp} to location at {_x}, {_y}, {_z}')
Każda odpowiedź jest nagradzana należytym lajkiem.
Pozdrawiam
Odnośnik do komentarza
Udostępnij na innych stronach
1 odpowiedź na to pytanie
Rekomendowane odpowiedzi