Commands/testfor

Counts entities (players, mobs, items, etc.) matching specified conditions.

Arguments

 * Specifies the entities to test.

Examples

 * To test if Alice is online:
 * To count the number of players in survival mode within a 3-block radius of (0,64,0):
 * To count the number of zombies within a 20-block radius of (0,64,0):

History
Befehl/testfor 命令/testfor