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

scoreboard players set vb.volley.ballsmash.__hasFunctionReturned__ tbms.var 0
scoreboard players set vb.volley.smashing tbms.var 1
function vb/multiplayer/remove_setting
scoreboard players set vb.multiplayer.shot tbms.var 0
scoreboard players set vb.volley.ballsmash._0._0 tbms.var 0
execute unless score vb.powerup.slowed tbms.var matches 0 run function vb/zzz_sl_block/23
execute if score vb.volley.ballsmash._0._0 tbms.var matches 0 run playanimation @s animation.ball.air4
playanimation @e[type=zedafox:meow_inanimate,tag=player,c=1] animation.meow.jump_shoot4
playsound smash @a
stopsound @a charge
particle zedafox:one_explode_smoke ~ ~4 ~
execute positioned ~ ~ ~ run summon zedafox:ball_trail2
scoreboard players operation vb.volley.ballsmash._0._4 tbms.var = vb.difficulty.difficulty tbms.var
execute if score vb.volley.ballsmash._0._4 tbms.var matches 0 run scoreboard players set vb.volley.fallRange tbms.var 0
execute if score vb.volley.ballsmash._0._4 tbms.var matches 1 run function vb/zzz_sl_block/24
execute if score vb.volley.ballsmash._0._4 tbms.var matches 2 run function vb/zzz_sl_block/25
execute if score vb.volley.ballsmash._0._4 tbms.var matches 3 run function vb/zzz_sl_block/26
