Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = {...}
- toDep = tonumber(tArgs[1])
- toWid = tonumber(tArgs[2])
- print("Digging staircase "..toWid.." blocks wide and "..toDep.." blocks deep.")
- function staircase(dep)
- for i=1, dep do
- turtle.digDown()
- turtle.digUp()
- turtle.up()
- turtle.digUp()
- turtle.down()
- turtle.down()
- if i < dep then
- turtle.dig()
- turtle.forward()
- end
- end
- for i=1, dep do
- turtle.back()
- turtle.up()
- end
- end
- for i=1, toWid do
- staircase(toDep)
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement