
# -> Check for non-air block
execute if block ~ ~ ~ #overly_realistic:can_use_bottle_on run \
    return run \
        function overly_realistic:players/thirst/block_detection/check_detected_block

# -> Debug
#particle flame ~ ~ ~ 0 0 0 0.0001 1 force @a

# -> 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/thirst/block_detection/raycast_travel