When including the distance selector in for a target the distance fails the whole command. example: "/execute if entity @a[distance=5] run say hi" this should say hi to anyone with in 5 blocks of the command block but nothing happens.
Linked issues
Comments 4
I just test the ..5 it works but what i put up before is still true as even when i went exactly 5 blocks away it did not trigger
If you just walked there, chances are you still weren't exactly five blocks away.
It won't count if you're 4.76 blocks away. It won't count 5.00014159.
You have to be 5.0000000000000 blocks away, exactly.
That will only select entities exactly five blocks away, use
distance=..5
for entities five blocks or closer.