Guest User

newtest

a guest
Dec 28th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. local modem = peripheral.wrap("back")
  2. local batboxes = {}
  3.  
  4. for _, name in ipairs( peripheral.getNames()) do
  5.     if peripheral.getType(name) == "batbox" then
  6.         nBox = {}
  7.         nBox.name = name
  8.         table.insert(batboxes, batbox)
  9.     end
  10. end
  11.  
  12. for i = 1, #batboxes do
  13.     batboxes[i].name = peripheral.wrap(batboxes[i].name)
  14.     print (batboxes[i].name)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment