Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
component:inventory_controller [2018/07/22 00:16]
sulljason Inventory Controller returns a label now.
component:inventory_controller [2021/05/31 17:38]
hunter3216
Line 39: Line 39:
 Note that the robot cannot drop items into it's own inventory, attempting to do so will cause this to throw an error. You need to use `robot.transferTo` from the [[api:​robot|Robot API]] to do so. Note that the robot cannot drop items into it's own inventory, attempting to do so will cause this to throw an error. You need to use `robot.transferTo` from the [[api:​robot|Robot API]] to do so.
 - `suckFromSlot(side:​number,​ slot:​number[,​ count:​number]):​boolean`  ​ - `suckFromSlot(side:​number,​ slot:​number[,​ count:​number]):​boolean`  ​
-Takes up to count items from the specified slot of the inventory at the specified side and puts them into the currently selected slot.  ​+Takes up to count items from the specified slot of the inventory at the specified side and puts them into the currently selected ​slot. If the currently selected slot to deposit to cannot store all of the items sent to it then any remaining items are placed in the next available ​slot.  ​
 **side** - a valid side.  ​ **side** - a valid side.  ​
 **slot** - the slot to take the item from.  ​ **slot** - the slot to take the item from.  ​