1. All players within 10 blocks
Target an area reward or message, measured from the command origin
@a[distance=..10]
Selected targets Matching players, distance at most 10 blocks
Target an area reward or message, measured from the command origin
@a[distance=..10]
Selected targets Matching players, distance at most 10 blocks
Select one zombie for an entity command while excluding tagged entities
@e[type=minecraft:zombie,tag=!protected,limit=1,sort=nearest]
Selected targets Matching entities, type minecraft:zombie, without tag protected, select at most 1, nearest first
Select players who reach a score threshold; the points objective must already exist
@a[scores={points=10..}]
Selected targets Matching players, score points = 10..
This is the first example above, run through every edition and version this tool supports. Versions that produce the same result share a row
@a[distance=..10]
@a[r=10]