Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- function getNeighborIds()
- ids = {}
- for i,v in pairs(rs.getSides()) do
- if peripheral.getType(v)=='turtle' then
- ids[v] = peripheral.call(v, "getID")
- end
- end
- return ids
- end
- i = getNeighborIds()
- f = i.front or " "
- ba = i.back or " "
- t = i.top or " "
- b = i.bottom or " "
- l = i.left or " "
- r = i.right or " "
- print(" "..f.." "..t)
- print(" /\\ /\\")
- print(" || ||")
- print( l.." <="..os.getComputerID().."=> "..r.." " )
- print(" || ||")
- print(" \\/ \\/")
- print(" "..ba.." "..b)
- rednet.broadcast(i, "qIdent")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement