EntitiesBedrockEducation
/querytarget
Returns JSON with the position, rotation, unique ID, and name of matched entities — primarily consumed by WebSocket/scripting integrations rather than typed by hand.
Syntax
Parameters
- target
- entity selector
- Entities to query.
Examples
Return your transform and ID as JSON.
Permission level
/querytarget requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.