#Summon empty Spell
summon marker ~ ~1 ~ {Tags:["spell","init","unspellable"],Duration:7600}
data modify entity @e[limit=1,sort=nearest,tag=spell,tag=init] Tags insert 0 from entity @s SelectedItem.tag.name
data modify entity @e[limit=1,sort=nearest,tag=spell,tag=init] Tags insert 0 from entity @s SelectedItem.tag.element

# Rotate
data modify entity @e[tag=spell,tag=init,limit=1,sort=nearest] Rotation set from entity @s Rotation

#Launch, by Cloud_Wolf
execute as @e[tag=spell,tag=init,sort=nearest,limit=1] at @s run function items:wand/0_cast/launch
