🏠
Home
🎨
Creative
🧮
Calculation
🖥️
Server
Dashboard

Minecraft Target Selector Editor & Command Generator

Create advanced Minecraft target selectors with our interactive editor. Perfect for command block creators, server administrators, and mapmakers to select entities, players, and locations with precision using @p @a @r @s @e selectors


🎯 Choose Your Target Selector Type

Select the base selector type for your command - each type targets different entities and players

👤

@p

Nearest Player

Selects the nearest player to the command execution position

👥

@a

All Players

Selects all players currently in the world

🎲

@r

Random Player

Selects a random player from all players in the world

🎯

@s

Self/Executor

Refers to the entity that executed the command

🌐

@e

All Entities

Selects all entities (including players, mobs, items)

📚 Target Selector Guide & Best Practices

🎯 Selector Types Explained

@p (Nearest Player): Perfect for single-player targeting, proximity-based commands, and interactive systems
@a (All Players): Ideal for server-wide announcements, global effects, and mass operations
@r (Random Player): Great for games, random events, and surprise mechanics
@s (Self): Essential for command blocks, functions, and context-sensitive commands
@e (All Entities): Powerful for mob management, item handling, and world cleanup

📏 Distance & Range Parameters

Master distance targeting for precise entity selection:

  • distance=..10 - Within 10 blocks (0 to 10)
  • distance=5.. - 5 blocks or further (5 to infinity)
  • distance=5..15 - Between 5 and 15 blocks
  • dx=10,dy=5,dz=10 - Rectangular selection area

🔧 Advanced Filtering

Use advanced parameters for complex selection criteria:

  • Level Ranges: level=10..20 for players level 10-20
  • Rotation: y_rotation=90..180 for direction-based selection
  • NBT Data: nbt={Health:20.0f} for specific entity properties
  • Sorting: sort=nearest,limit=3 for top 3 nearest entities

⚡ Performance Tips

Optimize your selectors for better server performance:

  • Use limit parameter to reduce selection size
  • Specify type when targeting specific entities
  • Use distance ranges to limit search area
  • Avoid complex NBT filters in high-frequency commands