Skocz do zawartości
  • 0

Komenda Po kliknięciu w GUI


PolskiCiastek
 Udostępnij

Pytanie

Witam czy może ktoś pomóc ?

Otóż nie wiem jak zrobić żeby po kliknięciu na dany przedmiot w gui wykonywała się wybrana komenda.

 

co muszę do tego dodać ?

    format slot 10 of player with 1 of 278 named "&8» &6&lDROP" with lore " &8» &4&lKliknij" to be unstealable
 

Odnośnik do komentarza
Udostępnij na innych stronach

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
23 minuty temu, xdzikuu napisał:

*format slot 10 of player with 1 of 278 named "&8» &6&lDROP" with lore " &8» &4&lKliknij" to close then run [execute player command "komenda"]

no działa połowicznie bo kiedy naciskam to otwiera mi się to co chce ale zamyka w ułamku sekundy czy możesz jakoś pomóc ?

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

 

command /pomoc [<text>]:
    trigger:
        open chest with 5 rows named "&6&lcos" to player
        set player's current inventory's slot 0 to emerald named "&eEmerald"
        

on inventory click:
    if inventory name of current inventory of player is "&6cos":
        if player's current inventory's slot slot is paper:
            execute console command [komeda]

Pomogłem? Zostaw Plusika i zaznacz naj odpowiedz c;

Edytowane przez TheAdamos
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
2 minuty temu, TheAdamos napisał:

 

command /pomoc [<text>]:
    trigger:
        open chest with 5 rows named "&6&lcos" to player
        set player's current inventory's slot 0 to emerald named "&eEmerald"
        

on inventory click:
    if inventory name of current inventory of player is "&6cos":
        if player's current inventory's slot slot is paper:
            execute console command [komeda]

nie działa nie wykonuje komendy gdy klikam a ponadto tym kodem można zbugować po przez szybkie naciśnięcie emeralda i q lub wyjście z menu

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Na szybko to takie cos reszte sam

command /Drop [<text>]:
    trigger:
        open chest with 5 rows named "&6&lDrop" to player
        set player's current inventory's slot 0 to emerald named "&e&lDrop" with lore "&6Kliknij"

on inventory click:
    if inventory name of current inventory of player is "&6&lDrop":
        if player's current inventory's slot slot is emerald:
            execute console command "komeda"

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Teraz, TheAdamos napisał:

Na szybko to takie cos reszte sam

command /Drop [<text>]:
    trigger:
        open chest with 5 rows named "&6&lDrop" to player
        set player's current inventory's slot 0 to emerald named "&e&lDrop" with lore "&6Kliknij"

on inventory click:
    if inventory name of current inventory of player is "&6&lDrop":
        if player's current inventory's slot slot is emerald:
            execute console command "komeda"

chodzi o to że ja mam już tylko pozostało mi zrobić że po kliknięciu wykonuje daną komende czyli np /drop lub /efekty

command /opcjem:
    trigger:
        open chest with 6 rows named "&8» &a&lOpcje" to player
        wait 2 ticks
        format slot 18 of player with Gray glass to be unstealable
        format slot 19 of player with Gray glass to be unstealable
        format slot 20 of player with Gray glass to be unstealable
        format slot 21 of player with Gray glass to be unstealable
        format slot 22 of player with Gray glass to be unstealable
        format slot 23 of player with Gray glass to be unstealable
        format slot 24 of player with Gray glass to be unstealable
        format slot 25 of player with Gray glass to be unstealable
        format slot 26 of player with Gray glass to be unstealable
        format slot 27 of player with Gray glass to be unstealable
        format slot 29 of player with Gray glass to be unstealable
        format slot 31 of player with Gray glass to be unstealable
        format slot 33 of player with Gray glass to be unstealable
        format slot 35 of player with Gray glass to be unstealable
        format slot 36 of player with Gray glass to be unstealable
        format slot 37 of player with Gray glass to be unstealable
        format slot 38 of player with Gray glass to be unstealable
        format slot 39 of player with Gray glass to be unstealable
        format slot 40 of player with Gray glass to be unstealable
        format slot 41 of player with Gray glass to be unstealable
        format slot 42 of player with Gray glass to be unstealable
        format slot 43 of player with Gray glass to be unstealable
        format slot 44 of player with Gray glass to be unstealable
        format slot 45 of player with Gray glass to be unstealable
        format slot 46 of player with Gray glass to be unstealable
        format slot 47 of player with Gray glass to be unstealable
        format slot 48 of player with Gray glass to be unstealable
        format slot 49 of player with Gray glass to be unstealable
        format slot 50 of player with Gray glass to be unstealable
        format slot 51 of player with Gray glass to be unstealable
        format slot 52 of player with Gray glass to be unstealable
        format slot 53 of player with Gray glass to be unstealable
        format slot 0 of player with Gray glass to be unstealable
        format slot 1 of player with Gray glass to be unstealable
        format slot 2 of player with Gray glass to be unstealable
        format slot 3 of player with Gray glass to be unstealable
        format slot 4 of player with Gray glass to be unstealable
        format slot 5 of player with Gray glass to be unstealable
        format slot 6 of player with Gray glass to be unstealable
        format slot 7 of player with Gray glass to be unstealable
        format slot 8 of player with Gray glass to be unstealable
        format slot 9 of player with Gray glass to be unstealable
        format slot 17 of player with Gray glass to be unstealable
        format slot 11 of player with Gray glass to be unstealable
        format slot 13 of player with Gray glass to be unstealable
        format slot 15 of player with Gray glass to be unstealable
        if player has permission "itemy.gracz":
            format slot 10 of player with 1 of 278 named "&8» &6&lDROP" with lore " &8» &4&lKliknij"  to close then run [execute player command "/drop"]
            format slot 12 of player with 1 of 395 named "&8» &6&lStatystyki" with lore " &8» &4&lKliknij" to be unstealable
            format slot 14 of player with 1 of 58 named "&8» &6&lCraftingi" with lore " &8» &4&lKliknij" to be unstealable
            format slot 16 of player with 1 of 386 named "&8» &6&lLista Warpow" with lore " &8» &4&lKliknij" to be unstealable
            format slot 28 of player with 1 of 278 named "&8» &6&lBonusowy Drop" with lore " &8» &4&lKliknij" to be unstealable
            format slot 30 of player with 1 of 384 named "&8» &6&lPodreczny enchant" with lore " &8» &4&lKliknij(tylko Vip+)" to be unstealable
            format slot 32 of player with 1 of 322:1 named "&8» &6&lEfekty" with lore " &8» &4&lKliknij" to be unstealable
            format slot 34 of player with 1 of 84 named "&8» &6&lPodreczny Workbench" with lore " &8» &4&lKliknij" to be unstealable
            stop
 

Odnośnik do komentarza
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.

 Udostępnij

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

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