Difference between revisions of "Turtle.getSelectedSlot"
From ComputerCraft Wiki
Bomb Bloke (Talk | contribs) |
(Removing the old "see also".) |
||
| (3 intermediate revisions by 3 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
| 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