
tag @p[tag=hgp] add roaming
tag @p[tag=hgp] remove hgp
title @p[tag=roaming] actionbar "searching"
execute at @p[tag=roaming] run effect give @e[distance=..60,tag=!roaming] glowing 1 1 true 
effect give @p[tag=roaming] night_vision 1 1 true
execute at @e[type=marker,tag=hgpa] as @e[tag=hg] facing entity @p[tag=roaming] feet run tp @s ~0.5 ~20 ~0
schedule function template:hieraphont_green/hg_cooldown 2s
schedule function template:hieraphont_green/settle 6t