Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- names = peripheral.getNames()
- sides = {"right", "left", "top", "bottom", "front", "back"}
- for i = 1, #names do
- c = peripheral.wrap(names[i])
- print(names[i])
- ifcomp = true
- for a = 1, #sides do
- if names[i] == sides[a] then
- ifcomp = false
- end
- if ifcomp == true then
- c.turnOn()
- end
- end
- end
- print("All should be on")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement