place

Places an item or block in the world from the agent’s currently selected inventory slot.

agent.place(BACK);

Parameters

  • direction: the direction in which to place the item, eg: BACK

Example

Places a block above the agent. This will only work if your agent has at least one block in its currently selected inventory slot.

agent.place(UP);

See Also

set-slot