
# -> Check for shooting star
execute if entity @n[type=text_display,tag=OverlyRealistic.Celestial.IsShootingStar,distance=..15] run \
    return run \
        function overly_realistic:players/misc/spyglass/shooting_star_check/player_is_looking_at_shooting_star

# -> Debug
#particle flame ~ ~ ~ 0 0 0 0.001 10 force @a

# -> Increment steps
scoreboard players add #or.Raycast.RayRange OverlyRealistic.General.ArbitraryData 1

# -> Recursive loop
execute unless score #or.Raycast.RayRange OverlyRealistic.General.ArbitraryData matches 50.. \
    positioned ^ ^ ^13 run \
        function overly_realistic:players/misc/spyglass/shooting_star_check/shooting_star_raycast_travel
