Difference between revisions of "Turtle.getSelectedSlot"
From ComputerCraft Wiki
Apemanzilla (Talk | contribs) |
(Removing the old "see also".) |
||
(One intermediate revision by the same user not shown) | |||
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 | ||
Line 19: | Line 17: | ||
}} | }} | ||
}} | }} | ||
+ | |||
+ | ==See also== | ||
+ | *[[turtle.select]] | ||
[[Category:API_Functions]] | [[Category:API_Functions]] |
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