Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- while true do
- id,message = rednet.receive()
- if id == 7 then
- if message == "a" then
- turtle.turnLeft()
- end
- if message == "d" then
- turtle.turnRight()
- end
- if message == "r" then
- turtle.up()
- end
- if message == "f" then
- turtle.down()
- end
- if message == "w" then
- turtle.forward()
- end
- if message == "s" then
- turtle.back()
- end
- if message == "g" then
- turtle.dig()
- end
- if message == "e" then
- turtle.digDown()
- end
- if message == "q" then
- turtle.digUp()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement