Advertisement
XxQuAnTuMAsT3RxX

Untitled

Nov 21st, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. rednet.open("right")
  2.  
  3. function getNeighborIds()
  4. ids = {}
  5. for i,v in pairs(rs.getSides()) do
  6. if peripheral.getType(v)=='turtle' then
  7. ids[v] = peripheral.call(v, "getID")
  8. end
  9. end
  10. return ids
  11. end
  12.  
  13. i = getNeighborIds()
  14.  
  15. f = i.front or " "
  16. ba = i.back or " "
  17. t = i.top or " "
  18. b = i.bottom or " "
  19. l = i.left or " "
  20. r = i.right or " "
  21.  
  22. print(" "..f.." "..t)
  23. print(" /\\ /\\")
  24. print(" || ||")
  25. print( l.." <="..os.getComputerID().."=> "..r.." " )
  26. print(" || ||")
  27. print(" \\/ \\/")
  28. print(" "..ba.." "..b)
  29.  
  30. rednet.broadcast(i, "qIdent")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement