Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- for x=-3, 3 do
- for y=-3, 3 do
- turtle.place()
- wrap = peripheral.wrap("front")
- wrap.turnOn()
- turtle_id = wrap.getID()
- print("Got turtle with ID " .. tostring(turtle_id))
- print("Sending identification: (" .. tostring(x) .. ", " .. tostring(y) .. ")")
- sleep(1)
- rednet.send(turtle_id, x)
- sleep(1)
- rednet.send(turtle_id, y)
- while turtle.detect() do
- sleep(0.1)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement