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
@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.
I know that i have to use number, i wrote "x" as a variable