Advertisement
CaptainSpaceCat

Scanner

Jun 10th, 2015
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. term.setBackgroundColor(colors.black)
  2. term.clear()
  3. local sides = {"top","bottom","left","right","front","back"}
  4. for _,v in ipairs(sides) do
  5.   if peripheral.getType( v ) == "modem" then
  6.     rednet.open( v )
  7.   end
  8. end
  9. while true do
  10.     local events = {os.pullEventRaw()}
  11.     term.setBackgroundColor(colors.black)
  12.     term.clear()
  13.     term.setBackgroundColor(colors.lightBlue)
  14.     term.setCursorPos(1, 1)
  15.     print(events[1])
  16.     print(events[2])
  17.     print(events[3])
  18.     print(events[4])
  19.     print(events[5])
  20.     print(events[6])
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement