Commands/destroy

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

Arguments

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

Result
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
Команды консоли/destroy