Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Variable zum Entleeren
- -- "AN" = Wird entleert
- -- "AUS" = Bleibt im Turtle
- ENTLEEREN = "AN"
- --Treibstoff Check--
- Treibstoff = turtle.getFuelLevel() + 0
- if Treibstoff <= 90 then
- print("Dafuer reicht mein Treibstoff nicht.")
- return
- end
- -- Funktion --
- function Vor( ZAHL , RICHTUNG )
- for i = 1,ZAHL do
- turtle.forward()
- turtle.digDown()
- turtle.placeDown()
- end
- if RICHTUNG == "L" then
- turtle.turnLeft()
- elseif RICHTUNG == "R" then
- turtle.turnRight()
- end
- end
- -- Basisprogramm --
- turtle.up()
- turtle.select(1)
- Vor(4,"L")
- Vor(4,"L")
- Vor(8,"L")
- Vor(8,"L")
- Vor(8,"L")
- Vor(3,"L")
- Vor(1,"L")
- Vor(2,"R")
- Vor(6,"R")
- Vor(6,"R")
- Vor(6,"R")
- Vor(2,"R")
- Vor(1,"R")
- Vor(1,"L")
- Vor(4,"L")
- Vor(4,"L")
- Vor(4,"L")
- Vor(1,"L")
- Vor(3,"R")
- Vor(2,"R")
- Vor(2,"R")
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- turtle.turnRight()
- turtle.down()
- if ENTLEEREN == "AN" then
- SLOT = 2
- for i = 1,15 do
- turtle.select(SLOT)
- SLOT = SLOT + 1
- turtle.dropDown()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement