Guest User

startup

a guest
Apr 4th, 2014
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. rednet.open("back")
  2. while true do
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. print("Where do you want your turtle to go?")
  6. local input = read()
  7. if input == "home" then
  8. rednet.send(1, input)
  9. rednet.send(15, input)
  10. elseif input == "store" then
  11. rednet.send(1, input)
  12. rednet.send(15, input)
  13. elseif input == "outside" then
  14. rednet.send(1, input)
  15. elseif input == "lab" then
  16. rednet.send(1, input)
  17. elseif input == "hut" then
  18. rednet.send(1, input)
  19. elseif input == "hide" then
  20. rednet.send(1, input)
  21. elseif input == "storeitems" then
  22. rednet.send(1, input)
  23. else
  24. print("Invalid Location")
  25. print("Go add it to the programs!")
  26. sleep(2)
  27. end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment