Difference between revisions of "Turtle.suckUp"
From ComputerCraft Wiki
(Removing examples of other commands, keeping just the examples related to this command.) |
(Adding "see also" and correcting the name of the function.) |
||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
{{Function | {{Function | ||
− | |name=turtle.suck | + | |name=turtle.suck.Up |
|args=[<nowiki></nowiki>{{type|number}} amount] | |args=[<nowiki></nowiki>{{type|number}} amount] | ||
|returns={{type|boolean}} <var>true</var> if at least one item was moved into the turtle's inventory; <var>false</var> otherwise. | |returns={{type|boolean}} <var>true</var> if at least one item was moved into the turtle's inventory; <var>false</var> otherwise. | ||
Line 20: | Line 20: | ||
}} | }} | ||
}} | }} | ||
+ | |||
+ | ==See also== | ||
+ | *[[turtle.suck]] | ||
+ | *[[turtle.suckDown]] | ||
[[Category:Lua_Core_Functions]] | [[Category:Lua_Core_Functions]] |
Latest revision as of 21:04, 21 April 2015
Function turtle.suck.Up | |
Moves one or more items from either the ground above the turtle, or, from an inventory-enabled block (such as a chest) above the turtle.
| |
Syntax | turtle.suck.Up([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 above the turtle. | |
Code |
turtle.suckUp() |