Commands/querytarget

Gets transform, name, and id information about the given target entity or entities.

Arguments

 * Specifies the targets. Must be one or more player names and/or target selectors separated by spaces ( is permitted to target entities other than players).

Result
Fails if ...

On success,command block: comparator output

命令/querytarget