Turtle.suckUp

From ComputerCraft
Jump to navigation Jump to search
FunctionFunctionturtle.place
Picks up a item above the turtle
Syntax turtle.place()
Returns integer amount
Part of Lua (source)
API turtle
ExampleExamplePickup a item above the turtle.
Prints the amount of items the turtle picks up.
Code
print(turtle.suckUp())
Output 3