What I want to make is a skript that every 2k blocks you(and/or your gang) breaks it levels up and gets a +1% sellboost. The problem is I am new to skript and can't get further then counting the blocks broken
My code:
on break:
if tool is a pickaxe:
add 1 to {pickaxe.break.%player%}
add 1 to {blocks.broken.%player%}
else:
add 1 to {blocks.broken.%player%}
command /gang [<text>] [<text>]:
aliases: /g
trigger:
if arg-1 is not set:
make player execute command "/gang info"
if arg 1 is "info":
send "&e-----------"
send "&cPickaxe blocks broken: &4%{pickaxe.break.%player%}%"
send "&cTotal blocks broken: &4%{blocks.broken.%player%}%"
send "&e-----------"
on join:
if {pickaxe.break.%player%} is not set:
set {pickaxe.break.%player%} to 0
My code:
on break:
if tool is a pickaxe:
add 1 to {pickaxe.break.%player%}
add 1 to {blocks.broken.%player%}
else:
add 1 to {blocks.broken.%player%}
command /gang [<text>] [<text>]:
aliases: /g
trigger:
if arg-1 is not set:
make player execute command "/gang info"
if arg 1 is "info":
send "&e-----------"
send "&cPickaxe blocks broken: &4%{pickaxe.break.%player%}%"
send "&cTotal blocks broken: &4%{blocks.broken.%player%}%"
send "&e-----------"
on join:
if {pickaxe.break.%player%} is not set:
set {pickaxe.break.%player%} to 0