Commands/attack

From Minecraft Wiki
Jump to: navigation, search
attack
Restrictions

None

First introduced

?

Attacks in the direction specified.

Syntax
attack <direction: string>
Arguments
direction: string
Specifies the direction of Agent to attack.
Must be one of:
  • forward to attack forward.
  • back to attack backward.
  • left to attack leftward.
  • right to attack rightward.
  • up to attack upward.
  • down to attack downward.
Result
Always success, Agent attacks in the specified direction by 8 (Heart.svgHeart.svgHeart.svgHeart.svg) attack damage.