Difference between revisions of "Turtle.select"

From ComputerCraft Wiki
Jump to: navigation, search
(Outdated picture)
m (Moved to CAT:LuaCoreFunctions)
Line 14: Line 14:
 
}}
 
}}
 
}}
 
}}
 +
 +
[[Category:Lua_Core_Functions]]

Revision as of 18:57, 28 November 2012


Grid Redstone.png  Function turtle.select
Attempts to select the specified slot.
Syntax turtle.select(int slotNumber (1-16 in ComputerCraft 1.4+, otherwise 1-6))
Returns boolean whether the slot number specified is greater than nine or not.
Part of ComputerCraft
API turtle

Examples

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