Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local height = 5
- local width = 5
- function BuildUp(height)
- for i=1,height do
- turtle.place()
- turtle.up()
- end
- end
- function BuildDown(height)
- for i=height,1,-1 do
- turtle.place()
- turtle.down()
- end
- end
- function MoveRight()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.down()
- end
- for currWidth=1,width+2,2 do
- BuildUp(height)
- MoveRight()
- BuildDown(height)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement