Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Vierbaum Hacker by g4njah
- -- Dirt to the last slot please.
- -- Turtle in front of the first right
- print("Turtle: " .. os.getComputerLabel() )
- print("-------------------------------")
- print("g4njah's Vierbaum Hacker v2.2")
- print("------------------------")
- print("Attention: Dirt to the last Slot.")
- sleep(1)
- print("Turtle starting in 3 seconds...")
- sleep(3)
- -- Movement
- function vo()
- turtle.forward()
- end
- function vo2()
- vo()
- vo()
- end
- function zu()
- turtle.back()
- end
- function zu2()
- zu()
- zu()
- end
- function zu5()
- zu2()
- zu2()
- zu()
- end
- function zu20()
- zu5()
- zu5()
- zu5()
- zu5()
- end
- function li()
- turtle.turnLeft()
- end
- function re()
- turtle.turnRight()
- end
- -- Positionsfunktion
- function getinpos()
- vo()
- re()
- vo2()
- li()
- end
- function comeback()
- re()
- vo()
- li()
- zu20()
- re()
- zu2()
- zu()
- li()
- zu()
- end
- -- Hauptfunktionen
- function rauf()
- turtle.dig()
- turtle.forward()
- while turtle.detectUp() == true do
- turtle.digUp()
- turtle.up()
- end
- end
- function runter()
- turtle.dig()
- turtle.forward()
- turtle.select(16)
- while turtle.compareDown() == false do
- turtle.digDown()
- turtle.down()
- end
- end
- function baumreihe()
- for i=1, 5, 1 do
- rauf()
- runter()
- li()
- rauf()
- li()
- runter()
- li()
- vo()
- li()
- vo2()
- vo()
- end
- end
- function dropall15()
- re()
- for i = 1, 15, 1 do
- turtle.select(i)
- turtle.drop()
- end
- li()
- end
- -- Hauptprogrammteil
- getinpos()
- baumreihe()
- comeback()
- dropall15()
- print("g4njahs vierbaum5 Script erfolgreich beendet.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement