turtle.select

From ComputerCraft Wiki
Revision as of 14:52, 23 February 2017 by Lupus590 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function turtle.select
Attempts to select the specified slot.
Syntax turtle.select(number slotNumber (1-16 in ComputerCraft 1.4+, otherwise 1-9))
Returns boolean whether the slot number specified is within the accepted range or not.
Part of ComputerCraft
API turtle

Examples

Grid paper.png  Example
Selects the specified slot
Code
print(turtle.select(5))
Output true


See also