Haruchai

mon-wrap

Feb 1st, 2015
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local monSide
  2. for _, side in ipairs(rs.getSides()) do
  3.   if peripheral.isPresent(side) and peripheral.getType(side) == "mon" then
  4.     mon = side
  5.     break
  6.   end
  7. end
  8.  
  9. if monSide then
  10.   -- do stuff with the disk drive
  11. else
  12.   error("No monitor found.")
  13. computer.turnOn()
  14. end
Advertisement
Add Comment
Please, Sign In to add comment