Skocz do zawartości
  • 0

[PROBLEM] | SKRIPT na przedmiot w ekwipunku/GUI


Pytanie

Witam!
Mam problem, mianowicie napisałem skrypt, ale coś mi nie dziala i nie wiem jak to naprawić oto mój skript:




aliases:
    endzik = 120
on place of endzik:
    wait 1 tick
    if event-block is endzik:
        loop 60 times:
            wait 0.3 second
            add 1 to {Times::%event-block%}
            set block {Times::%event-block%} above event-block to obsidian
        delete {Times::%event-block%}
on enable:
    register new shaped recipe for endzik named "&cBoy Farmer" using obsidian, obsidian, obsidian, obsidian, golden apple:1, obsidian, obsidian, obsidian, obsidian
command /run [<player>] [<text>]:
    permission: run.command
    trigger:
        if arg 1 is set:
            if arg 2 is set:
                run arg 1 command "%arg 2%" as op
command /crafting [<text>]:
    trigger:
        if arg 1 is not set:
            open chest with 1 rows named "&8** &cCRAFTINGI: &8**" to player
            wait 1 tick
            format slot 2 of player with 1 of end stone named "&2&lCrafting &6&lStoniarki" to run "run %player% /crafting Stoniarka"
            format slot 6 of player with 1 of endzik named "&2&lCrafting &6&lBoyFarmera" to run "run %player% /crafting BoyFarmer"
            format slot 4 of player with 1 of red sand named "&2&lCrafting &6&lSandFarmera" to run "run %player% /crafting SandFarmer"
        if arg 1 is "stoniarka":
            open chest with 3 rows named "&8** &cSTONIARKA: &8**" to player
            wait 2 tick
            format slot 3 of player with 1 of stone to close
            format slot 4 of player with 1 of stone to close
            format slot 5 of player with 1 of stone to close
            format slot 12 of player with 1 of stone to close
            format slot 13 of player with 1 of piston base to close
            format slot 14 of player with 1 of stone to close
            format slot 21 of player with 1 of stone to close
            format slot 22 of player with 1 of stone to close
            format slot 23 of player with 1 of stone to close
            format slot 15 of player with 1 of end stone named "&6Stoniarka" to close
        if arg 1 is "boyFarmer":
            open chest with 3 rows named "&8** &cBOY FARMER: &8**" to player
            wait 2 tick
            format slot 3 of player with 1 of obsidian to close
            format slot 4 of player with 1 of obsidian to close
            format slot 5 of player with 1 of obsidian to close
            format slot 12 of player with 1 of obsidian to close
            format slot 13 of player with 1 of golden apple:1 to close
            format slot 14 of player with 1 of obsidian to close
            format slot 21 of player with 1 of obsidian to close
            format slot 22 of player with 1 of obsidian to close
            format slot 23 of player with 1 of obsidian to close
            format slot 15 of player with 1 of endzik named "&cBoy Farmer" to close
        if arg 1 is "sandfarmer"
            open chest with 3 rows named "&8** &cSANDFARMER: &8**" to player
            wait 2 tick
            format slot 3 of player with 1 of sand to close
            format slot 4 of player with 1 of sand to close
            format slot 5 of player with 1 of sand to close
            format slot 12 of player with 1 of sand to close
            format slot 13 of player with 1 of golden apple:1 to close
            format slot 14 of player with 1 of sand to close
            format slot 21 of player with 1 of sand to close
            format slot 22 of player with 1 of sand to close
            format slot 23 of player with 1 of sand to close
            format slot 15 of player with 1 of red sand named "&cSandFarmer" to close
            
on eat of golden apple:1:
    wait 1 tick
    remove resistance from player
    remove absorption from player



Błąd który mi wyskakuje:
indentation error: expacted 3 tabs, but found 8 spaces (Login.sk, line 53: if arg 1 is "sandfarmer")

Proszę o pomoc!

Odnośnik do komentarza
https://skript.pl/temat/12888-problem-skript-na-przedmiot-w-ekwipunkugui/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
8 godzin temu, Switsherker napisał:

Linijka 53 powinna mieć 3 taby, bądź 12 spacji.

Zrobiłem tak, ale pojawił mi się nowy błąd:
'if a not type (Login.sk, line 53: if arg 1 is "sandfarmer"')
Wiesz może o co chodzi?

Odnośnik do komentarza
https://skript.pl/temat/12888-problem-skript-na-przedmiot-w-ekwipunkugui/#findComment-89993
Udostępnij na innych stronach

  • 0
12 minut temu, TheMagmusPL napisał:

Zrobiłem tak, ale pojawił mi się nowy błąd:
'if a not type (Login.sk, line 53: if arg 1 is "sandfarmer"')
Wiesz może o co chodzi?

Daj dwukropek na koncu.

Odnośnik do komentarza
https://skript.pl/temat/12888-problem-skript-na-przedmiot-w-ekwipunkugui/#findComment-89995
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ę...