Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --##################--
- -- Programm von endminecraffter
- -- https://pastebin.com/u/endminecraffter
- -- Server: MyFTB.de Deutsches Minecraft modded Netzwerk
- -- Benötigte Mods/Apis: keine
- --##################--
- local tArgs = {...}
- function showHelp()
- term.clear()
- term.setCursorPos(1,1)
- print("endget install - installiere ein Programm.")
- print("endget delete - deinstalliere ein Programm und die dazugehoeringen APIs.")
- end
- function showSources()
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.green)
- write("playerdetector -")
- term.setTextColor(colors.orange)
- print(" PlayerDetector aus Direwolf20 MyFTB")
- term.setTextColor(colors.green)
- write("hauscontroll -")
- term.setTextColor(colors.orange)
- print(" HausControll aus Direwolf20 MyFTB")
- term.setTextColor(colors.green)
- write("essentiadisplay -")
- term.setTextColor(colors.orange)
- print(" EssentiaDisplay aus Direwolf20 MyFTB")
- term.setTextColor(colors.green)
- write("security -")
- term.setTextColor(colors.orange)
- print(" security aus Direwolf20 MyFTB")
- term.setTextColor(colors.green)
- write("reactor -")
- term.setTextColor(colors.orange)
- print(" Reactor Steuerung und Uebersicht aus Direwolf20 MyFTB")
- term.setTextColor(colors.green)
- write("Fabrik -")
- term.setTextColor(colors.orange)
- print(" Alle Steuerungen aus der Fabrik aus Direwolf20 MyFTB")
- end
- if #tArgs >= 1 and tArgs[1] == "install" then
- term.clear()
- term.setCursorPos(1,1)
- showSources()
- term.setTextColor(colors.white)
- print("Was willst du installieren: ")
- local input = read()
- if input == "playerdetector" then
- term.clear()
- term.setCursorPos(1,1)
- print("Programm wird installiert....")
- shell.run("delete endplayerdetector")
- shell.run("pastebin get b4RbnsRY endplayerdetector")
- print("Installiert als endplayerdetector.")
- sleep(6)
- os.reboot()
- elseif input == "hauscontroll" then
- term.clear()
- term.setCursorPos(1,1)
- print("Programm wird installiert....")
- shell.run("delete endhauscontroll")
- shell.run("pastebin get w4hv9dRb endhauscontroll")
- print("Installiert als endhauscontroll.")
- sleep(6)
- os.reboot()
- elseif input == "essentiadisplay" then
- term.clear()
- term.setCursorPos(1,1)
- print("Programm wird installiert....")
- shell.run("delete endessentiadisplay")
- shell.run("pastebin get z6rkk9hH endessentiadisplay")
- print("Installiert als endessentiadisplay.")
- sleep(6)
- os.reboot()
- elseif input == "security" then
- term.clear()
- term.setCursorPos(1,1)
- print("Programm wird installiert....")
- shell.run("delete endsecurity")
- shell.run("pastebin get VJqNUTaY endsecurity")
- print("Installiert als endsecurity.")
- sleep(6)
- os.reboot()
- elseif input == "reactor" then
- term.clear()
- term.setCursorPos(1,1)
- print("Programm wird installiert....")
- shell.run("delete endreactor")
- shell.run("delete endreactorcontroll")
- shell.run("pastebin get kiauEVbH endreactor")
- shell.run("pastebin get 5JCCWzuC endreactorcontroll")
- print("Steuerung Installiert als endreactorcontroll.")
- print("Uebersicht Installiert als endreactor.")
- sleep(6)
- os.reboot()
- elseif input == "Fabrik" then
- term.clear()
- term.setCursorPos(1,1)
- print("Programm wird installiert....")
- shell.run("delete endFabrik")
- shell.run("pastebin get i9tsfipj endFabrikCFG/cfg")
- shell.run("pastebin get wFi1hnTR endFabrik")
- print("TierFarmSteuerung Installiert als endFabrik.")
- sleep(6)
- os.reboot()
- else
- print("Programm nicht gefunden")
- end
- elseif #tArgs >= 1 and tArgs[1] == "delete" then
- elseif #tArgs >= 1 and tArgs[1] == "help" then
- showHelp()
- elseif #tArgs >= 0 then
- showHelp()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement