execute at @s run summon armor_stand ~ ~15000 ~ {Invisible:1,Rotation:[0F,0F],NoGravity:1b,Passengers:[{id:"minecraft:falling_block",DropItem:0b,Tags:["LanternSand","ReplaceMe"],NoGravity:1b,BlockState:{Name:"minecraft:lantern"},Time:-9999}],Small:1b,Tags:["LanternEventStands","ReplaceMe"],DisabledSlots:4144959}
execute as @s run execute at @s run execute positioned ~ ~15000 ~ run data modify entity @e[limit=1,sort=nearest,type=armor_stand,tag=LanternEventStands,tag=ReplaceMe,distance=..2] Rotation[0] set from entity @s Rotation[0]
execute as @s run execute at @s run execute positioned ~ ~15000 ~ run data modify entity @e[limit=1,sort=nearest,type=armor_stand,tag=LanternEventStands,tag=ReplaceMe,distance=..2] Rotation[1] set from entity @s Rotation[1]

#execute as @s run execute at @s run kill @e[type=falling_block,limit=1,sort=nearest,tag=LanternSand,tag=!ReplaceMe,distance=..2]


#execute at @s run tag @e[type=falling_block,limit=1,sort=nearest,tag=LanternSand,tag=ReplaceMe,distance=..2] remove ReplaceMe
#execute at @s run tag @e[limit=1,sort=nearest,type=armor_stand,tag=LanternEventStands,tag=ReplaceMe,distance=..2] remove ReplaceMe

#execute at @s run tp @s ~ ~-500 ~
#kill @s