As part of the Unified Community Platform project, your wiki will be migrated to the new platform in the next few weeks. Read more here.
Makes an agent drop all its items from all slots onto the ground by one block in the specified direction.
dropall <direction: string>
- Specifies the direction of Agent to drop all the items.
- Must be one of:
forwardto drop items to the front.
backto drop items to the back.
leftto drop items to the left.
rightto drop items to the right.
Fails if the arguments are not specified correctly or the Agent's inventory was empty.
On success, returns if all items were dropped onto the ground in the direction specified.