turtle.getSelectedSlot

From ComputerCraft
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

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