Trigger if the player is near a datapack block

Hi, I'm working on the mechanics of ward like in dota 2 for my server. I have the following function in player_near_to_ward.mcfunction: > execute if entity @a[distance=..5,team=Blue] run effect give @a[distance=..5] minecraft:glowing 1 1 false which works fine for me if I use it in a command block, but I need it to work in my datapack block as well. The datapack is Bhex's Over-Named Extension Engine. I added the following function to the main.mcfunction file: > execute as @a[distance=..5] at @s run function bone_cb:player_near_to_ward And nothing happens.
Continue to help post