collect [string item] /collect?item=all Attempts to collect all items within a one block from Agent in three dimensions. Parameters [string item] all, Item name (stone, lapis_ore, etc.) Full list here: Filters by given type Return [bool success] Returns if any were collected. drop [int slotNum] [int quantity] [string direction] the given number of items from the specified inventory slot onto the ground one block in the specified direction. Parameters [int slotNum] Inventory Slot Number (1-27) [int quantity] Quantity (1-64) [string direction] forward, back, left, right Return [bool success] Returns if any were dropped. dropall [string direction] Drops all items from all slots onto the ground one block in the specified direction. Parameters [string direction] forward, back, left, right Return [bool success] Returns if any items were dropped. detect [string direction] /detect?direction=right Detects if there is a collideable block in specified direction. Does not detect mobs. Parameters [string direction] forward, back, left, up, down Return [bool result] Returns if there was a collideable block in the specified direction. inspect [string direction] /inspect?direction=right Returns the name of the block in the specified direction. Parameters [string direction] forward, back, left, right, up, down Return [string itemName] Of the form Full list here: “coal_ore”.
collect [string item] /collect?item=all Attempts to collect all items within a one block from Agent in three dimensions. Parameters [string item] all, Item name (stone, lapis_ore, etc.) Full list here: Filters by given type Return [bool success] Returns if any were collected. drop [int slotNum] [int quantity] [string direction] the given number of items from the specified inventory slot onto the ground one block in the specified direction. Parameters [int slotNum] Inventory Slot Number (1-27) [int quantity] Quantity (1-64) [string direction] forward, back, left, right Return [bool success] Returns if any were dropped. dropall [string direction] Drops all items from all slots onto the ground one block in the specified direction. Parameters [string direction] forward, back, left, right Return [bool success] Returns if any items were dropped. detect [string direction] /detect?direction=right Detects if there is a collideable block in specified direction. Does not detect mobs. Parameters [string direction] forward, back, left, up, down Return [bool result] Returns if there was a collideable block in the specified direction. inspect [string direction] /inspect?direction=right Returns the name of the block in the specified direction. Parameters [string direction] forward, back, left, right, up, down Return [string itemName] Of the form “coal_ore”. Full list here:
CodeConnectionAPI-6.7.2017.docx