Command blocks:
#1 Repeating, Unconditional, Always Active:
execute as @e[type=minecraft:armor_stand,tag=vspiral] at @s run tp @s ~ ~ ~ ~8.3 ~
#2 Chain, Unconditional, Always Active:
execute as @e[type=minecraft:armor_stand,tag=vspiral] at @s run summon minecraft:armor_stand ^ ^ ^4 {NoGravity:1,Invulnerable:1,Invisible:1,ArmorItems:[{},{},{},{id:"minecraft:command_block",Count:1}],Tags:["vspiral1"],Pose:{Head:[0f,0f,349f]}}
#3 Chain, Unconditional, Always Active:
execute as @e[type=minecraft:armor_stand,tag=vspiral] at @s run summon minecraft:armor_stand ^ ^ ^-4 {NoGravity:1,Invulnerable:1,Invisible:1,ArmorItems:[{},{},{},{id:"minecraft:command_block",Count:1}],Tags:["vspiral1"],Pose:{Head:[0f,0f,349f]}}
#4 Chain, Unconditional, Always Active:
execute as @e[type=minecraft:armor_stand,tag=vspiral] at @s run tp @s ~ ~.1 ~
#5 Chain, Unconditional, Always Active:
execute as @e[type=minecraft:armor_stand,tag=vspiral1] at @s run tp @s ~ ~ ~ facing entity @e[limit=1,type=minecraft:armor_stand,tag=vspiral]
Command to make the spiral:
/execute align xyz run summon minecraft:armor_stand ~.5 ~ ~.5 {NoGravity:1,Tags:[vspiral],Invulnerable:1,Invisible:1,NoGravity:1,ArmorItems:[{},{},{},{id:"minecraft:repeating_command_block",Count:1}]}
Command to stop making the spiral:
/kill @e[type=minecraft:armor_stand,tag=spiral]
Command to change the block/item of the spiral:
/item replace entity @e[type=minecraft:armor_stand,tag=vspiral1] armor.head with sand
Command to destroy the spiral:
kill @e[type=minecraft:armor_stand,tag=vspiral1]