Why is my code allowing the user's pickaxe level to go over 1000? I have looked this up and it seems like I'm doing the right thing.
The goal of this code is that if the player's pickaxe EXP is over 1000 it alerts the player that its overloading and should use it on other "powerups".
code_language.skript:
on mine:
if player's tool is a pickaxe:
if {_exp} > 1001:
message "&cTOOL POWERUP OVERLOADED! &fYou should use your powerup (RIGHT CLICK)."
stop
else:
set {_lore} to lore of player's tool
set {_split::*} to {_lore} split at " "
set {_exp} to uncolored {_split::2} parsed as a number
set {_exp} to {_exp} + 1
set lore of player's tool to "&e&lEXP: &f%{_exp}% &7/1000"
The goal of this code is that if the player's pickaxe EXP is over 1000 it alerts the player that its overloading and should use it on other "powerups".