Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- print("Samen in Slot 1 einlegen")
- print("")
- print("Treibstoff in Slot 16 einlegen")
- print("")
- print("Habe " .. turtle.getFuelLevel() .." Treibstoff")
- print("")
- print("Soll ich tanken?")
- print("Ja / Nein")
- print("")
- Tanken = io.read()
- if Tanken == "Ja" then
- shell.run("refuel all")
- shell.run("clear")
- else
- print("")
- print("Kein Tanken erforderlich")
- shell.run("clear")
- end
- print("Wie lang ist das Feld?")
- b1 = io.read()
- print("")
- print("Wie breit ist das Feld?")
- a1 = io.read()
- print("")
- a = a1+0
- b = b1+0
- c = a1+1
- while a > 0 do
- while b > 0 do
- turtle.digDown()
- turtle.select(1)
- turtle.placeDown()
- b = b-1
- turtle.forward()
- end
- a = a-1
- b = b1+0
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- while b > 0 do
- turtle.digDown()
- turtle.placeDown()
- b = b-1
- turtle.forward()
- end
- a = a-1
- b = b1+0
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- end
- turtle.turnLeft()
- while c > 0 do
- turtle.forward()
- c = c-1
- end
- turtle.back()
- turtle.turnRight()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement