Skocz do zawartości
  • 0

Drop


xJedynskir
 Udostępnij

Pytanie

Witam mogly ktos pomoc? Potrzebuje ze po kliknieciu w Stone otwiera sie nastepny inventory:

command /vip [<text>]:
    trigger:
        open chest with 3 rows named "&6&lVip" to player
        wait 2 ticks
        format slot 0 of player with black glass to be unstealable
        format slot 1 of player with black glass to be unstealable
        format slot 2 of player with black glass to be unstealable
        format slot 3 of player with black glass to be unstealable
        format slot 4 of player with black glass to be unstealable
        format slot 5 of player with black glass to be unstealable
        format slot 6 of player with black glass to be unstealable
        format slot 7 of player with black glass to be unstealable
        format slot 8 of player with black glass to be unstealable
        format slot 9 of player with black glass to be unstealable
        format slot 10 of player with Stone named "&7&lDrop" with lore "&7Wcisnij aby wyswietlic" to be unstealable
        format slot 18 of player with black glass to be unstealable
        format slot 19 of player with black glass to be unstealable
        format slot 20 of player with black glass to be unstealable
        format slot 21 of player with black glass to be unstealable
        format slot 22 of player with black glass to be unstealable
        format slot 23 of player with black glass to be unstealable
        format slot 24 of player with black glass to be unstealable
        format slot 25 of player with black glass to be unstealable
        format slot 26 of player with black glass to be unstealable
        format slot 17 of player with black glass to be unstealable
on inventory click:
    if inventory name of current inventory of player is "&6&lVip":
        if clicked slot is 10:            
            send "s" to all players       

 

Edytowane przez TakiJakTy
TakiJakTy

Wstawiam w code.

Notatka dodana przez TakiJakTy

Odnośnik do komentarza
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
format slot 10 of player with Stone named "&7&lDrop" with lore "&7Wcisnij aby wyswietlic" to close then run "komenda"

 

I wtedy nie potrzebujesz eventu on inventory click

Edytowane przez TakiJakTy
TakiJakTy

Wstawiam w code.

Notatka dodana przez TakiJakTy

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
2 godziny temu, xJedynskir napisał:

 format slot 17 of player with black glass to be unstealable

Zamiast tego używaj tego;

set player's current inventory's slot [slot] to ..

 

57 minut temu, ignanmagus napisał:

I wtedy nie potrzebujesz eventu on inventory click

Nie polecam tego rozwiązania..

 

Co do problemu..

on inventory click:
	if name of player's current inventory is "&6&lVip":
		cancel event
		if clicked slot is 10:	
			open chest with 3 rows named "sss" to player
			set player's current inventory's slot 0 to diamond

 

Edytowane przez TakiJakTy
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ę...