CapsAdmin

Untitled

Nov 24th, 2013
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. function marik.pLoad()
  2.     local machines = peripheral.getNames() -- load a list of peripherals into a table
  3.     table.sort(machines) -- so it displays in non-random manner
  4.     return machines
  5. end
  6.  
  7. local machines = marik.pLoad()
  8. for i=1, #machines do
  9. -- the rest is omitted
Advertisement
Add Comment
Please, Sign In to add comment