Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function digF()
- while(turtle.detect())
- do
- turtle.dig()
- end
- turtle.forward()
- end
- function corr(length)
- for i=1,length do
- digF()
- turtle.digDown()
- turtle.digUp()
- end
- end
- function strip(length, width)
- for i=1, width do
- corr(length)
- turtle.turnLeft()
- digF()
- turtle.digUp()
- turtle.digDown()
- turtle.turnLeft()
- corr(length)
- turtle.turnRight()
- digF()
- turtle.digUp()
- turtle.digDown()
- turtle.turnRight()
- end
- end
- function staircase(depth)
- for i=1,depth do
- turtle.digDown()
- turtle.down()
- for j=1,3 do
- digF()
- end
- turtle.turnLeft()
- digF()
- turtle.turnLeft()
- for j=1,3 do
- digF()
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- end
- end
- --staircase(3)
- strip(10, 10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement