This feature is exclusive to Bedrock Edition and Minecraft Education.
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 (
@e
is permitted to target entities other than players).
Result[]
Fails if ...
On success,command block: comparator output