Advertisement
Guest User

method

a guest
Apr 21st, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. local mon = peripheral.wrap("monitor_2")
  4. mon.clear()
  5. local x = 1
  6. mon.setCursorPos(1,1)
  7. mon.setTextScale(1)
  8. term.write("Please enter the peripheral name or location.")
  9. term.setCursorPos(1,2)
  10. local R = read()
  11. for i,v in pairs(peripheral.getMethods(R))
  12.  do print(i..". "..v)
  13.   mon.setCursorPos(1,x)
  14.   mon.write(i..". "..v)
  15.   x = x+1
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement