Skocz do zawartości
  • 0

problem z skryptem


WiktorMasteR

Pytanie

dzień dobry mam problem z skryptem autorski może nie widać tego po mojej reputacji  ale jestem mało aktywny na forum wkleję skrypt i gdyby ktoś okazał łaskę mógł by mi poprawić tą części którą wkleję bardzo bym prosił 

on click on sponge:
    if player's tool is sponge named "&6&lLuckyBlock":
        open chest with 3 rows named "&cmenu luckyblock &4(kliknij aby wybrac)" to player
        wait 2 tick
        format slot 0 of player with 1 of glass pane  named " " to be unstealable
        format slot 1 of player with 1 of glass pane  named " " to be unstealable
        format slot 2 of player with 1 of glass pane  named " " to be unstealable
        format slot 3 of player with 1 of glass pane  named " " to be unstealable
        format slot 4 of player with 1 of green wool named "&2Otworz luckyblock" to close then run [make player execute command "/otworz"]
        format slot 5 of player with 1 of glass pane  named " " to be unstealable
        format slot 6 of player with 1 of glass pane  named " " to be unstealable
        format slot 7 of player with 1 of glass pane  named " " to be unstealable
        format slot 8 of player with 1 of glass pane  named " " to be unstealable
        format slot 9 of player with 1 of glass pane  named " " to be unstealable
        format slot 10 of player with 10 of diamond named "&eszansa &730 procent" to be unstealable
        format slot 11 of player with 10 of iron ingot named "&eszansa &735 procent" to be unstealable
        format slot 12 of player with 10 of gold ingot named "&eszansa &735 procent" to be unstealable
        format slot 13 of player with 1 of diamond pickaxe of efficiency 5 and fortune 5 and unbreaking 3 named "&eszansa &720 procent" to be unstealable
        format slot 14 of player with 1 of diamond sword of sharpness 5 and fire aspect 2 named "&eszansa &720 procent" to be unstealable
        format slot 15 of player with 1 of diamond helmet of protection 4 named "&eszansa &710 procent" to be unstealable
        format slot 16 of player with 1 of diamond chestplate of protection 4 named "&eszansa &710 procent" to be unstealable
        format slot 17 of player with 1 of diamond leggings of protection 4 named "&eszansa &710 procent" to be unstealable
        format slot 18 of player with 1 of diamond boots of protection 4 named "&eszansa &710 procent" to be unstealable
        format slot 19 of player with 1 of beacon named "&eszansa &75 procent" to be unstealable 
        format slot 20 of player with 1 of glass pane  named " " to be unstealable
        format slot 21 of player with 1 of glass pane  named " " to be unstealable
        format slot 22 of player with 1 of glass pane  named " " to be unstealable 
        format slot 23 of player with 1 of glass pane  named " " to be unstealable
        format slot 24 of player with 1 of glass pane  named " " to be unstealable
        format slot 25 of player with 1 of glass pane  named " " to be unstealable
        format slot 26 of player with 1 of glass pane  named " " to be unstealable 
        format slot 20 of player with 1 of glass pane  named " " to be unstealable
        format slot 21 of player with 1 of glass pane  named " " to be unstealable
        format slot 22 of player with 1 of glass pane  named " " to be unstealable 
        format slot 23 of player with 1 of glass pane  named " " to be unstealable
        format slot 24 of player with 1 of glass pane  named " " to be unstealable
        format slot 25 of player with 1 of glass pane  named " " to be unstealable
        format slot 26 of player with 1 of glass pane  named "

wszystko jest git skrypt nie wywala błędów tylko gui się nie otwiera

Odnośnik do komentarza
Udostępnij na innych stronach

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Masz tu dobrze napisane:

on right click with sponsge:
    if player is holding a sponge named "nazwa (taka sama)":
        wait 1 tick
        open chest with 2 rows named "nazwa (taka sama)"  to player

(jesli nie ma itemow w gui napisz id a nie nazwe)

 

 

Edytowane przez Nieaktywny
bludis

Wstawiam w code.

Notatka dodana przez bludis

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Aby skrypt poprawnie działał - zamień:

on click on sponge:
    if player's tool is sponge named "&6&lLuckyBlock":
        open chest with 3 rows named "&cmenu luckyblock &4(kliknij aby wybrac)" to player

Na tą cześć kodu:

on right click with sponge:
    if name of player's tool is "&6&lLuckyBlock":
        open chest with 3 rows named "&cmenu luckyblock" to player

Skróciłem Ci nazwę GUI z powodu takiego, że GUI może się nie otwierać, bo jego nazwa jest dłuższa niż 32 znaki/litery.

Edytowane przez LjayPL789
Odnośnik do komentarza
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ę...