Sleep in bed
POST
Uses a reachable bed and completes only after the server confirms that the bot entered the sleeping state.
header
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
instance_id*stringFormat
uuidbot_id*stringFormat
uuidapplication/json- body
bed*A block position in a specific dimension. Coordinates are Minecraft block integers, not chunk-relative.
hand?soulfire.v1.HandWhich hand to use for an action. Mirrors Minecraft's main-hand / off-hand distinction.
Value in
"HAND_UNSPECIFIED""HAND_MAIN""HAND_OFF"Successful response.
application/json- response
result*curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/actions:sleep' \
-H 'Content-Type: application/json' \
-d '{
"bed": {
"x": 0,
"y": 0,
"z": 0
}
}'Example Response
{
"result": {
"actionId": "4a2794ff-94cb-4bac-8d36-d5fb36c563a0",
"status": "BOT_ACTION_STATUS_UNSPECIFIED",
"error": "string"
}
}Was this page helpful?
