
# -> Create temp entity
#summon marker ~ ~ ~ {Tags:["OverlyRealistic.TempEntity"]}

# -> 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 at @s anchored eyes positioned ^ ^ ^ anchored feet run \
    function overly_realistic:players/misc/campfire/fire_starter_raycast_travel

# -> Remove temp entity
#kill @n[type=marker,tag=OverlyRealistic.TempEntity,x=0]
