Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("Enter command:")
- local input = read()
- if input=="forward" or input=="left" or input=="right" or input=="up" or input=="down" or input=="suck" or input=="mine" then
- rednet.send(19,input)
- else
- print("Invalid command")
- end
- sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement