Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.wrap("monitor_61")
- local peri = "right"
- while (true) do
- per = peripheral.wrap(peri)
- mon.clear()
- if (per == nil) then
- mon.setCursorPos(1,1)
- mon.write("Place a peripheral")
- else
- line = 1
- for x in pairs(per) do
- mon.setCursorPos(1,line)
- mon.write(x)
- line = line + 1
- print(x)
- end
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement