Advertisement
Guest User

run

a guest
Aug 1st, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 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 + 2
  8. else
  9.  z = oz - 2
  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.  --  turtle.place()
  20.    table = {x,z,dx,dz}
  21.    msg = textutils.serialize(table)
  22.    peripheral.call("front","turnOn")
  23.    sleep(2)
  24.    rednet.broadcast(msg)
  25.    x = x + 2
  26.    sleep(1)
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement