data merge entity @s {Tags:["jjc_vengeful_spirit"],teleport_duration:1,interpolation_duration:1,item:{id:"minecraft:skeleton_skull",count:1},transformation:{right_rotation:[0f,1f,0f,0f],left_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[1f,1f,1f]},brightness:{block:15,sky:15}}
data modify entity @s Rotation set from entity @p[scores={jjc_soul_nail=..5},advancements={colosseum_of_fools:item/soul_nail=false}] Rotation
data modify entity @s item.components."minecraft:custom_data".data.damage set from entity @p[scores={jjc_soul_nail=..5},advancements={colosseum_of_fools:item/soul_nail=false}] SelectedItem.components."minecraft:enchantments".levels."minecraft:sharpness"
data modify entity @s item.components."minecraft:custom_data".data.UUID set from entity @p[scores={jjc_soul_nail=..5},advancements={colosseum_of_fools:item/soul_nail=false}] UUID
execute store result score @s jjc_x1 run data get entity @s Pos[0] 10000
execute store result score @s jjc_y1 run data get entity @s Pos[1] 10000
execute store result score @s jjc_z1 run data get entity @s Pos[2] 10000
execute positioned ^ ^ ^0.015 summon arrow run function colosseum_of_fools:player/item/soul_nail/vengeful_spirit/arrow
playsound entity.wither.shoot player @a ~ ~ ~ 1 2
schedule function colosseum_of_fools:player/item/soul_nail/vengeful_spirit/tick 1t replace
execute positioned ~ ~-0.5 ~ run function colosseum_of_fools:player/item/soul_nail/vengeful_spirit/2