drop All

Commands the agent to drop its entire inventory in the given direction.

agent.dropAll(FORWARD);

Parameters

  • direction: the direction in which to drop items, eg: FORWARD

Example

Makes the agent drop everything it holds below itself.

agent.dropAll(DOWN);

See Also

drop