mojira.dev
MC-122881

The new "distance" selector dose not work

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

That will only select entities exactly five blocks away, use distance=..5 for entities five blocks or closer.

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.

ok thanks! that seem dumb and useless then how that is.

BJTMastermind

(Unassigned)

Unconfirmed

Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47a, Minecraft 17w47b, Minecraft 17w48a

Retrieved