# $kill @e[type=item_display,tag=knight_sword_id$(id)]
# $kill @e[type=item_display,tag=knight_sword_marker_id$(id)]
# $summon item_display ~ ~2000 ~ {teleport_duration:1,Tags:["knight_sword","particle","knight_sword_id$(id)"],item:{id:"minecraft:warped_fungus_on_a_stick",count:1b,components:{custom_model_data:10008}},transformation:[-1.4142f,1.4142f,-0.0000f,0.0000f,0.0000f,0.0000f,1.0000f,0.5000f,1.4142f,1.4142f,-0.0000f,0.0000f,0.0000f,0.0000f,0.0000f,1.0000f]}

# $execute at @s positioned ^ ^ ^ rotated ~ 0 anchored eyes run summon marker ^ ^ ^ {Tags:["knight_sword_marker","particle","knight_sword_marker_id$(id)"]}

# $execute at @s positioned ^ ^ ^ rotated ~ 0 anchored eyes as @e[type=item_display,tag=knight_sword_id$(id)] run teleport @s ^ ^ ^ ~ ~
# $execute at @s positioned ^ ^ ^ rotated ~-90 0 anchored eyes as @e[type=marker,tag=knight_sword_marker_id$(id),tag=!particle_sent] run teleport @s ^ ^ ^ ~ ~
# $execute as @e[type=item_display,tag=knight_sword_id$(id),tag=!particle_sent] at @s run scoreboard players set @s particle_lifetime 12
# $execute as @e[type=marker,tag=knight_sword_marker_id$(id),tag=!particle_sent] at @s run scoreboard players set @s particle_lifetime 12
# $execute as @e[type=item_display,tag=knight_sword_id$(id)] at @s run tag @s add particle_sent
# $execute as @e[type=marker,tag=knight_sword_marker_id$(id)] at @s run tag @s add particle_sent