$kill @e[type=#main:not_enemies,tag=$(id)_$(character)_$(type)_attack_hitbox,tag=!stay]

scoreboard players set @s hitbox_x_temp 0
scoreboard players set @s hitbox_y_temp 0
scoreboard players set @s hitbox_z_temp 0

$scoreboard players set @s hitbox_x $(x)
$scoreboard players set @s hitbox_y $(y)
$scoreboard players set @s hitbox_z $(z)
execute if score .grip_extender artifact matches 1.. run scoreboard players add @s hitbox_z 2

$scoreboard players set @s hitbox_center $(x)
scoreboard players operation @s hitbox_center *= .10 number
scoreboard players operation @s hitbox_center /= .2 number
execute store result storage hitbox coordinates.center float 1 run scoreboard players get @s hitbox_center

$execute at @s run function main:mechanics/interaction/weapon/attack/hitbox/math_1 {"id":$(id),"character":$(character),"type":$(type),"mob":"$(mob)","texture":'$(texture)',"gridbox":'$(gridbox)',"positioned":"$(positioned)"}