Advertisement
Guest User

Controle

a guest
Aug 28th, 2014
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. local Choix
  2. local ID=2539
  3. rednet.open("back")
  4. while 1
  5. do
  6. term.clear()
  7. term.setCursorPos(1,1)
  8. print("Control the turtle")
  9. print("1.Forward")
  10. print("2.Back")
  11. print("3.Up")
  12. print("4.Down")
  13. print("5.Turn left")
  14. print("6.Turn Right")
  15. print("7.Break")
  16. print("8.Break Down")
  17. print("9.Break Up")
  18. print("10.Place")
  19. print("11.Place Down")
  20. print("12.Place Up")
  21. print("13.Open Redstone")
  22. print("14.Close Redstone")
  23. print("15.Tunnel")
  24. print("16.Forward +")
  25. print("17.Refuel")
  26. print("18.Exit")
  27. Choix=io.read()
  28. Choix=tonumber(Choix)
  29. rednet.send(ID,Choix)
  30. if Choix==18
  31. then
  32. term.clear()
  33. term.setCursorPos(1,1)
  34. print("Tank for using")
  35. break
  36. end
  37. if Choix==16 or Choix==15
  38. then term.clear()
  39. term.setCursorPos(1,1)
  40. print("How many block ?")
  41. Choix=io.read()
  42. Choix=tonumber(Choix)
  43. rednet.send(ID,Choix)
  44. end
  45. end
  46. rednet.close("back")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement