Zum Inhalt springen
SoulFire LogoSoulFire

Send a raw Minecraft packet

Diese Anleitung gibt es nur auf Englisch.

POST
/v1/instances/{instance_id}/bots/{bot_id}/protocol/packets:send

Authorization

headerAuthorizationBearer <JWT>

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

Path Parameters

instance_id*string
bot_id*string

Request Body

application/json
  1. body
encodedPacket*string

The complete unframed packet, including its protocol packet ID.

Formatbyte
expectedName?|

Optional guard against sending bytes for the wrong packet schema.

Response Body

Successful response.

application/json
  1. response
name?string
encodedBytes?integer
Formatint64
Range0 <= value <= 4294967295
Example Request
curl -X POST 'http://127.0.0.1:38765/v1/instances/string/bots/string/protocol/packets:send' \
  -H 'Content-Type: application/json' \
  -d '{
  "encodedPacket": "string"
}'
Example Response
{
  "name": "string",
  "encodedBytes": 0
}

War diese Seite hilfreich?