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

# -> 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 2

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