Advertisement
Dojnaz

CC Peripheral List

Nov 14th, 2020 (edited)
1,282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local mon = peripheral.wrap("monitor_61")
  2. local peri = "right"
  3.  
  4. while (true) do
  5.   per = peripheral.wrap(peri)
  6.   mon.clear()
  7.   if (per == nil) then
  8.     mon.setCursorPos(1,1)
  9.     mon.write("Place a peripheral")
  10.   else
  11.     line = 1
  12.     for x in pairs(per) do
  13.       mon.setCursorPos(1,line)
  14.       mon.write(x)
  15.       line = line + 1
  16.       print(x)
  17.     end
  18.   end
  19.   sleep(1)
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement