
execute at @e[tag=AIp] run summon minecraft:armor_stand ^ ^ ^2 {Invisible:1b,CustomName:'sword',CustomNameVisible:0b}
execute at @e[name=sword] run effect give @e[distance=..4] instant_damage 1 1 true
execute as @e[tag=sc_p] run function template:sc_polenarf/animations/sc_blade_shoot/play
schedule function template:kill_armor_stands 10t