
# -> Check for entities
execute at @n[type=!#overly_realistic:cant_be_smitten, distance=..4, tag=!OverlyRealistic.Player.IsDeity] run \
    summon lightning_bolt ~ ~ ~

# -> Check for block collision
execute unless block ~ ~ ~ #air run \
    return run \
        summon lightning_bolt ~ ~ ~

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

# -> Loop
execute unless score #or.Raycast.RayRange OverlyRealistic.General.ArbitraryData matches 200.. \
    positioned ^ ^ ^0.5 run \
        function overly_realistic:general/godhood/power_actions/smite/smite_raycast_travel