Difference between revisions of "Redstone.getSides"
From ComputerCraft Wiki
(Created page with "{{lowercase}} {{Function |name=redstone.getSides |args= |returns=table list of valid sides |api=redstone |examples= {{Example |desc=Prints all valid sides |code=for k,v in...") |
Smiley43210 (Talk | contribs) m (Changed to use type template) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
|name=redstone.getSides | |name=redstone.getSides | ||
|args= | |args= | ||
− | |returns= | + | |returns={{type|table}} of valid sides |
|api=redstone | |api=redstone | ||
|examples= | |examples= | ||
{{Example | {{Example | ||
|desc=Prints all valid sides | |desc=Prints all valid sides | ||
− | |code=for k,v in | + | |code=for k,v in pairs(redstone.getSides()) do |
print(v) | print(v) | ||
end | end | ||
Line 14: | Line 14: | ||
}} | }} | ||
}} | }} | ||
+ | |||
+ | [[Category:Lua_Core_Functions]] |
Latest revision as of 15:20, 2 May 2013
Function redstone.getSides | |
No description provided. | |
Syntax | redstone.getSides() |
Returns | table of valid sides |
Part of | ComputerCraft |
API | redstone |
Examples
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) |