Skocz do zawartości
  • 0

Problem z GUI


PEPQ65

Pytanie

witam, gdy gracz kliknie w gui na itemek przekierowywuje go do drugiego gui lecz moze zabierac itemki oraz nie wykonuje komendy.

Przykladowy kod:

command /test:

    trigger:

        open chest with 1 rows named "&eTEST" to player
        format slot 0 of player with white wool named "&aTest1" to close then run "test1 %player%"



command /test1 [<player>]:

    trigger:

        open chest with 1 rows named "&eTEST1" to player

        format slot 0 of player with blue wool named "&aTest11" to close then run "test2 %player%"

 

Problem polege w tym ze gdy gracz kliknie na niebieska welne moze ten przedmiot wziac oraz nie wykonuje komendy...

 

Odnośnik do komentarza
https://skript.pl/temat/15261-problem-z-gui/
Udostępnij na innych stronach

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /test:
	trigger:
		open chest with 1 rows named "&eTEST" to player
		wait 1 tick
		format slot 0 of player with white wool named "&aTest1" to run "test1 %player%"



command /test1 [<player>]:
	executable by: console
	trigger:
		open chest with 1 rows named "&eTEST1" to player-arg
		wait 1 tick
		format slot 0 of player-arg with blue wool named "&aTest11" to close then run "test2 %player%"

@PEPQ65 Poprawione

 

Edytowane przez Ixidi
Odnośnik do komentarza
https://skript.pl/temat/15261-problem-z-gui/#findComment-105039
Udostępnij na innych stronach

  • 0
command /test:
    trigger:
        open chest with 1 rows named "&eTEST" to player
        format slot 0 of player with 1 of white wool named "&aTest1" to close then run [execute player command "test"]



command /test1 [<player>]:
    trigger:
        open chest with 1 rows named "&eTEST1" to player
        format slot 0 of player with 1 of blue wool named "&aTest11" to close then run [execute player command "test2 %player%"]
Odnośnik do komentarza
https://skript.pl/temat/15261-problem-z-gui/#findComment-105045
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ę...