Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --rednet.open("top")
- allP = peripheral.getNames()
- drone = {}
- for i=1,#allP do
- if allP[i] == "droneInterface" then
- table.insert(drone,peripheral.wrap(allP[i]))
- print("Adding Drone - " .. allP[i])
- end
- end
- for i=1,#drone do
- cd = drone[i]
- if cd.isConnectedToDrone() then
- print("Drone ".. i .. " is Connected")
- cd.setArea(x,y,z,x,y,z,"filled")
- cd.setAction("Dig"
- end
- end
- --while true do
- --local id,msg,proto = rednet.recieve()
- --if id == remoteID then
- --rednet.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement