Distance command and tag command not working [duplicate]
Solution 1:
r
and rm
have now become a range called distance
. For example:
-
@a[distance=..5]
selects people 5 meters or closer -
@a[distance=2..6]
selects people 2 to 6 meters away -
@a[distance=7..]
select people 7 meters or further away
The replacement for testfor
depends on what you were using it for, but the closest equivalent for most cases would be execute if entity
. For example:
execute if entity @a[distance=..3] run say Someone is within 3 blocks!