/attack
< Commands
This page describes content that has been removed from the game.
This feature was present in earlier versions of Minecraft, 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.
/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": []
}
Let the agent attack in the direction specified.
Syntax
attack <direction: string>
Arguments
direction: string
- Specifies the direction of Agent to attack.
- Must be one of:
forwardto attack forward.backto attack backward.leftto attack leftward.rightto attack rightward.upto attack upward.downto attack downward.
Result
Always success, Agent attacks in the specified direction by 8HP attack damage.
History
This section of the article is empty.
You can help by expanding it.