Jump to content




Sided Information Needed For Peripheral Page


6 replies to this topic

#1 Termanater13

  • Members
  • 64 posts

Posted 29 July 2013 - 09:33 PM

I was looking at the peripheral api page and nothing is stated about what the side names are. is it left, right, top, bottom, front, back or something else, and aliases for the sides if any.

#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 30 July 2013 - 01:17 AM

Sides are fairly straight forward. There are not many other names for sides of things........ left, right, top, bottom, front, and back are always the same, there is no other word in the English language that can take their place. With front and back your could make the argument that they could be "forward" and "backward" but they are movement words, not side words.

So I don't think it is necessarily needed to be on the wiki, it is fairly common sense...

There is also `rs.getSides()` / `redstone.getSides()`...

#3 Sora Firestorm

  • Members
  • 89 posts

Posted 30 July 2013 - 03:45 AM

I'm simply going to add my two-cents and say that I've tried to use "up" and "down" (well, at least "down") several times before remembering "top" and "bottom".

#4 jesusthekiller

  • Banned
  • 562 posts
  • LocationWrocław, Poland

Posted 30 July 2013 - 06:24 AM

for _,v in ipairs(rs.getSides()) do
write(v..", ")
end


#5 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,451 posts

Posted 01 August 2013 - 11:47 PM

table.concat(rs.getSides(), ", ")

And yeah, it probably wouldn't hurt to call out those six explicitly someplace.

#6 NOTUSEDPLEASEDELETE

  • Members
  • 70 posts

Posted 02 August 2013 - 08:58 PM

They are:
left
right
top
bottom
front
back


#7 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,451 posts

Posted 03 August 2013 - 12:24 AM

The correct order for them (disk drive preference, etc.) is:

top, bottom, front, back, left, right





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users