Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "fuel"
- modem = peripheral.find("modem")
- ID = os.getComputerID()
- print("Buddy ID: "..ID)
- rednet.open("left")
- function relocate(n)
- for i = 1,n,1 do
- turtle.forward()
- end
- end
- while true do
- event, sender, message, protocol = os.pullEvent("rednet_message")
- if message == "con" then
- print("connected")
- elseif message == "relocate" then
- print("we are moving")
- turtle.turnLeft()
- relocate(64)
- turtle.turnRight()
- refuel()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement