Witam,
Posiadam mały bład, którego nie wiem jak rozwiązać.
command /shop:
aliases: sklep, sklepik
trigger:
open chest with 6 rows named "&8Wybierz kategorię" to player
set {_x} to 0
loop 60 times:
set slot {_x} of player's current inventory to 1 of gray window glass named " "
add 1 to {_x}
set slot 11 of player's current inventory to 1 of gold hoe named "&7Rolnictwo"
set slot 12 of player's current inventory to 1 of diamond pickaxe named "&7Górnictwo"
set slot 13 of player's current inventory to 1 of iron sword named "&7Walka"
set slot 14 of player's current inventory to 1 of oak log named "&7Drewno"
set slot 15 of player's current inventory to 1 of fishing rod named "&7Łowienie"
set slot 16 of player's current inventory to 1 of enchantment table named "&7Inne"
set slot 17 of player's current inventory to 1 of wooden door named "&7Obróbka Drewna"
set slot 18 of player's current inventory to 1 of stone brick named "&7Skały i Cegły"
set slot 19 of player's current inventory to 1 of peony named "&7Przyroda"
set slot 20 of player's current inventory to 1 of white wool named "&7Wełna"
set slot 21 of player's current inventory to 1 of redstone named "&7RedStone"
set slot 22 of player's current inventory to 1 of 5860 named "&7PokeBalle"
set slot 23 of player's current inventory to 1 of 166 named "&cINNE ITEMY Z MODÓW"
set slot 24 of player's current inventory to 1 of 166 named "&cINNE ITEMY Z MODÓW"
set slot 53 of player's current inventory to 1 of arrow named "&2W&ayjdź"
set slot 45 of player's current inventory to 1 of ("%player%" parsed as offline player)'s skull named "&2S&atan konta&8: &c%player's balance%"
on inventory click:
if inventory name of player's current inventory is "&8Wybierz kategorię":
cancel event
if clicked slot is 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24:
set {_r} to name of clicked item
send "%name of clicked item%"
send "%{_r}%"
execute console command "shopSELECT %player% %{_r}%"
else if clicked slot is 53:
close player's inventory
(prosze nie pisać ,że jest brzydkie, niepoukładane itp. Ma to po prostu działać i działa) Mam tu taki sktypt, jak można zauważyć jest to zwykłe gui. i mam problem dokładnie z
set {_r} to name of clicked item
działa to, ale tylko na niektóre bloki. Jeżeli kliknę na np. diax kilof wtedy send "%{_r}%" wyświetli mi &7Górnictwo, ale jeżeli klinkę np. na oak log wtedy wyświetli mi <none>. Ktoś może wie czym to jest spowodowane ,że na niektóre działa a na niektóre nie?
Pytanie
PolsatGraniePL 117
Witam,
Posiadam mały bład, którego nie wiem jak rozwiązać.
command /shop: aliases: sklep, sklepik trigger: open chest with 6 rows named "&8Wybierz kategorię" to player set {_x} to 0 loop 60 times: set slot {_x} of player's current inventory to 1 of gray window glass named " " add 1 to {_x} set slot 11 of player's current inventory to 1 of gold hoe named "&7Rolnictwo" set slot 12 of player's current inventory to 1 of diamond pickaxe named "&7Górnictwo" set slot 13 of player's current inventory to 1 of iron sword named "&7Walka" set slot 14 of player's current inventory to 1 of oak log named "&7Drewno" set slot 15 of player's current inventory to 1 of fishing rod named "&7Łowienie" set slot 16 of player's current inventory to 1 of enchantment table named "&7Inne" set slot 17 of player's current inventory to 1 of wooden door named "&7Obróbka Drewna" set slot 18 of player's current inventory to 1 of stone brick named "&7Skały i Cegły" set slot 19 of player's current inventory to 1 of peony named "&7Przyroda" set slot 20 of player's current inventory to 1 of white wool named "&7Wełna" set slot 21 of player's current inventory to 1 of redstone named "&7RedStone" set slot 22 of player's current inventory to 1 of 5860 named "&7PokeBalle" set slot 23 of player's current inventory to 1 of 166 named "&cINNE ITEMY Z MODÓW" set slot 24 of player's current inventory to 1 of 166 named "&cINNE ITEMY Z MODÓW" set slot 53 of player's current inventory to 1 of arrow named "&2W&ayjdź" set slot 45 of player's current inventory to 1 of ("%player%" parsed as offline player)'s skull named "&2S&atan konta&8: &c%player's balance%" on inventory click: if inventory name of player's current inventory is "&8Wybierz kategorię": cancel event if clicked slot is 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24: set {_r} to name of clicked item send "%name of clicked item%" send "%{_r}%" execute console command "shopSELECT %player% %{_r}%" else if clicked slot is 53: close player's inventory
(prosze nie pisać ,że jest brzydkie, niepoukładane itp. Ma to po prostu działać i działa) Mam tu taki sktypt, jak można zauważyć jest to zwykłe gui. i mam problem dokładnie z
set {_r} to name of clicked item
działa to, ale tylko na niektóre bloki. Jeżeli kliknę na np. diax kilof wtedy send "%{_r}%" wyświetli mi &7Górnictwo, ale jeżeli klinkę np. na oak log wtedy wyświetli mi <none>. Ktoś może wie czym to jest spowodowane ,że na niektóre działa a na niektóre nie?
Odnośnik do komentarza
Udostępnij na innych stronach
4 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ą.