
# -> Reset adv trigger
advancement revoke @s only overly_realistic:player/player_place_block

# -> Reset vars
scoreboard players set #or.Raycast.RayRange OverlyRealistic.General.ArbitraryData 0

# -> Get max block placement range
execute store result score #or.Raycast.RayRangeMax OverlyRealistic.General.ArbitraryData run \
    attribute @s minecraft:block_interaction_range get 10

# -> Raycast
execute anchored eyes \
    positioned ^ ^ ^ \
    anchored feet run \
        function overly_realistic:players/block_placement/block_detection/raycast_travel
