execute if entity @e[tag=quest4_dog.ai] run function lbdm:quest4/dog/pathfinding_loop
execute as @e[tag=quest4_fun_phrase,nbt=!{data:{used:1b}},limit=1] at @s if entity @a[distance=..10] run function lbdm:quest4/fun_phrase