title @p[tag=cmp] actionbar "barraging"
playsound minecraft:block.stone.break master @p[tag=cmp] ~ ~ ~ 20 2 1
tag @p[tag=cmp] add cm_punch
tag @p[tag=cmp] remove cmp
execute at @p[tag=cm_punch] run tp @e[tag=cm] ^ ^ ^1
execute as @e[tag=cm] run function template:cream/animations/barrage/play
execute as @s at @e[tag=cm] as @e[tag=!cm_punch,distance=..3] at @s run damage @s 4 minecraft:player_attack
execute at @e[tag=cm] run kill @e[distance=..3,type=arrow]
schedule function template:cream/settle 6t