mojira.dev
MC-146154

Datatag distance

If "@e/a[distance=x]" is used in any command(execute,tp,etc.), it isn't working any entity/player and any distance

Linked issues

Comments 3

I know that i have to use number, i wrote "x" as a variable

@e[distance=x] will only match entities that are exactly x blocks away from where you executed the command. If you want to match all entites that are up to x blocks away, you need to use @e[distance=..x]. You can also match all entities that are at least x blocks away by using @e[distance=x..] or all entites that are between x and y blocks away by using @e[distance=x..y].

Click here for an explanation on target selectors in the Minecraft wiki.

Sorry, i should search better, thank you.

blockengineer

(Unassigned)

Unconfirmed

Minecraft 1.13.2

Retrieved