Advertisement
Guest User

run

a guest
Aug 1st, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. rednet.open("left")
  2. ox,oy,oz = gps.locate()
  3. x,y,z = gps.locate()
  4. rx = ox + 64
  5. term.write("deploying...")
  6. if oz > 0 then
  7.   z = oz + 3
  8. else
  9.  z = oz - 3
  10. end
  11. dx = ox + 1
  12. dz = oz +1
  13. while true do
  14.    
  15.    if x > rx then
  16.        x = ox
  17.        z = z + 1
  18.    end
  19.    if turtle.getItemCount(1) > 0 then  
  20.      turtle.place()
  21.      table = {x,z,dx,dz}
  22.      msg = textutils.serialize(table)
  23.      peripheral.call("front","turnOn")
  24.      sleep(2)
  25.      rednet.broadcast(msg)
  26.      x = x + 2
  27.      sleep(1)
  28.    end  
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement