Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local howfar = {...}
- local passaorb = 1
- if #howfar ~= 2 then
- print("Usage: Program-Name ### #")
- print("This program makes a floor below it.")
- return
- end
- print("Placing blocks "..howfar[1].." blocks ahead.")
- j = 1
- for a = 1, howfar[2] do
- for b = 1, howfar[1] do
- if turtle.getItemCount(j) > 0 then
- turtle.select(j)
- turtle.placeDown(j)
- else
- j = j + 1
- turtle.select(j)
- turtle.placeDown(j)
- end
- turtle.forward()
- end
- if (a % 2) == 0 then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- else
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement