Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- shell.run("r-lan")
- print("Turtle wird ferngesteuert")
- repeat
- m,i,s=rednet.receive()
- if i=="w" then
- turtle.forward()
- end
- if i=="s" then
- turtle.back()
- end
- if i=="a" then
- turtle.turnLeft()
- end
- if i=="d" then
- turtle.turnRight()
- end
- if i=="r" then
- turtle.up()
- end
- if i=="f" then
- turtle.down()
- end
- if i=="1" then
- turtle.placeUp()
- end
- if i=="2" then
- turtle.place()
- end
- if i=="3" then
- turtle.placeDown()
- end
- if i=="4" then
- turtle.digUp()
- end
- if i=="5" then
- turtle.dig()
- end
- if i=="6" then
- turtle.digDown()
- end
- until i=="q"
- shell.run("clear")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement