Skocz do zawartości
  • 0

GUI


WilczeQ

Pytanie

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 1
Gość ZiemniaQ
set {_} to chest with 1 row named "&6&lZiemniak"
set slot 0 of {_} to potato named "&ePyra" with lore "&fKartofel"
open {_} to player

on inventory click:
    if name of player's currnet inventory is "&6&lZiemniak":
        clicked slot is 0:
            clicked item is a potato:
                cancel event
                give 1000 of potato to player
                


on inventory close:
    set {wait::%player%} to now
on rightclick on chest or enderchest or hopper: #or co tam sobie wymyślisz jeszcze...
    if difference between now and {wait::%player%} < ("1 second" parsed as timespan):
        cancel event

 

Odnośnik do komentarza
https://skript.pl/temat/28604-gui/#findComment-189080
Udostępnij na innych stronach

  • 0

open chest with 3 rows named "cos" to player

      set player's current inventory's slot 0 to emerald named "cos"

 

on inventory click:

         if inventory name of current inventory of player is "&6&lPomoc":
        if player's current inventory's slot slot is paper:

               cancel event

Odnośnik do komentarza
https://skript.pl/temat/28604-gui/#findComment-189089
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ę...