
# -> Check for campfire
execute if block ~ ~ ~ #campfires[lit=true] run \
    function overly_realistic:general/campfires/campfire_marker_create_advanced

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

# -> Recursive loop
execute unless score #or.Raycast.RayRange OverlyRealistic.General.ArbitraryData >= #or.Raycast.RayRangeMax OverlyRealistic.General.ArbitraryData \
    positioned ^ ^ ^0.1 run \
        function overly_realistic:players/items/flint_and_steel/use_on_campfire/fns_raycast
