Advertisement
endminecraffter

endget

May 20th, 2018
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.53 KB | None | 0 0
  1. --##################--
  2. -- Programm von endminecraffter
  3. -- https://pastebin.com/u/endminecraffter
  4. -- Server: MyFTB.de Deutsches Minecraft modded Netzwerk
  5. -- Benötigte Mods/Apis: keine
  6. --##################--
  7.  
  8. local tArgs = {...}
  9.  
  10. function showHelp()
  11. term.clear()
  12. term.setCursorPos(1,1)
  13. print("endget install - installiere ein Programm.")
  14. print("endget delete - deinstalliere ein Programm und die dazugehoeringen APIs.")
  15.  
  16. end
  17.  
  18. function showSources()
  19. term.clear()
  20. term.setCursorPos(1,1)
  21. term.setTextColor(colors.green)
  22. write("playerdetector -")
  23. term.setTextColor(colors.orange)
  24. print(" PlayerDetector aus Direwolf20 MyFTB")
  25. term.setTextColor(colors.green)
  26. write("hauscontroll -")
  27. term.setTextColor(colors.orange)
  28. print(" HausControll aus Direwolf20 MyFTB")
  29. term.setTextColor(colors.green)
  30. write("essentiadisplay -")
  31. term.setTextColor(colors.orange)
  32. print(" EssentiaDisplay aus Direwolf20 MyFTB")
  33. term.setTextColor(colors.green)
  34. write("security -")
  35. term.setTextColor(colors.orange)
  36. print(" security aus Direwolf20 MyFTB")
  37. term.setTextColor(colors.green)
  38. write("reactor -")
  39. term.setTextColor(colors.orange)
  40. print(" Reactor Steuerung und Uebersicht aus Direwolf20 MyFTB")
  41. term.setTextColor(colors.green)
  42. write("Fabrik -")
  43. term.setTextColor(colors.orange)
  44. print(" Alle Steuerungen aus der Fabrik aus Direwolf20 MyFTB")
  45. end
  46.  
  47. if #tArgs >= 1 and tArgs[1] == "install" then
  48.  
  49. term.clear()
  50. term.setCursorPos(1,1)
  51. showSources()
  52. term.setTextColor(colors.white)
  53. print("Was willst du installieren: ")
  54.  
  55. local input = read()
  56. if input == "playerdetector" then
  57. term.clear()
  58. term.setCursorPos(1,1)
  59. print("Programm wird installiert....")
  60.    shell.run("delete endplayerdetector")
  61.  shell.run("pastebin get b4RbnsRY endplayerdetector")
  62. print("Installiert als endplayerdetector.")
  63. sleep(6)
  64. os.reboot()
  65. elseif input == "hauscontroll" then
  66. term.clear()
  67. term.setCursorPos(1,1)
  68. print("Programm wird installiert....")
  69.    shell.run("delete endhauscontroll")
  70.  shell.run("pastebin get w4hv9dRb endhauscontroll")
  71. print("Installiert als endhauscontroll.")
  72. sleep(6)
  73. os.reboot()
  74. elseif input == "essentiadisplay" then
  75. term.clear()
  76. term.setCursorPos(1,1)
  77. print("Programm wird installiert....")
  78.   shell.run("delete endessentiadisplay")
  79.  shell.run("pastebin get z6rkk9hH endessentiadisplay")
  80. print("Installiert als endessentiadisplay.")
  81. sleep(6)
  82. os.reboot()
  83. elseif input == "security" then
  84. term.clear()
  85. term.setCursorPos(1,1)
  86. print("Programm wird installiert....")
  87.   shell.run("delete endsecurity")
  88.  shell.run("pastebin get VJqNUTaY endsecurity")
  89. print("Installiert als endsecurity.")
  90. sleep(6)
  91. os.reboot()
  92. elseif input == "reactor" then
  93. term.clear()
  94. term.setCursorPos(1,1)
  95. print("Programm wird installiert....")
  96.   shell.run("delete endreactor")
  97.   shell.run("delete endreactorcontroll")
  98.  shell.run("pastebin get kiauEVbH endreactor")
  99.  shell.run("pastebin get 5JCCWzuC endreactorcontroll")
  100. print("Steuerung Installiert als endreactorcontroll.")
  101. print("Uebersicht Installiert als endreactor.")
  102. sleep(6)
  103. os.reboot()
  104. elseif input == "Fabrik" then
  105. term.clear()
  106. term.setCursorPos(1,1)
  107. print("Programm wird installiert....")
  108.   shell.run("delete endFabrik")
  109.   shell.run("pastebin get i9tsfipj endFabrikCFG/cfg")
  110.  shell.run("pastebin get wFi1hnTR endFabrik")
  111. print("TierFarmSteuerung Installiert als endFabrik.")
  112. sleep(6)
  113. os.reboot()
  114. else
  115.  print("Programm nicht gefunden")
  116. end
  117.  
  118. elseif #tArgs >= 1 and tArgs[1] == "delete" then
  119.  
  120.  
  121. elseif #tArgs >= 1 and tArgs[1] == "help" then
  122. showHelp()
  123.  
  124.  
  125. elseif #tArgs >= 0 then
  126. showHelp()
  127.  
  128.  
  129.  
  130. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement