hello guys i have a script but i have a problem let me explain with a example, EXAMPLE he broked 20 coal ore's he can see with action bar till a there everythings good but if he get another PİCKAXE! if he wanna see how much coal he BROKED ! thats showing previous pickaxe values İ DONT WANT THİS help me guys
code is
on break of coal ore:
if tool's name is "&6level &c1":
if tool is diamond pickaxe:
if {Miner:%player%} is set:
add 1 to {coal::%tool%}
set action bar of player to "you breaked &2&l%{kömür::%tool%}% with your level 1 pickaxe"
set {_item} to player's tool
if {coal::%player%} is greater than or equal to 250:
remove {_item} from player
give a diamond pickaxe of efficiency 2 named "" to player
set {coal::%player%} to 0
code is
on break of coal ore:
if tool's name is "&6level &c1":
if tool is diamond pickaxe:
if {Miner:%player%} is set:
add 1 to {coal::%tool%}
set action bar of player to "you breaked &2&l%{kömür::%tool%}% with your level 1 pickaxe"
set {_item} to player's tool
if {coal::%player%} is greater than or equal to 250:
remove {_item} from player
give a diamond pickaxe of efficiency 2 named "" to player
set {coal::%player%} to 0