
# -> Block collision
execute unless block ~ ~ ~ #overly_realistic:rain_passes_through run \
    return run \
        execute if block ~ ~ ~ #campfires[lit=true] run \
            function overly_realistic:players/misc/unlit_torch/torch_get_lit

# -> 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 30.. \
    positioned ^ ^ ^0.1 run \
        function overly_realistic:players/misc/unlit_torch/torch_raycast_travel
