therealinsight

Untitled

May 14th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. rednet.find = function()
  2. local sides = {"top","bottom","left","right","front","back"}
  3. local trueSide = 0
  4. for s=1, 6 do if peripheral.getType(sides[s]) == "modem" then trueSide = sides[s] end end
  5. if trueSide ~= 0 then return trueSide end
  6. end
Add Comment
Please, Sign In to add comment