Advertisement
Xenogami

simple msg

Feb 16th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. function findDev (dType)
  2.   local d
  3.   for _,d in pairs(peripheral.getNames()) do
  4.     if (peripheral.getType(d) == dType) then
  5.           return peripheral.wrap(d)
  6.     end
  7.   end
  8.   return nil, dType..": not found"
  9. end
  10.  
  11. m=findDev("monitor")
  12.  
  13. m.write("Hey I hope you don't mind, but I used some of your mats. Your ME system is fixed now, just watch your channel use. If you have any qusetings just ask")
  14. m.write("Xeno")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement