Advertisement
nothing_personal

status

Dec 7th, 2019
553
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. local function findPeripheral( periphType )
  2.   for _, side in pairs( rs.getSides() ) do
  3.         if peripheral.isPresent(side) and peripheral.getType(side) == periphType then
  4.           return side
  5.         end
  6.   end
  7.  
  8.   error("Cannot find "..periphType.." attached to this computer", 0)
  9. end
  10.  
  11. local side = findPeripheral("monitor")
  12.  
  13. local mon = peripheral.wrap(side)
  14. mon.clear()
  15. mon.setCursorBlink(false)
  16. mon.setCursorPos(1,1)
  17. mon.write("oh geeze rick")
  18. mon.setCursorPos(1,2)
  19. mon.write("heck")
  20. mon.setCursorPos(1,3)
  21. mon.write("suck ittttttttt")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement