Advertisement
xmann110

deploy_ulti

Feb 11th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. rednet.open("left")
  2. for x=-3, 3 do
  3.     for y=-3, 3 do
  4.         turtle.place()
  5.         wrap = peripheral.wrap("front")
  6.         wrap.turnOn()
  7.         turtle_id = wrap.getID()
  8.         print("Got turtle with ID " .. tostring(turtle_id))
  9.         print("Sending identification: (" .. tostring(x) .. ", " .. tostring(y) .. ")")
  10.         sleep(1)
  11.         rednet.send(turtle_id, x)
  12.         sleep(1)
  13.         rednet.send(turtle_id, y)
  14.         while turtle.detect() do
  15.             sleep(0.1)
  16.         end
  17.     end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement