/attack
< Commands
This page describes content that exists only in outdated versions of Minecraft.
This feature was present in earlier versions of the game but has since been removed.
This feature is exclusive to Bedrock Edition and Minecraft Education.
This page describes an education-related feature.
This feature is available only in Minecraft Education or when enabling the "Education" option in Bedrock Edition.
Let the agent attack in the direction specified.
/attack
Visibility |
Hidden |
---|---|
Permission level required |
0 |
Restrictions |
None |
{ "title": "<code>/attack</code>", "rows": [ { "field": "Hidden", "label": "Visibility" }, { "field": "0", "label": "(link to Permission level article, displayed as Permission level<br>required)" }, { "field": "None", "label": "(link to Commands#Restrictions article, displayed as Restrictions)" } ], "invimages": [], "images": [] }
Syntax Edit
attack <direction: string>
Arguments Edit
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 Edit
Always success, Agent attacks in the specified direction by 8HP attack damage.
History Edit
This section of the article is empty.
You can help by expanding it.