Commands/attack
Minecraft Wiki article. Categories: Removed_features, Bedrock_Edition, Minecraft_Education, Bedrock_Edition_specific_information, Minecraft_Education_specific_information, Articles_with_empty_sections, Commands
📌 Mirrored from Minecraft Wiki
This article is reproduced from Commands/attack on the Minecraft Wiki. Mirrored from revision 2580810. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
On this page
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 "Minecraft Education features" cheat setting in Bedrock Edition.
/attack{
"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.
Navigation
Sources
- Commands/attack — Minecraft Wiki, CC BY-NC-SA 3.0, revision 2580810.