turtle.transferTo

Moves an item to another slot. If quantity is empty, it will move the full stack.

ExampleMove an Item
This code will simply move an item from slot 4 to slot 7.
Code
turtle.select(4)
turtle.transferTo(7)

turtle.transferTo
Function
Syntax
turtle.transferTo(
  • slot : number
  • quantity? : number
)

Returns boolean success
API turtle
Source CC:Tweaked (source)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.