# ==================================================
# void vb.hoop.shooting()
# ==================================================

scoreboard players set vb.hoop.shooting.__hasFunctionReturned__ tbms.var 0
scoreboard players add vb.hoop.time tbms.var 1
scoreboard players operation vb.hoop.shooting._0._0 tbms.var = vb.hoop.time tbms.var
execute if score vb.hoop.shooting._0._0 tbms.var matches 2 run function vb/hoop/launch_ball
execute if score vb.hoop.shooting._0._0 tbms.var matches 4 as @e[type=zedafox:ball,c=1] run function vb/volley/ball_anim
execute if score vb.hoop.shooting._0._0 tbms.var matches 70 run scoreboard players set vb.hoop.time tbms.var 1
