Witam, generalnie kilku z was polecało mi używać "nowej" metody, bo kierowałem się ta starą jesli chodzi o gui. Co prawda ta nowsza jest lepsza, krótsza itd, aczkolwiek wyskakuje mi spam w consoli takiego czegoś
[Skript] In 1.13+ you cannot get the title name of an inventory outside of an InventoryClickEvent, Only if this inventory has an InventoryHolder may it be used in this state.
command /cuboid:
trigger:
wait 1 tick
open chest with 5 rows named "&6&lKiroksiewicz &fDzialka" to player
loop 5*9 times:
if ((loop-number)-1) is divisible by 2:
set player's current inventory's slot ((loop-number)-1) to orange glass pane named ""
else:
set player's current inventory's slot ((loop-number)-1) to gray glass pane named ""
set player's current inventory's slot 22 to (note block) named "&fStworz swoja dzialke!" with lore "&7» &7Gracz: &635&fx&635" and "&7» &3VIP: &645&fx&645" and "&7» &bDonejtor: &650&fx&650" and "&7» &6SVIP: &655&fx&655" and "&7» &dSponsor: &670&fx&670" and "" and "&7» &fPamietaj, dzialke mozna miec tylko &c1" and "&7» &fKliknij by zakupic" and "&7» &fKoszt: &6{@kosztdzialki}"
stop
on inventory click:
if inventory name of player's current inventory is "&6&lKiroksiewicz &fDzialka":
if clicked slot is 22:
cancel event
close player's inventory
execute player command "/ps get"
stop
else:
cancel event
stop
Totalnie tego nie rozumiem, wszystkie inne skrypty mam zapisane tak samo, szukałem na necie ale niczego nie widzę, proszę o pomoc.
Pytanie
kiroxtv 3
Witam, generalnie kilku z was polecało mi używać "nowej" metody, bo kierowałem się ta starą jesli chodzi o gui. Co prawda ta nowsza jest lepsza, krótsza itd, aczkolwiek wyskakuje mi spam w consoli takiego czegoś
[Skript] In 1.13+ you cannot get the title name of an inventory outside of an InventoryClickEvent, Only if this inventory has an InventoryHolder may it be used in this state.
command /cuboid: trigger: wait 1 tick open chest with 5 rows named "&6&lKiroksiewicz &fDzialka" to player loop 5*9 times: if ((loop-number)-1) is divisible by 2: set player's current inventory's slot ((loop-number)-1) to orange glass pane named "" else: set player's current inventory's slot ((loop-number)-1) to gray glass pane named "" set player's current inventory's slot 22 to (note block) named "&fStworz swoja dzialke!" with lore "&7» &7Gracz: &635&fx&635" and "&7» &3VIP: &645&fx&645" and "&7» &bDonejtor: &650&fx&650" and "&7» &6SVIP: &655&fx&655" and "&7» &dSponsor: &670&fx&670" and "" and "&7» &fPamietaj, dzialke mozna miec tylko &c1" and "&7» &fKliknij by zakupic" and "&7» &fKoszt: &6{@kosztdzialki}" stop on inventory click: if inventory name of player's current inventory is "&6&lKiroksiewicz &fDzialka": if clicked slot is 22: cancel event close player's inventory execute player command "/ps get" stop else: cancel event stopTotalnie tego nie rozumiem, wszystkie inne skrypty mam zapisane tak samo, szukałem na necie ale niczego nie widzę, proszę o pomoc.
Edytowane przez kiroxtvOdnośnik do komentarza
https://skript.pl/temat/36035-problem-z-inventoryclickevent/Udostępnij na innych stronach
9 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
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ą.