Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Welcome to the Stair Maker")
- write("How many blocks down: ")
- local blocksdown
- blocksdown = tonumber(read())
- counter = 0
- function dig()
- while turtle.detect() do
- turtle.dig()
- end
- end
- while counter < blocksdown do
- if turtle.getFuelLevel() < 4 then
- turtle.refuel()
- end
- dig()
- turtle.forward()
- turtle.turnRight()
- dig()
- for i=1,3 do
- turtle.digDown()
- turtle.down()
- dig()
- end
- turtle.up()
- turtle.up()
- turtle.turnLeft()
- counter = counter + 1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement