turtle.select

turtle.select
Function
Syntax
turtle.select(
  • slot : number
)

API turtle

Sets the currently selected slot to slot

ExampleMove an Item
This code simply will move an item from slot 4 to slot 7, using turtle.transferTo.
Code
turtle.select(4)
turtle.transferTo(7)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.