Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- write("length:")
- local length = tonumber(read())
- write("width:")
- local width = tonumber(read())
- width=width-1
- write("depth:")
- local depth = tonumber(read())
- for d=1, depth do
- turtle.digDown()
- turtle.down()
- for i=1,length do
- turtle.turnRight()
- for j=1, width do
- turtle.dig()
- turtle.forward()
- end
- turtle.turnRight()
- turtle.turnRight()
- for j=1, width do
- turtle.forward()
- end
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- end
- for i=1, lenght do
- turtle.back()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement