Skocz do zawartości
  • 0

pytanie o gui


hyhy123455

Pytanie

bo w moim skypcie jest duzo gui i do wyświetlania craftingow i chiałem zrobić funkcje ktora robi mi template menu


 image.png

cos tego typu i ze jest funkacja np Crafting_template i puzniej moge dodac itemy tam gdzie białe szkło i pomaranczowe set slotem Próbowałem zrobic sam ale nie działało 

Odnośnik do komentarza
https://skript.pl/temat/55630-pytanie-o-gui/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
function Crafting_template(p: player):
    open chest with 6 rows named "&6Crafting Menu" to {_p}
    set slot 0 of {_p}'s current inventory to white stained glass pane named " "
    set slot 1 of {_p}'s current inventory to white stained glass pane named " "
    set slot 2 of {_p}'s current inventory to white stained glass pane named " "
    set slot 3 of {_p}'s current inventory to white stained glass pane named " "
    set slot 4 of {_p}'s current inventory to white stained glass pane named " "
    set slot 5 of {_p}'s current inventory to white stained glass pane named " "
    set slot 6 of {_p}'s current inventory to orange stained glass pane named " "
    set slot 7 of {_p}'s current inventory to orange stained glass pane named " "
    set slot 8 of {_p}'s current inventory to orange stained glass pane named " "

command /crafting:
    trigger:
        Crafting_template(player)

chyba zadziała

Odnośnik do komentarza
https://skript.pl/temat/55630-pytanie-o-gui/#findComment-334499
Udostępnij na innych stronach

  • 0
    set slot 0 of {_p}'s current inventory to white stained glass pane named " "
    set slot 1 of {_p}'s current inventory to white stained glass pane named " "
    set slot 2 of {_p}'s current inventory to white stained glass pane named " "
    set slot 3 of {_p}'s current inventory to white stained glass pane named " "
    set slot 4 of {_p}'s current inventory to white stained glass pane named " "
    set slot 5 of {_p}'s current inventory to white stained glass pane named " "
    set slot 6 of {_p}'s current inventory to orange stained glass pane named " "
    set slot 7 of {_p}'s current inventory to orange stained glass pane named " "
    set slot 8 of {_p}'s current inventory to orange stained glass pane named " "

ugh

set slot (integers between 0 and 8 ) of {_p}'s current inventory to orange stained glass pane named " "  

w 1 linijce to mozna

Odnośnik do komentarza
https://skript.pl/temat/55630-pytanie-o-gui/#findComment-334500
Udostępnij na innych stronach

  • 0
3 minuty temu, Fendi napisał:
    set slot 0 of {_p}'s current inventory to white stained glass pane named " "
    set slot 1 of {_p}'s current inventory to white stained glass pane named " "
    set slot 2 of {_p}'s current inventory to white stained glass pane named " "
    set slot 3 of {_p}'s current inventory to white stained glass pane named " "
    set slot 4 of {_p}'s current inventory to white stained glass pane named " "
    set slot 5 of {_p}'s current inventory to white stained glass pane named " "
    set slot 6 of {_p}'s current inventory to orange stained glass pane named " "
    set slot 7 of {_p}'s current inventory to orange stained glass pane named " "
    set slot 8 of {_p}'s current inventory to orange stained glass pane named " "

ugh

set slot (integers between 0 and 8 ) of {_p}'s current inventory to orange stained glass pane named " "  

w 1 linijce to mozna

tylko ze to wiem ze tak moge zrobic ale jak chce potem dodac itemek to bez robienia osobnej funkci . funcka ma słuzyc jako template

 

Odnośnik do komentarza
https://skript.pl/temat/55630-pytanie-o-gui/#findComment-334501
Udostępnij na innych stronach

  • 0
26 minut temu, hyhy123455 napisał:

tylko ze to wiem ze tak moge zrobic ale jak chce potem dodac itemek to bez robienia osobnej funkci . funcka ma słuzyc jako template

 

dobra walic zrobiłem se customowymi texturami

Odnośnik do komentarza
https://skript.pl/temat/55630-pytanie-o-gui/#findComment-334502
Udostępnij na innych stronach

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ą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...