|This feature is exclusive to Bedrock Edition and Education Edition.|
|This page describes an education-related feature.|
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.