Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print(
- "----------------- Einstellungen -------------------")
- print()
- textutils.slowWrite("Anzahl der Seitengaenge? : ")
- a = io.read()
- print()
- textutils.slowWrite("Weite der Seitengaenge : ")
- b = io.read()
- print()
- print("Bitte lege 64 Fackeln in den unteren,rechten Slot der Turtle.")
- print(
- "---------------------------------------------------")
- c = 0
- d = 0
- function AbbV()
- while turtle.detect() do
- turtle.dig()
- sleep(0.5)
- end
- end
- function AbbO()
- while turtle.detectUp() do
- turtle.digUp()
- sleep(0.5)
- end
- end
- function lava()
- if turtle.detect() then
- else
- turtle.select(1)
- turtle.placeDown()
- end
- end
- function abb()
- AbbV()
- turtle.forward()
- lava()
- AbbO()
- end
- function sgw()
- while c <= b do
- abb()
- c = c + 1
- end
- end
- function mg()
- while d <= a do
- abb()
- abb()
- turtle.turnRight()
- sgw()
- turtle.turnRight()
- turtle.turnRight()
- sgw()
- sgw()
- turtle.turnRight()
- turtle.turnRight()
- sgw()
- turtle.turnLeft()
- d = d + 1
- end
- end
- mg()
- print("Fertig")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement