Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("back")
- local batboxes = {}
- for _, name in ipairs( peripheral.getNames()) do
- if peripheral.getType(name) == "batbox" then
- nBox = {}
- nBox.name = name
- table.insert(batboxes, batbox)
- end
- end
- for i = 1, #batboxes do
- batboxes[i].name = peripheral.wrap(batboxes[i].name)
- print (batboxes[i].name)
- end
Advertisement
Add Comment
Please, Sign In to add comment