Hello everyone! I need a little help with something. It should be a fast easy problem. I want to be able to see how many blocks have been mined with each pickaxe. When i mine a block, it would add +1 to a variable, and then update the name of the players tool to the amount of blocks mined. Does that make sense? This is the code i have so far. I get no errors. Just wont add +1
Thanks!
~Matt
Thanks!
~Matt
Code:
on break:
if name of player's held item contains "&8[&b&lStarter Pickaxe&8]":
set {_spawnerpick} to uncoloured name of player's tool
set {_spawnerpick} to ({_spawnerpick} parsed as number) + 1
set name of player's tool to "&8[&b&lStarter Pickaxe&8] &8[&a&l%{_spawnerpick}%&8]"