Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("QuarryTurtle")
- print("by Muzze77")
- print("Wie viele Schritte sollen gegangen werden?")
- schritte = io.read()
- warten = 200
- function place()
- shell.run("clear")
- turtle.select(5)
- turtle.turnRight()
- turtle.place()
- sleep(0.5)
- turtle.select(6)
- sleep(0.5)
- turtle.up()
- turtle.placeDown()
- sleep(0.5)
- turtle.select(7)
- sleep(0.5)
- turtle.place()
- turtle.up()
- sleep(0.5)
- turtle.select(8)
- sleep(0.5)
- turtle.placeDown()
- sleep(1)
- turtle.select(1)
- end
- function cut()
- turtle.select(8)
- sleep(0.5)
- turtle.digDown()
- turtle.down()
- sleep(0.5)
- turtle.select(7)
- turtle.dig()
- sleep(0.5)
- turtle.select(6)
- turtle.digDown()
- turtle.down()
- sleep(0.5)
- turtle.select(5)
- turtle.dig()
- turle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- end
- while true do
- while schritte ~= 0 do
- turtle.select(16)
- shell.run("refuel 4")
- turtle.select(1)
- place()
- while warten ~= 0 do
- shell.run("clear")
- sleep(0.1)
- print("noch " .. warten .. " Sec warten")
- sleep(0.9)
- warten = warten - 1
- end
- cut()
- schritte = schritte - 1
- warten = 400
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement