## Check this position
# This function splits off into more, checking a total area of 3x3x3
execute align xyz positioned ~0.5 ~ ~0.5 run function vb:place_custom_block/raycast_check_y

## Decrement range
scoreboard players remove @s vb.raycast 1

## Continue cast if range remains
execute if score @s vb.raycast matches 1.. positioned ^ ^ ^1 run function vb:place_custom_block/raycast