turtle.getSelectedSlot
| turtle.getSelectedSlot Function | |
|---|---|
|
Syntax turtle.getSelectedSlot() | |
| Returns | number slot |
| API | turtle |
| Source | CC:Tweaked (source) |
Returns the currently selected item slot.
|
|||
| Get the selected slot and print it. | |||
| Code | <nowiki>
print(turtle.getSelectedSlot())
</nowiki>
|
||
| Output | 1
|
||
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CC:Tweaked |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.