Commands/destroy

From Minecraft Wiki
Jump to: navigation, search
destroy
Restrictions

None

Information icon.svg
This feature is exclusive to Bedrock Edition and Education Edition.
Hydrogen.png
This page describes an education-related feature.
This feature is available only in Education Edition or when enabling the "Education Edition" option in Bedrock Edition.

Makes your agent destroy a block or item in the specified direction.

Syntax[edit]

destroy <direction: string>

Arguments[edit]

direction: string

Specifies the direction of Agent to destroy.
Must be one of:
  • forward to destroy block/item on the front.
  • back to destroy block/item on the back.
  • left to destroy block/item on the left-hand side.
  • right to destroy block/item on the right-hand side.
  • up to destroy block/item on the top-hand side.
  • down to destroy block/item on the bottom-hand side.

Result[edit]

Fails if the block was unbreakable or a non-solid block.

On success, the Agent destroys the block/item by one hit as expected.

History[edit]

Education Edition
?Added /destroy.