Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- rednet.open("right")
- x,y,z = rednet.receive()
- print(y)
- if y == "f" then
- turtle.dig()
- turtle.forward()
- end
- if y == "b" then
- turtle.back()
- end
- if y == "r" then
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- if y == "l" then
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- end
- if y == "p" then
- turtle.select(1)
- turtle.placeDown()
- turtle.forward()
- end
- if y == "u" then
- turtle.digUp()
- turtle.up()
- end
- if y == "d" then
- turtle.digDown()
- turtle.down()
- end
- end
Add Comment
Please, Sign In to add comment