Difference between revisions of "Turtle.suck"
From ComputerCraft Wiki
(Adding "see also" for the newly created articles.) |
(Removing examples of other commands, keeping just the examples related to this command.) |
||
Line 17: | Line 17: | ||
|desc=Picks up some items from in front of the turtle. | |desc=Picks up some items from in front of the turtle. | ||
|code='''turtle.suck()''' | |code='''turtle.suck()''' | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
}} | }} |
Latest revision as of 20:50, 21 April 2015
Function turtle.suck | |
Moves one or more items from either the ground in front of the turtle, or, from an inventory-enabled block (such as a chest) in front of 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 in front of the turtle. | |
Code |
turtle.suck() |