on break of coal block:
set {coalcan.%targeted block%} to 0
on leftclick on a coal block:
if {coalcan.%targeted block%} is 100:
loop all players:
display "&4&lTaret &3&lPatlatildi!" on bossbar with 100 percent by 3 seconds for loop-player
make a fake explosion at targeted block
set targeted block to air
set {coalcan.%targeted block%} to 0
make player execute command "/win"
else:
add 1 to {coalcan.%targeted block%}
if {coalcan.%targeted block%} is 50:
set targeted block to redstone block
send "&7&l[Taret]: &4&lHata, Hata! Asiri YUKLENDI !!!"
damage player by 3 hearts
wait 3 tick
set targeted block to coal block