Attack entity
Attacks a specific entity by network id.
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
instance_id*stringuuidbot_id*stringuuidapplication/json- body
entityId*integerNetwork entity id from NearbyEntity.entity_id. Must currently be in the bot's observation set.
int32sprinting?booleanIf true, perform a sprint-boosted critical hit when applicable (swings the main hand and applies knockback).
connectionEpoch?|Observation epoch that produced entity_id. When present, the action fails if the bot has reconnected since that observation.
uuidSuccessful 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/attack' \
-H 'Content-Type: application/json' \
-d '{
"entityId": 0
}'{
"result": {
"actionId": "4a2794ff-94cb-4bac-8d36-d5fb36c563a0",
"status": "BOT_ACTION_STATUS_UNSPECIFIED",
"error": "string"
}
}Was this page helpful?
Acquire bot control POST
Acquires exclusive action control for a bot. While the lease is active, action calls must include its token in the X-SoulFire-Control-Token request header.
Dig block POST
Starts (or stops, when `cancel` is set) breaking a block at a specific position. Unlike MouseClick, the target is explicit, with no raytrace from the current look direction is performed.
