Tools Gaming & Minecraft

Minecraft Target Selector

Build @a @p @r @s @e selectors with distance, name, gamemode, limit, sort, type, scores, level, and team filters, then copy the live string.

Minecraft Target Selector

Comma-separated objective=range pairs, for example kills=10..,deaths=0.

Paste into other BeeForge command tools or command blocks. Empty filters are omitted.

Minecraft Target Selector builds Java Edition selector strings for @a, @p, @r, @s, and @e with the filters you reach for constantly: distance, name, gamemode, limit, sort, type, simple scores, level, and team. Watch the live selector update, then copy it into other commands.

Selectors are powerful and easy to mistype. A missing bracket or a scores object with the wrong braces can fail silently in a long execute chain. This builder only adds filters you fill in, so empty fields stay out of the final string.

Everything runs client-side. Paste the result into BeeForge give, effect, summon, and title tools, or into datapack functions and command blocks on your server.

What Minecraft Target Selector does

Composes a selector base plus optional argument list.

  • Bases: @a, @p, @r, @s, @e
  • distance ranges such as ..10 or 5..20
  • name filter for specific players or named entities
  • gamemode filter for survival, creative, adventure, spectator
  • type filter for @e (auto-prefixes minecraft: when needed)
  • limit and sort (nearest, furthest, random, arbitrary)
  • level ranges and team names
  • simple scores input as objective=range pairs
  • Live selector string and copy

Who Minecraft Target Selector is for

  • Datapack creators writing execute and effect lines
  • Map makers scoping triggers to nearby adventurers
  • Admins building staff commands that only hit survivors in range
  • Teachers explaining selector arguments with live feedback
  • Anyone assembling complex commands without memorizing argument order

How to use Minecraft Target Selector

1. Open Minecraft Target Selector on beeforge.dev.
2. Choose a base selector.
3. Fill only the filters you need; leave the rest blank.
4. For scores, enter comma-separated pairs like kills=10.,deaths=0.
5. Copy the live string into /effect, /give, /tp, or /execute commands.

Features

  • Empty-safe building that omits unused arguments
  • Type normalization for common entity ids
  • Scores helper that wraps pairs in {...}
  • Works alongside other BeeForge Minecraft command tools
  • Related links to summon, give, effect, and color tools

Examples

  • @a[distance=..8,gamemode=survival] for nearby survivors.
  • @e[type=minecraft:zombie,limit=1,sort=nearest] for the closest zombie.
  • @a[team=red,level=10..] for red team members in a level band.
  • @a[scores={kills=5.,deaths=0}] for a simple scoreboard gate.

Tips and limits

  • Argument order in the output is stable for readability; vanilla accepts reordering in most cases.
  • Negated types like !minecraft:player can be typed manually in the type field.
  • Complex NBT, advancements, and predicate filters are out of scope; extend the string by hand when needed.
  • Always test selectors in a creative copy of your map before production events.
  • Remember @s is executor-relative and ignores many multi-target assumptions.

Related tools

FAQ

Why is my selector only @a with no brackets?

Empty filters are omitted on purpose. Add distance, name, or another field to emit @a[...].

How do scores work here?

Enter objective=range pairs separated by commas. The tool wraps them as scores={...} in the selector.

Is selector data uploaded?

No. Building and copy happen in your browser.

Can I embed the tool?

Use the [beeforge_minecraft_target_selector] shortcode on BeeForge WordPress pages after the module is registered.