Turtle.suckUp

From ComputerCraft
Jump to navigation Jump to search
Error creating thumbnail: Unable to save thumbnail to destination
Functionturtle.place
Picks up a item above the turtle
Syntax turtle.place()
Returns integer amount
Part of Lua (source)
API turtle
Error creating thumbnail: Unable to save thumbnail to destination
ExamplePickup a item above the turtle.
Prints the amount of items the turtle picks up.
Code
print(turtle.suckUp())
Output 3