Difference between revisions of "Turtle.suckDown"
From ComputerCraft Wiki
(Creating the article about this command. The source of the text is turtle.suck.) |
(Removing examples of other commands, keeping just the examples related to this command.) |
||
Line 14: | Line 14: | ||
* As of ComputerCraft 1.6, if an amount is specified, the turtle will attempt to pick up at most the specified number of items. Earlier builds always attempt to pick up a full slot. | * As of ComputerCraft 1.6, if an amount is specified, the turtle will attempt to pick up at most the specified number of items. Earlier builds always attempt to pick up a full slot. | ||
|examples= | |examples= | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{Example | {{Example | ||
|desc=Picks up some items from below the turtle. | |desc=Picks up some items from below the turtle. |
Revision as of 20:50, 21 April 2015
Function turtle.suck | |
Moves one or more items from either the ground below the turtle, or, from an inventory-enabled block (such as a chest) below the turtle.
| |
Syntax | turtle.suck([number amount]) |
Returns | boolean true if at least one item was moved into the turtle's inventory; false otherwise. |
Part of | ComputerCraft |
API | turtle |
Examples
Example | |
Picks up some items from below the turtle. | |
Code |
turtle.suckDown() |