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%"')
Pytanie
Gość Usunięty#12994
Tak jak w tytule:
Skrypt:
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
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ą.