#hitbox spawn, teleport to face, distance
$execute at @s positioned ~ ~1.25 ~ run summon block_display ~ ~ ~ {teleport_duration:1,Tags:["$(id)_$(character)_$(type)_projectile_newborn","speed_newborn","projectile"$(tags)],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.5f,-1f,-0.5f],scale:[1f,1f,1f]},block_state:{Name:"minecraft:barrier"},Passengers:[{id:"minecraft:item_display",Tags:["$(id)_$(character)_$(type)_projectile_newborn"$(spin)$(tags),"$(id)_$(character)_$(type)_projectile_particle","projectile_particle"],transformation:{left_rotation:[$(rotation)f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[$(translation)],scale:[$(size)]},item:{id:"minecraft:potion",count:1,components:{"minecraft:potion_contents":{custom_color:16777215}},components:{"minecraft:item_model":"minecraft:$(texture)"}}}]}

$execute at @s positioned ^ ^ ^ rotated $(x) $(y) as @e[type=block_display,tag=$(id)_$(character)_$(type)_projectile_newborn,tag=!$(id)_projectile] run teleport @s ^ ^ ^ $(angle_1) $(angle_2)

$execute as @e[type=item_display,tag=$(id)_$(character)_$(type)_projectile_newborn,tag=billboard] run data merge entity @s {Glowing:1b,billboard:"center",glow_color_override:58879,brightness:{sky:15,block:15}}

# $execute as @s[type=item_display,tag=$(id)_$(character)_$(type)_projectile_newborn,tag=!$(id)_projectile] at @a run rotate @s ~ ~

$execute as @e[type=#main:not_enemies,tag=$(id)_$(character)_$(type)_projectile_newborn] run tag @s add $(id)_$(character)_$(type)_projectile

$execute as @e[type=#main:not_enemies,tag=$(id)_$(character)_$(type)_projectile_newborn] at @s run scoreboard players set @s projectile $(distance)

$execute as @e[type=block_display,tag=$(id)_$(character)_$(type)_projectile_newborn] at @s run scoreboard players set @s pierce $(pierce)

$execute as @e[type=#main:not_enemies,tag=$(id)_$(character)_$(type)_projectile] run tag @s remove $(id)_$(character)_$(type)_projectile_newborn