Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- id=9163
- while true do
- id,y,z=rednet.receive()
- if y=="Forward" then
- if turtle.detect()==false then
- turtle.forward()
- sleep(0.5)
- rednet.send(id,"Forward")
- end
- end
- if y=="Back" then
- turtle.back()
- sleep(0.5)
- rednet.send(id,"Back")
- end
- if y=="Left" then
- turtle.turnLeft()
- sleep(0.5)
- rednet.send(id,"Left")
- end
- if y=="Right" then
- turtle.turnRight()
- sleep(0.5)
- rednet.send(id,"Right")
- end
- if y=="Up" then
- turtle.up()
- sleep(0.5)
- rednet.send(id,"Up")
- end
- if y=="Down" then
- turtle.down()
- sleep(0.5)
- rednet.send(id,"Down")
- end
- if y=="Dig" then
- turtle.dig()
- end
- if y=="Place" then
- turtle.place()
- end
- if turtle.detect()==true then
- rednet.send(id,"blocked")
- else
- sleep(0.2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement