pls help
Code:
on right click:
if player's tool is a stone hoe:
set {m1garrand.%uuid of player%} to held item
if {bulletsM1.%uuid of player%} is not set:
set {bulletsM1.%uuid of player%} to 5
if {bulletsM1.%uuid of player%} > 0:
shoot a snowball from player at speed 2.5
play sound "GLASS_BREAK" with volume 100 with pitch 1 at player
remove 1 from {bulletsM1.%uuid of player%}
if {bulletsM1.%uuid of player%} is 0:
loop 5 times:
set {reloading.%uuid of player%} to true
if {bulletsM1.%uuid of player%} < 5:
wait 1.5 second
add 1 to {bulletsM1.%uuid of player%}
if {bulletsM1.%uuid of player%} > 5:
set {bulletsM1.%uuid of player%} to 5
set {reloading.%uuid of player%} to false
broadcast "false"