
# -> Check for block collision
execute unless block ~ ~ ~ air run \
    return run \
        execute if block ~ ~ ~ #overly_realistic:stone_hatchet_log_strippable run \
            function overly_realistic:players/stone_hatchet_strip/strip_log_attempt

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

# -> Loop
execute unless score #or.Raycast.RayRange OverlyRealistic.General.ArbitraryData >= #or.Raycast.RayRangeMax OverlyRealistic.General.ArbitraryData \
    positioned ^ ^ ^0.1 run \
        function overly_realistic:players/stone_hatchet_strip/hatchet_raycast_travel
