Advertisement
Muzze77

Placey Turtle by Muzze77

Jan 6th, 2014
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. ---------------------------------------------------------------
  2. -------------------- Placey Turtle By Muzze77 -----------------
  3. ---------------------------------------------------------------
  4. --######################## Variables ########################--
  5. local sle = 1
  6. --+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
  7.  
  8. --######################## Functions ########################--
  9.  
  10. --+++++++++++++++++++++++ CUT +++++++++++++++++++++++++++++++--
  11. local function cut()
  12. sleep(sle)
  13. shell.run("clear")
  14. sleep(sle)
  15. end
  16. --++++++++++++++++++++++++ PLACE +++++++++++++++++++++++++++++--
  17. local function place()
  18. turtle.select("1")
  19.  
  20. end
  21. --######################## Programs #########################--
  22. sle = 4
  23. print("Dies ist Placey. Sie wird dir die Arbeit erleichtern.")
  24. cut()
  25. print("Passwort?")
  26. cut()
  27. print("Gib das richtige Passwort ein:")
  28. local password = io.read()
  29. if password == "Easy" then
  30. cut()
  31. print("Passwort ist richtig!.")
  32. cut()
  33. print("Soll Placey loslegen ? JA/NEIN/AUFFÜLEN(RELOAD)")
  34. local answer = io.read()
  35. if answer == "JA" then
  36. sle = 1
  37. turtle.select(1)
  38. cut()
  39. print("Maximal 19 Saplinge in Slot 1 legen")
  40. turtle.select(1)
  41. cut()
  42. local item3 = turtle.compareTo(5)
  43. local sapl = turtle.getItemCount(1)
  44. local sapl1 = sapl-19
  45. while search == item do
  46. cut()
  47. print(" Kohle in letzten Slot legen")
  48. cut()
  49. end
  50. if sapl1 >= 19 then
  51. print("Not Enougt")
  52. end
  53. cut()
  54.  
  55. if sapl == 100 then
  56. print("Placey beginnt mit der Arbeit")
  57. cut()
  58. turtle.forward(2)
  59. place()
  60.  
  61. end
  62.  
  63.  
  64. elseif answer == "RELOAD" then
  65. sle = 1
  66. cut()
  67. print(" Placey füllt nach.")
  68. cut()
  69. local fuel = turtle.getFuelLevel()
  70. print("Placey hat noch " .. fuel .. " Treibstoff")
  71. cut()
  72. print("Lege in den letzten Slot Kohle rein ( 1 Kohle = 80 Treibstoff")
  73. turtle.select(16)
  74. local item = turtle.compareTo(12)
  75. local coal = turtle.getItemCount(16)
  76. print(item)
  77.  
  78. while not item == item2 do
  79. cut()
  80. print(" Kohle in letzten Slot legen")
  81. cut()
  82. end
  83. cut()
  84. turtle.refuel(coal)
  85. sleep(4)
  86. print("Aufgefüllt")
  87. cut()
  88. shell.run("placey")
  89.  
  90. else
  91. sle = 1
  92. cut()
  93. print(" Auf wiedersehen!")
  94. cut()
  95. shell.run("startup")
  96. end
  97. else
  98. sle = 1
  99. print("Falsches Passwort")
  100. cut()
  101. shell.run("startup")
  102. end
  103.  
  104.  
  105.  
  106. --+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
  107. --######################## END #########################--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement