Difference between revisions of "Turtle.getSelectedSlot"
From ComputerCraft Wiki
(Adding "see also".) |
(Removing the old "see also".) |
||
Line 5: | Line 5: | ||
|returns={{Type|number}} selected slot | |returns={{Type|number}} selected slot | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc=Added by version 1.6 of ComputerCraft, this command returns the currently selected inventory slot. In builds prior this value must be tracked manually by the scripter. | + | |desc=Added by version 1.6 of ComputerCraft, this command returns the currently selected inventory slot. In builds prior this value must be tracked manually by the scripter. |
− | + | ||
− | + | ||
|examples= | |examples= | ||
{{Example | {{Example |
Latest revision as of 23:21, 26 April 2015
Function turtle.getSelectedSlot | |
Added by version 1.6 of ComputerCraft, this command returns the currently selected inventory slot. In builds prior this value must be tracked manually by the scripter. | |
Syntax | turtle.getSelectedSlot() |
Returns | number selected slot |
Part of | ComputerCraft |
API | turtle |
Examples