Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------
- --Crafty Turtle Program by Muzze77---
- -------------------------------------
- local num2 = 0
- local num5 = 0
- local num6 = 0
- local num9 = 0
- local num1 = 0
- local i = 10
- local schlaf = 0.5
- local function cut()
- sleep(schlaf)
- shell.run("clear")
- sleep(schlaf)
- end
- print(" Eingabe Starten: Lädt Dateien")
- cut()
- print(" Turtle Lädt Dateien Bitte warten !")
- cut()
- local schlaf = 1
- local load = 0
- while load >= 90 do
- print(" Turtle Lädt Dateien Bitte warten !" .. " " .. i .. "% fertig.")
- cut()
- i = i+10
- cut()
- end
- print("Dateien sind geladen")
- schlaf = 1
- cut()
- print("Aufladen oder PW ?")
- print("Reload oder PW eingeben : ")
- local n = io.read()
- if n == "Nemesis" then
- while n == "Nemesis" do
- turte.forward()
- turtle.select(2)
- sleep(1)
- --#######################--
- turtle.suck()
- slot2 = turtle.getItemCount(2)
- slot2 = slot2-1
- print(" Turtle hat noch " .. slot2 .. " Eisen im Slot 2")
- turtle.drop(slot2)
- sleep(1)
- --#######################--
- turtle.select(5)
- turtle.suck()
- slot5 = turtle.getItemCount(5)
- slot5 = slot5-1
- print(" Turtle hat noch " .. slot5 .. " Eisen im Slot 5")
- turtle.drop(slot5)
- sleep(1)
- --#######################--
- turtle.select(6)
- turtle.suck()
- slot6 = turtle.getItemCount(6)
- slot6 = slot6-1
- print(" Turtle hat noch " .. slot6 .. " Eisen im Slot 6")
- turtle.drop(slot6)
- sleep(1)
- --#######################--
- turtle.select(9)
- turtle.suck()
- slot9 = turtle.getItemCount(9)
- slot9 = slot9-1
- print(" Turtle hat noch " .. slot9 .. " Eisen im Slot 9")
- turtle.drop(slot9)
- sleep(1)
- --#######################--
- turtle.select(15)
- sleep(1)
- turtle.craft()
- slot15 = turtle.getItemCount(15)
- print(" Turtle hat " .. slot15 .. "x Gold gecraftet.")
- sleep(1)
- --#######################--
- turtle.turnRight()
- sleep(0.2)
- turtle.drop()
- sleep(0.5)
- turtle.turnLeft()
- sleep(1)
- turtle.back()
- print("Done")
- end
- elseif n == "Reload" then
- local g = turtle.getFuelLevel()
- print(g .. " Fuel noch Vorhanden")
- sleep(1)
- print("Wird Nachgeladen bitte Kohle in Slot 16 Legen un #done# schreiben !\n")
- local d = io.read()
- while d == "done" do
- turtle.select(16)
- turtle.refuel()
- sleep(1)
- print(" Neu Befüllt")
- sleep(1)
- d = 0
- end
- else
- print("Wrong Password")
- sleep(0.3)
- shell.run("reboot")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement