Skip to content
SoulFire LogoSoulFire

Wait for chunks

POST
/v1/instances/{instance_id}/bots/{bot_id}/chunks:wait

Waits until every chunk in a square radius around the bot 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

Request Body

application/json
  1. body
radiusChunks?integer

Chebyshev radius around the bot's current chunk. Zero waits for only the current chunk. The server rejects values above its safety limit.

Formatint64
Range0 <= value <= 4294967295
timeoutMs?integer

Maximum wait in milliseconds. Zero uses the server default.

Formatint64
Range0 <= value <= 4294967295

Response Body

Successful response.

application/json
  1. response
centerChunkX*integer
Formatint32
centerChunkZ*integer
Formatint32
loadedChunks*integer
Formatint64
Range0 <= value <= 4294967295
requiredChunks*integer
Formatint64
Range0 <= value <= 4294967295
dimension*string
Example Request
curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/chunks:wait' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
{
  "centerChunkX": 0,
  "centerChunkZ": 0,
  "loadedChunks": 0,
  "requiredChunks": 0,
  "dimension": "string"
}

Was this page helpful?