this code
returns these errors:
ive tried so many different phrasings and nothing seems to work. no sure why it says theres no loop that matches.
Code:
every 1 tick:
loop all players:
set {_item} to loop-player's tool
if {_item} is a diamond pickaxe:
if name of {_item} is "&6&lValor Pickaxe":
if line 1 of lore of {_item} is "&bUpgraded":
if player does not have potion haste:
apply haste 2 to loop-player for 9999999 seconds
else:
if player does not have potion haste:
apply haste 1 to loop-player for 9999999 seconds
else:
remove haste from loop-player
else:
remove haste from loop-player
returns these errors:
Code:
[11:23:56+293][Client thread/INFO][Minecraft]: [CHAT] There's no loop that matches 'loop-player does not have potion haste 2' (vpick.sk, line 41: if loop-player does not have potion haste 2:')
[11:23:56+293][Client thread/INFO][Minecraft]: [CHAT] There's no loop that matches 'loop-player does not have potion haste 1' (vpick.sk, line 44: if loop-player does not have potion haste 1:')
[11:23:56+293][Client thread/INFO][Minecraft]: [CHAT] [Skript] Encountered 2 errors while reloading vpick.sk!
ive tried so many different phrasings and nothing seems to work. no sure why it says theres no loop that matches.