Advertisement
11niwright

Untitled

Dec 7th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. rednet.open("back")
  2.  
  3. while true do
  4. term.clear()
  5. term.setCursorPos(1,1)
  6. print("Enter command:")
  7. local input = read()
  8. if input=="forward" or input=="left" or input=="right" or input=="up" or input=="down" or input=="suck" or input=="mine" then
  9. rednet.send(19,input)
  10. else
  11. print("Invalid command")
  12. end
  13. sleep(2)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement