Difference between revisions of "Redstone.getSides"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:LuaCoreFunctions)
m (Changed to use type template)
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
|name=redstone.getSides
 
|name=redstone.getSides
 
|args=
 
|args=
|returns=[[table]] list of valid sides
+
|returns={{type|table}} of valid sides
 
|api=redstone
 
|api=redstone
 
|examples=
 
|examples=

Latest revision as of 15:20, 2 May 2013


Grid Redstone.png  Function redstone.getSides
No description provided.
Syntax redstone.getSides()
Returns table of valid sides
Part of ComputerCraft
API redstone

Examples

Grid paper.png  Example
Prints all valid sides
Code
for k,v in pairs(redstone.getSides()) do
 print(v)
end
Output A list of all valid sides (top, bottom, left, right, front and back)