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.

BlockSprite rose.png: Sprite image for rose in Minecraft
This page describes content that has been removed from Minecraft.
 
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 "Minecraft Education features" cheat setting in Bedrock Edition.
/attack

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:
  • 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 8HP❤️❤️❤️❤️ attack damage.

History

This section of the article is empty.
 
You can help by expanding it.

Sources