execute as @e[r=30,tag=hitboxVictim,scores={parry=0}] at @s run scoreboard players set @e[c=1,tag=attacker,tag=grab:entityA] grab_sensor 1

tp @s[tag=grab:entityA,scores={kbHori=0,kbVerti=0}] @s

execute as @s[tag=guardBreak,tag=grab:entityA] at @s run tag @e[tag=!attacker,c=1,r=30,tag=hitboxVictim,scores={parry=0}] add grab:entityB
execute as @s[tag=!guardBreak,tag=grab:entityA] at @s run tag @e[tag=!attacker,c=1,r=30,tag=hitboxVictim,scores={block=0,parry=0}] add grab:entityB

execute as @s[tag=grab:entityA] at @s run execute as @e[tag=grab:entityB,c=1,tag=hitboxVictim] at @s if score @s grabID = @e[c=1,tag=grab:entityA] grabID run tp @e[c=1,tag=grab:entityB] ~~~

execute as @e[r=30,tag=hitboxVictim] at @s run scoreboard players set @e[c=1,tag=grab:entityB,tag=!grab:entityB] inGrab 1
event entity @s[tag=grab:entityA] rideable
scoreboard players random @s[tag=grab:entityA] grabID -10000 10000
scoreboard players operation @e[c=1,tag=hitboxVictim,tag=grab:entityB] grabID = @e[c=1,tag=attacker,tag=grab:entityA] grabID
tag @s remove grab:entityB
ride @s[tag=!grab:entityA] evict_riders
event entity @s[tag=!grab:entityA] ridedisable

scoreboard players random @s bfRoll 1 20
scoreboard players operation @s bfRoll += @s bf_add
execute as @s[scores={bfRoll=16..}] at @s run scoreboard players add @s damageOutput 10

tag @s[scores={stun=0}] remove KBframes

tag @s remove grab:hit

function attacks/1/2/3/c