collect
Commands the agent to Collect a block or item of the specified type.
agent.collect(IRON_SHOVEL);
Parameters
- block: the type of the block or item to collect
Example
Makes the agent collect any nearby diamonds.
agent.collect(DIAMOND);
Commands the agent to Collect a block or item of the specified type.
agent.collect(IRON_SHOVEL);
Makes the agent collect any nearby diamonds.
agent.collect(DIAMOND);