Wiki ArticleBedrock EditionMinecraft EducationCommands
/querytarget
Gets transform, name, and id information about the given target entity or entities.
On success,command block: comparator output
This feature is exclusive to Bedrock Edition and Minecraft Education.
/querytarget| Visibility | Hidden |
|---|---|
| Permission level required |
|
| Restrictions | None |
Gets transform, name, and id information about the given target entity or entities.
Syntax
querytarget <victim: target>
Arguments
victim: target
- Specifies the targets. Must be one or more player names and/or target selectors separated by spaces (
@eis permitted to target entities other than players).
Result
Fails if ...
On success,command block: comparator output