Hello everyone! I have a question. How can i get this to level up my pick after i mined 100 blocks? But each time it levels up the pick, the amount of blocks to mine would go up by x5 or something. Im a little confused on how i can do this. If anyone know how to do this, please let me know asap!
Thanks!
~Matt
Code:
Thanks!
~Matt
Code:
Code:
on break:
set {_bar} to progressBar(10, 50, "|", 50)
set line 8 of lore of player's held item to "&c%{_bar}%"
function progressBar(currentValue: number, total: number, barChar: string = "|", barLength: integer = 20) :: string:
loop {_barLength} times:
set {_r} to "%{_r} ? """"%%{_barChar}%"
return ("&a%subtext of {_r} from indices 1 to (({_currentValue} / {_total}) * {_barLength} * (length of {_barChar}))%&c%(subtext of {_r} from indices (({_currentValue} / {_total}) * {_barLength} * (length of {_barChar}))+1 to (length of {_r})) ? """"%")