Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x=0
- local y=0
- local z=0
- local z1=0
- local length=0
- function Ground(length)
- while y<length do
- while x<length do
- turtle.select(1)
- turtle.dig()
- turtle.forward()
- turtle.digDown()
- turtle.placeDown()
- x=x+1
- end
- y=y+1
- if y%2==0 then
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- else
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- x=0
- end
- while z<(length+1) do
- turtle.dig()
- turtle.forward()
- z=z+1
- end
- turtle.turnLeft()
- while z1<length do
- turtle.dig()
- turtle.forward()
- z1=z1+1
- end
- turtle.turnLeft()
- end
- term.write(" Welche Laenge soll das Haus haben? ")
- length=read()
- length=tonumber(length)
- Ground(length)
Add Comment
Please, Sign In to add comment