Skip to content

Commands

srnyx edited this page Nov 17, 2025 · 1 revision

Table of contents

Entity Selectors

"Anything" = player, console, command block, etc...

Selector Targets Usable By
!all_players All online AND offline players (anyone that has joined the server) Anything
!online All online players Anything
!offline All offline players Anything
!self Player who ran the command Player
!nearest_player * Closest player (excluding self) Player
!random_player A random player on the server Anything
!entities All entities (including players) Anything
!nearest_entity Closest entity (including players, excluding self) Player
!random_entity * A random entity on the server (including players) Anything

* If ran by console, it will only consider the primary world of the server. This can be changed to consider all worlds if requested.

Clone this wiki locally