turtle.getSelectedSlot

From ComputerCraft
Jump to navigation Jump to search

turtle.getSelectedSlot
Function
Syntax
turtle.getSelectedSlot()
Returns number slot
API turtle
Source CC:Tweaked (source)

Returns the currently selected item slot.

ExampleExampleGet the selected slot
Get the selected slot and print it.
Code
print(turtle.getSelectedSlot())
Output
1