Advertisement
Guest User

main

a guest
Mar 4th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. --rednet.open("top")
  2. allP = peripheral.getNames()
  3. drone = {}
  4. for i=1,#allP do
  5.   if allP[i] == "droneInterface" then
  6.     table.insert(drone,peripheral.wrap(allP[i]))
  7.     print("Adding Drone - " .. allP[i])
  8.   end
  9. end
  10.  
  11. for i=1,#drone do
  12.   cd = drone[i]
  13.   if cd.isConnectedToDrone() then
  14.     print("Drone ".. i .. " is Connected")
  15.     cd.setArea(x,y,z,x,y,z,"filled")
  16.     cd.setAction("Dig"
  17.    
  18.   end
  19. end
  20. --while true do
  21.   --local id,msg,proto = rednet.recieve()
  22.     --if id == remoteID then
  23.      
  24. --rednet.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement