Commands/destroy

Destroys block or item in the specified direction.


 * Syntax




 * 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, Agent destroys the block/item by one hit as expected.