#deal dmg
$execute if entity @a[tag=$(character)] as @e[type=#main:enemies,tag=enemy,tag=!$(character)_$(type)_hit] at @s at @n[type=block_display,tag=$(id)_$(character)_$(type)_attack_hitbox] positioned ~-0.5 ~ ~-0.5 as @s[dx=0] run function main:mechanics/interaction/weapon/attack/hit {"character":$(character),"weapon":$(id),"type":$(type),"folder_location":"$(folder_location)"}