| Name | Attack | 
| Syntax | attack [<entity>|...] (target:<entity>/cancel) | 
| Short Description | Makes an entity, or list of entities, attack a target. | 
| Full Description | The attack command causes a mob entity to attack a target mob entity or player. This technically can be used on an NPC, but it will trigger the Citizens internal punching-pathfinder. This attack mode doesn't work well. If you want NPC combat, consider using Sentinel instead: https://github.com/mcmonkeyprojects/Sentinel/blob/master/README.md. To cancel an attack, use the 'cancel' argument instead of specifying a target. | 
| Related Tags | <NPCTag.is_fighting>Returns whether the NPC is currently targeting an entity for the Citizens internal punching pathfinder. (...)<NPCTag.attack_strategy>Returns the NPC's current navigator attack strategy. (...)<NPCTag.target_entity>Returns the entity being targeted by the NPC's current navigation (if any). | 
| Usage Example |  | 
| Usage Example |  | 
| Usage Example |  | 
| Group | entity | 
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/entity/AttackCommand.java#L26 |