Advertisement
koki2000

monitor finder tekkit classic

Sep 10th, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. function monitor()
  2.  for _,b in pairs (rs.getSides()) do
  3.    if peripheral.getType(b) == "monitor" then
  4.     return peripheral.wrap(b)
  5.    end
  6.  end
  7. end
  8.  
  9. local m = monitor()
  10.  
  11. m.clear()
  12. m.setCursorPos(1, 1)
  13. m.write("hi")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement