Skip to tools
Cookie SMP
Discord ↗

COOKIE TOOLS · COMMANDS

Minecraft Target Selector Builder

Create Java target selectors with typed entity, distance, level, score and ordering filters. Validate selector-specific restrictions without querying real players or mobs.

FreeNo sign-upBrowser-basedJava 1.21.11 data

Make it yours

Your result

Loading controls…

How to use

  1. Choose a selector or actual Java name and edit the filter object. Use @e when filtering by entity type; @s cannot use limit or sort.
  2. Copy or download the result. Commands require cheats or operator permission; this website never executes them.

Examples

Pig within 10 blocks, nearest one

@e[type=minecraft:pig,distance=..10,limit=1,sort=nearest]

Score points from 1 through 10

scores={points=1..10}

Supported versions & limitations

Verified Java dataset: 1.21.11

  • The result is syntax, not a list of matching players. Tag and team names use a restricted unquoted character set.
  • Verified codec: Java 1.21.11 only. No Bedrock, Java 26.x or legacy item-NBT support is implied.

Frequently asked questions

Will this command run on Cookie SMP automatically?

No. The tool produces text only. You need permission in the world where you choose to use it.

How is the syntax checked?

Golden fixtures are parsed offline with the official Java 1.21.11 command dispatcher. Syntax validation does not prove that a live world has matching targets or conditions.

Sources

Facts reviewed 2026-10-12. Supported scope and preview limitations are described above.

Enjoy building? Try Cookie SMP.

Survival with friends. Bring your next idea to life.

How to Join ↗