Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- function refuel(id)
- if turtle.getFuelLevel() < 100 then
- turtle.select(1)
- turtle.place()
- turtle.suck()
- shell.run("refuel all")
- turtle.dig()
- end
- end
- function move(id)
- turtle.select(2)
- turtle.digUp()
- turtle.forward()
- turtle.placeUp()
- rednet.send(id,"done")
- end
- while true do
- id,msg = rednet.receive()
- if msg == "move" then
- refuel(id)
- move(id)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment