
# -> Debug particles
#particle small_flame ~ ~ ~ 0 0 0 0.001 1 force @a

# -> Check for of-interest blocks
execute if block ~ ~ ~ #overly_realistic:shears_can_interact_with run \
    return run \
        function overly_realistic:players/items/shears/non_entity_interactions/shears_shear_block

# -> Check for block collision
execute unless block ~ ~ ~ #overly_realistic:spear_can_passthrough run \
    return fail

# -> 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.2 run \
        function overly_realistic:players/items/shears/non_entity_interactions/shears_raycast_travel
