# ==================================================
# int vb.volley.tpDistance()
# ==================================================

scoreboard players add vb.volley.count tbms.var 1
tp @s ^ ^ ^1 facing @e[tag=trainer,c=1]
scoreboard players set vb.volley.tpDistance._0 tbms.var 0
execute if entity @e[tag=trainer,r=1] run function vb/zzz_sl_block/4
execute if score vb.volley.tpDistance._0 tbms.var matches 0 run function vb/volley/tp_distance
