Skocz do zawartości
  • 0

Proszę o poprawne skryptu


Gość Usunięty#12994

Pytanie

Gość Usunięty#12994

Tak jak w tytule:

Skrypt: 

Spoiler

command /useStatistics [<player>] [<text>] [<number>] [<text>] [<text>] [<text>]:
    executable by: console
    trigger:
        if arg 2 is "water":
            if player-arg's money is greater or equal to arg 3:
                if player-arg can hold 1 sponge:
                    remove arg 3 from player-arg's balance
                    give player-arg POTION with custom nbt "{Potion:""minecraft:water"",CustomPotionColor:%arg 4 parsed as number%}" named "%arg 6%" with lore "&9Woda:&f %arg 5 parsed as number%"
                    sendMessage(player-arg, "buy-item")
                else:
                    sendMessage(player-arg, "no-space")
                    stop
            else:
                sendMessage(player-arg, "no-money")
                stop        
        if arg 2 is "strength":
            if player-arg's money is greater or equal to arg 3:
                if player-arg can hold 1 sponge:
                    remove arg 3 from player-arg's balance
                    give player-arg cookie named "%arg 5%" with lore "&cSila:&f %arg 4%"
                    sendMessage(player-arg, "buy-item")
                else:
                    sendMessage(player-arg, "no-space")
                    stop
            else:
                sendMessage(player-arg, "no-money")
                stop

Błąd:
 

[11:39:52 ERROR]: 'POTION with custom nbt "{Potion:""minecraft:water"",CustomPotionColor:%arg 4 parsed as number%}" named "%arg 6%" with lore "&9Woda:&f %arg 5 parsed as number%"' can't be added to a player because the former is neither an item type, an inventory nor an experience point (srStatistics.sk, line 68: give player-arg POTION with custom nbt "{Potion:""minecraft:water"",CustomPotionColor:%arg 4 parsed as number%}" named "%arg 6%" with lore "&9Woda:&f %arg 5 parsed as number%"')

 

Odnośnik do komentarza
https://skript.pl/temat/35561-prosz%C4%99-o-poprawne-skryptu/
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0
set {_nbt} to "{Potion:""minecraft:water"",CustomPotionColor:%arg 4%}"
set {_item} to 1 of potion with custom nbt tag {_nbt} named arg 6 with lore "&9Woda:&f %arg 5%"

give {_item} to arg 1

Spróbuj tego

Odnośnik do komentarza
https://skript.pl/temat/35561-prosz%C4%99-o-poprawne-skryptu/#findComment-228422
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.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...