redstone.getSides

Searches every side available to the computer or turtle and returns a table of sides that are valid for redstone interaction.

ExampleCheck for valid sides
Prints any side that is valid for redstone interaction
Code
<nowiki>
for key, value in pairs(redstone.getSides()) do
    print("Side "..value.." is valid.")
end
    </nowiki>
Output Side [top, bottom, front, back, left, right] is valid.

redstone.getSides
Function
Syntax
redstone.getSides()
Returns table of valid sides
API redstone
Source CC:Tweaked (source)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.