Guest User

test

a guest
Sep 12th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. local test = peripheral.isPresent("bottom")
  2. local mon = peripheral.wrap("right")
  3. local x = 1
  4. local y = 1
  5. mon.write(test)
  6. mon.clear()
  7. mon.setCursorPos(x,y)
  8. mon.setTextScale(1)
  9. for i,v in ipairs(peripheral.getMethods("bottom"))
  10. do mon.write(i..". "..v)
  11. y = y + 1
  12. mon.setCursorPos(x,y)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment