Advertisement
wv1106

turtle remote reciever computercraft

Jan 8th, 2021
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.70 KB | None | 0 0
  1. rednet.open("right")
  2. print("remote reciever turtle")
  3. print("move op and down with the z, q, s, d and up and down with the a and z keys")
  4. print("this is made for an azerty keyboard change the keybinds if you have a qwerty or other keyboard here")
  5. --you can find the controller script online on my pastebin account
  6.  
  7. while 1 do
  8.     sender, action, proces = rednet.receive()
  9.     print(action)
  10.     if action=="q" then --left
  11.         turtle.turnLeft()
  12.     elseif action=="d" then --right
  13.         turtle.turnRight()
  14.     elseif action=="z" then --forward
  15.         turtle.forward()
  16.     elseif action=="a" then --up
  17.         turtle.up()
  18.     elseif action=="e" then --down
  19.         turtle.down()
  20.     end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement