Skip to content
SoulFire LogoSoulFire

Get block

GET
/v1/instances/{instance_id}/bots/{bot_id}/live/world/block

Returns the block at a world position, if the chunk is loaded.

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Path Parameters

instance_id*string
Formatuuid
bot_id*string
Formatuuid

Query Parameters

position.x*integer

Block X coordinate. East is positive.

Formatint32
position.y*integer

Block Y coordinate. Vertical axis.

Formatint32
position.z*integer

Block Z coordinate. South is positive.

Formatint32
position.dimension?string

Namespaced dimension id. If empty, APIs use the bot's current dimension.

Response Body

Successful response.

application/json
  1. response
loaded*boolean

True 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.

Example Request
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'
Example Response
{
  "loaded": true,
  "block": {
    "position": {
      "x": 0,
      "y": 0,
      "z": 0,
      "dimension": "string"
    },
    "blockId": "string",
    "properties": {
      "property1": "string",
      "property2": "string"
    }
  }
}

Was this page helpful?