Generated Selector
@pExample:
/kill @p/give @p diamondSelector Type
Origin Point (x, y, z)
Volume (dx, dy, dz)
Quick Reference
Selector Types
@p- Nearest player@a- All players@r- Random player@e- All entities@s- Executing entity
Examples
- @a[gamemode=survival]
- @e[type=zombie,limit=10]
- @p[distance=..5]
- @e[type=!player]