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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | No | Entity id from minecraft_get_nearby_entities. Omit to attack nearest hostile mob. |