Advertisement
kolya5544

receiver

Feb 27th, 2017
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. rednet.open('left')
  2. print('Please! Place fuel to 16 slot!')
  3. while true do
  4. id, command = rednet.receive()
  5. print(command)
  6. if command == 'up' then
  7. turtle.up()
  8. end
  9. if command == 'down' then
  10. turtle.down()
  11. end
  12. if command == 'forward' then
  13. turtle.forward()
  14. end
  15. if command == 'back' then
  16. turtle.back()
  17. end
  18. if command == 'left' then
  19. turtle.turnLeft()
  20. elseif command == 'right' then
  21. turtle.turnRight()
  22. elseif command == 'fuel' then
  23. turtle.select(16)
  24. turtle.refuel()
  25. end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement