Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- write("Laenge : ")
- l=io.read()
- print("")
- write("Breite : ")
- b=io.read()
- print("")
- write("Tiefe : ")
- t=io.read()
- print("")
- textutils.slowPrint("---------------------------------------")
- sleep(2)
- --Algemeines Graben
- function reihe()
- if turtle.detect()==true then
- for x=1,b-1 do
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- end
- else
- for x=1,b-1 do
- turtle.forward()
- end
- end
- for x=1,b-1 do
- turtle.back()
- end
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.turnLeft()
- end
- function anfang()
- turtle.turnLeft()
- for y=1,b do
- turtle.forward()
- end
- turtle.turnRight()
- turtle.digDown()
- turtle.down()
- end
- function hoch()
- for x=1,t do
- turtle.up()
- end
- end
- function loch()
- for z=1,t do
- for y=1,l do
- reihe()
- end
- anfang()
- end
- end
- loch()
- hoch()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement