Difference between revisions of "Turtle.getSelectedSlot"
From ComputerCraft Wiki
Bomb Bloke (Talk | contribs) m |
(Removing the old "see also".) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
|name=turtle.getSelectedSlot | |name=turtle.getSelectedSlot | ||
|api=turtle | |api=turtle | ||
− | |returns= | + | |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