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

function vb/volley/init_fail
scoreboard players set vb.volley.foul._0 tbms.var 0
execute if block ~ 30 ~ concrete 1 run function vb/zzz_sl_block/56
execute if score vb.volley.foul._0 tbms.var matches 0 run function vb/zzz_sl_block/57
execute if score vb.volley.fail tbms.var matches 1 as @a[tag=player1] at @s run function vb/volley/in_failure
execute if score vb.volley.fail tbms.var matches 2 as @a[tag=player2] at @s run function vb/volley/in_failure
execute as @a at @s run function vb/zzz_sl_block/58
scoreboard players set vb.volley.failure tbms.var 1
particle zedafox:groundpound ~ 50.5 ~
scoreboard players set vb.volley.foul._7 tbms.var 0
execute if score vb.volley.direction tbms.var matches 0 run function vb/zzz_sl_block/59
execute if score vb.volley.direction tbms.var matches 1 if score vb.volley.foul._7 tbms.var matches 0 run function vb/zzz_sl_block/60
scoreboard players set vb.volley.smashing tbms.var 0
