Attack Entity
minecraft_attack_entityAttack a specific entity by ID or the nearest hostile mob, swinging your equipped weapon once per call. Repeat for multiple hits.
Instructions
Attacks a specific entity by id (from minecraft_get_nearby_entities), or the nearest hostile mob if no id is given. Swings the bot's currently equipped weapon once — call repeatedly for multiple hits.
Returns: { message: string, target: string } Errors: entity not found / out of reach, or no hostile mobs nearby (when entity_id omitted).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "minecraft_attack_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | No | Entity id from minecraft_get_nearby_entities. Omit to attack nearest hostile mob. |