Skocz do zawartości
  • 0

Gracz po wpisaniu komendy nie teleportuje się w ustalone miejsce.


Pytanie

Witam, jestem nowy w pisaniu skryptów i mam problem z tym jednym xd: link

Wiadomość "TEST!" dostaję ale nie tepa mnie w podane kordy.

Z góry dziękuję za wszelką pomoc.

EDIT: Nie ma żadnych błędów w konsoli.

Poprawiam tytuł //Ewald

Edytowane przez Ewald
Brak informacji o braku błędów w konsoli
Odnośnik do komentarza
https://skript.pl/temat/20766-gracz-po-wpisaniu-komendy-nie-teleportuje-si%C4%99-w-ustalone-miejsce/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 1

Skrypty wstawiamy na code.skript.pl

options:
# ---------BLU OBOZ----------
    xBLU: -19901
    yBLU: 65
    zBLU: -50053
 
command /bluhome [<player>]:
    trigger:
        execute console command "tp %arg 1% {@xBLU} {@yBLU} {@zBLU}"
        send "&eTEST!" to arg 1
 
command /KT:
    trigger:
        open chest with 5 rows named "&a&lOdkryte &7&lKamienie &b&lTeleportu" to player
        wait 1 tick
        format slot 0 of player with black glass named "&f" to be unstealable
        loop 44 times:
            loop-number is not 22
            format slot loop-number of player with black glass named "&f" to be unstealable
            format slot 22 of player with bed named "&b&lBLU" to close then run "bluhome %player%"

masz chodź polecam takie coś

command /ustawbluoboz:
	trigger:
		set {ObozBLU} to location of player
		send "&cUstawiles oboz BLU"
 
command /bluhome [<player>]:
    trigger:
        teleport arg 1 to {ObozBLU}
        send "&eTEST!" to arg 1
 
command /KT:
    trigger:
        open chest with 5 rows named "&a&lOdkryte &7&lKamienie &b&lTeleportu" to player
        wait 1 tick
        format slot 0 of player with black glass named "&f" to be unstealable
        loop 44 times:
            loop-number is not 22
            format slot loop-number of player with black glass named "&f" to be unstealable
            format slot 22 of player with bed named "&b&lBLU" to close then run "bluhome %player%"

 

Edytowane przez SupcioXD
Odnośnik do komentarza
https://skript.pl/temat/20766-gracz-po-wpisaniu-komendy-nie-teleportuje-si%C4%99-w-ustalone-miejsce/#findComment-141116
Udostępnij na innych stronach

  • 0
47 minut temu, SupcioXD napisał:

Skrypty wstawiamy na code.skript.pl


options:
# ---------BLU OBOZ----------
    xBLU: -19901
    yBLU: 65
    zBLU: -50053
 
command /bluhome [<player>]:
    trigger:
        execute console command "tp %arg 1% {@xBLU} {@yBLU} {@zBLU}"
        send "&eTEST!" to arg 1
 
command /KT:
    trigger:
        open chest with 5 rows named "&a&lOdkryte &7&lKamienie &b&lTeleportu" to player
        wait 1 tick
        format slot 0 of player with black glass named "&f" to be unstealable
        loop 44 times:
            loop-number is not 22
            format slot loop-number of player with black glass named "&f" to be unstealable
            format slot 22 of player with bed named "&b&lBLU" to close then run "bluhome %player%"

masz chodź polecam takie coś


command /ustawbluoboz:
	trigger:
		set {ObozBLU} to location of player
		send "&cUstawiles oboz BLU"
 
command /bluhome [<player>]:
    trigger:
        teleport arg 1 to {ObozBLU}
        send "&eTEST!" to arg 1
 
command /KT:
    trigger:
        open chest with 5 rows named "&a&lOdkryte &7&lKamienie &b&lTeleportu" to player
        wait 1 tick
        format slot 0 of player with black glass named "&f" to be unstealable
        loop 44 times:
            loop-number is not 22
            format slot loop-number of player with black glass named "&f" to be unstealable
            format slot 22 of player with bed named "&b&lBLU" to close then run "bluhome %player%"

 

Wielkie dzięki, działa :D

Odnośnik do komentarza
https://skript.pl/temat/20766-gracz-po-wpisaniu-komendy-nie-teleportuje-si%C4%99-w-ustalone-miejsce/#findComment-141126
Udostępnij na innych stronach

  • 0
options:
# ---------BLU OBOZ----------
	xBLU: -19901
	yBLU: 65
	zBLU: -50053

command /bluhome:
    trigger:
        teleport player to (location at {@xBLU}, {@yBLU}, {@zBLU} in world)
        send "&eTEST!" to player

command /KT:
    trigger:
        open chest with 5 rows named "&a&lOdkryte &7&lKamienie &b&lTeleportu" to player
        wait 5 tick
        loop 44 times:
            loop-number is not 22:
                format slot (loop-number - 1) of player with black glass named "&f" to be unstealable
                format slot 22 of player with bed named "&b&lBLU" to close then run [player command "bluhome"]
  • Usunąłem zbędny argument.
  • Poprawiłem teleportacje.
  • Poprawiłem GUI.
  • Dodałem "LAMBA" w GUI zamiast zwykłe wykonywanie komendy.
Edytowane przez esej
Odnośnik do komentarza
https://skript.pl/temat/20766-gracz-po-wpisaniu-komendy-nie-teleportuje-si%C4%99-w-ustalone-miejsce/#findComment-141158
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ę...