Get block
Returns the block at a world position, if the chunk is loaded.
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
instance_id*stringuuidbot_id*stringuuidposition.x*integerBlock X coordinate. East is positive.
int32position.y*integerBlock Y coordinate. Vertical axis.
int32position.z*integerBlock Z coordinate. South is positive.
int32position.dimension?stringNamespaced dimension id. If empty, APIs use the bot's current dimension.
Successful response.
application/json- response
loaded*booleanTrue if the chunk containing the requested position is loaded for this bot. When false, the block field is not populated.
block?|The observed block state. Absent when loaded is false.
curl -X GET 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/live/world/block?position.x=0&position.y=0&position.z=0'{
"loaded": true,
"block": {
"position": {
"x": 0,
"y": 0,
"z": 0,
"dimension": "string"
},
"blockId": "string",
"properties": {
"property1": "string",
"property2": "string"
}
}
}Was this page helpful?
Find blocks POST
Finds blocks of the given ids within a radius of the bot. Results are sorted by ascending distance.
Interact with block POST
Activates a specific block face without assigning placement semantics to the operation. This covers doors, buttons, beds, redstone controls, and modded interactive blocks.
