mailmanq

Staircase

Aug 13th, 2013
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. args = {...}
  2. depth = args[1]
  3.  
  4. if type(depth) ~= "number" then
  5.   error("The depth must be a number!")
  6. end
  7.  
  8. turtle.up()
  9. turtle.up()
  10.  
  11. for i = 1, depth do
  12.   turle.dig()
  13.   turtle.digDown()
  14.   turtle.down()
  15.   turtle.digDown()
  16. end
  17.  
  18. turtle.turnLeft()
  19. turtle.turnLeft()
  20. for i = 1, depth do
  21.   turtle.up()
  22.   turtle.up()
  23. end
Advertisement
Add Comment
Please, Sign In to add comment