Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------------------
- -------------------- Placey Turtle By Muzze77 -----------------
- ---------------------------------------------------------------
- --######################## Variables ########################--
- local sle = 1
- --+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
- --######################## Functions ########################--
- --+++++++++++++++++++++++ CUT +++++++++++++++++++++++++++++++--
- local function cut()
- sleep(sle)
- shell.run("clear")
- sleep(sle)
- end
- --++++++++++++++++++++++++ PLACE +++++++++++++++++++++++++++++--
- local function place()
- turtle.select("1")
- end
- --######################## Programs #########################--
- sle = 4
- print("Dies ist Placey. Sie wird dir die Arbeit erleichtern.")
- cut()
- print("Passwort?")
- cut()
- print("Gib das richtige Passwort ein:")
- local password = io.read()
- if password == "Easy" then
- cut()
- print("Passwort ist richtig!.")
- cut()
- print("Soll Placey loslegen ? JA/NEIN/AUFFÜLEN(RELOAD)")
- local answer = io.read()
- if answer == "JA" then
- sle = 1
- turtle.select(1)
- cut()
- print("Maximal 19 Saplinge in Slot 1 legen")
- turtle.select(1)
- cut()
- local item3 = turtle.compareTo(5)
- local sapl = turtle.getItemCount(1)
- local sapl1 = sapl-19
- while search == item do
- cut()
- print(" Kohle in letzten Slot legen")
- cut()
- end
- if sapl1 >= 19 then
- print("Not Enougt")
- end
- cut()
- if sapl == 100 then
- print("Placey beginnt mit der Arbeit")
- cut()
- turtle.forward(2)
- place()
- end
- elseif answer == "RELOAD" then
- sle = 1
- cut()
- print(" Placey füllt nach.")
- cut()
- local fuel = turtle.getFuelLevel()
- print("Placey hat noch " .. fuel .. " Treibstoff")
- cut()
- print("Lege in den letzten Slot Kohle rein ( 1 Kohle = 80 Treibstoff")
- turtle.select(16)
- local item = turtle.compareTo(12)
- local coal = turtle.getItemCount(16)
- print(item)
- while not item == item2 do
- cut()
- print(" Kohle in letzten Slot legen")
- cut()
- end
- cut()
- turtle.refuel(coal)
- sleep(4)
- print("Aufgefüllt")
- cut()
- shell.run("placey")
- else
- sle = 1
- cut()
- print(" Auf wiedersehen!")
- cut()
- shell.run("startup")
- end
- else
- sle = 1
- print("Falsches Passwort")
- cut()
- shell.run("startup")
- end
- --+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
- --######################## END #########################--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement