turtle.select
From ComputerCraft Wiki
Revision as of 15:59, 18 January 2013 by TheOriginalBIT (Talk | contribs) (Fixed typo, stated 1-6, should have been 1-9)
Function turtle.select | |
Attempts to select the specified slot. | |
Syntax | turtle.select(int slotNumber (1-16 in ComputerCraft 1.4+, otherwise 1-9)) |
Returns | boolean whether the slot number specified is greater than nine or not. |
Part of | ComputerCraft |
API | turtle |
Examples
Example | |
Selects the specified slot | |
Code |
print(turtle.select(5)) |
Output | true |