On Commands#Target selectors on the Minecraft wiki, it says that r and rm are used instead of distance in Bedrock Edition to target players by distance. However, that section is incomplete for the Bedrock Edition and does not provide any information about it. It also doesn't explain how c (limit), l and lm (experience level), rx and rxm (x-rotation), and ry and rym (y-rotation) work.
How do these target selectors work in Bedrock Edition?
1 Answer
r and rm stand for "radius maximum" and "radius minimum," respectively. Therefore, the following target selector in Java Edition:
@e[distance = 5..10] is equivalent to the following target selector in Bedrock Edition:
@e[r = 10, rm = 5] Similarly goes:
landlmstand for "experience level maximum" and "experience level minimum," equivalent tolevelin Java Edition;rxandrxmstand for "rotation X maximum" and "rotation X minimum," equivalent tox_rotationin Java Edition. (ryandrymare analogous)
c stands for "count," equivalent to limit in Java Edition.
Here is the complete table from Minecraft Wiki, including some of the parameters you didn't mention:
1
