NEWUse coupon code SMX20 to get 20% OFF your first billing cycle on any game server or VPS!Explore Store

Target Selector Generator

Build @a, @e, @p selectors with filters and see the result.

Selector

Area (optional)

Result

Selector
@e[type=zombie,distance=..10,limit=1,sort=nearest]

Selects all entities of type zombie, within distance ..10, limited to 1, sorted nearest.

Example
/kill @e[type=zombie,distance=..10,limit=1,sort=nearest]