Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --START THE TURTLE AT 1,1,1--
- local length =5-- 53
- local width =5-- 20
- local height =5-- 12
- function mineForward(z)--z is the height
- for a = 1, z, 1 do
- turtle.digUp()
- turtle.up()
- end
- turtle.dig()
- turtle.forward()
- for a = z, 1, -1 do
- turtle.digDown()
- turtle.down()
- end
- turtle.dig()
- turtle.forward()
- end
- if width % 2 == 1 then
- width = width + 1
- width = width / 2
- elseif width % 2 == 0 then
- width = width / 2
- end
- for y = 1, length,1 do --y is the length
- for x = 1, width, 1 do--x is the x width
- mineForward(height)
- if(x % 2 == 1 and x == width) then
- turtle.back()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- elseif(x % 2 == 0 and x == width) then
- turtle.back()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement