# ==================================================
# void vb.volley.serve()
# ==================================================

function vb/load/difficulty
execute unless score vb.button.solo tbms.var matches 0 run function vb/load/set_solo
function vb/multiplayer/remove_setting
scoreboard players set vb.multiplayer.shot tbms.var -1
scoreboard players set vb.powerup.hasPowerup1 tbms.var 0
scoreboard players set vb.powerup.hasPowerup2 tbms.var 0
function vb/load/set_threw_false
scoreboard players set vb.volley.served tbms.var 0
scoreboard players set vb.volley.timeMatch tbms.var 0
inputpermission set @a[tag=player] movement enabled
kill @e[type=zedafox:ball]
scoreboard players set vb.volley.scored tbms.var 0
scoreboard players set vb.volley.aboutToMiss tbms.var 0
kill @e[type=sl:marker]
function vb/load/position
execute unless score vb.load.solo tbms.var matches 0 run function vb/load/test
scoreboard players set vb.volley.serve._2 tbms.var 0
execute if score vb.volley.fail tbms.var matches 2 run function vb/zzz_sl_block/19
execute unless score vb.load.solo tbms.var matches 0 if score vb.volley.serve._2 tbms.var matches 0 run function vb/zzz_sl_block/20
execute if score vb.volley.serve._2 tbms.var matches 0 run function vb/zzz_sl_block/21
execute as @e[type=zedafox:ball,c=1] run function vb/zzz_sl_block/22
