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

scoreboard players set vb.volley.lossProbability.__hasFunctionReturned__ tbms.var 0
scoreboard players set vb.volley.lostID tbms.var 100
scoreboard players set vb.volley.lossProbability._0._0 tbms.var 0
execute unless score vb.volley.smashing tbms.var matches 0 run function vb/zzz_sl_block/5
execute if score vb.volley.lossProbability._0._0 tbms.var matches 0 run function vb/zzz_sl_block/6
scoreboard players set vb.volley.lossProbability._0._5 tbms.var 0
execute if score vb.volley.lostID tbms.var matches 0 run function vb/zzz_sl_block/7
execute if score vb.volley.lossProbability._0._5 tbms.var matches 0 run scoreboard players set vb.volley.aboutToMiss tbms.var 0
