How do target selectors work in Bedrock Edition?

Solution 1:

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:

  • l and lm stand for "experience level maximum" and "experience level minimum," equivalent to level in Java Edition;

  • rx and rxm stand for "rotation X maximum" and "rotation X minimum," equivalent to x_rotation in Java Edition. (ry and rym are 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:

enter image description here