TheCountryGamer

(WIP) Branch Mine: Staircase

Aug 21st, 2013
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. -- 1x2 tunnel for 40 blocks
  2. function stair()
  3.    if turtle.detect() then
  4.       turtle.dig()
  5.    end
  6.    turtle.forward()
  7.    if turtle.detectUp() then
  8.       turtle.digUp()
  9.    end
  10.    if turtle.detectDown() then
  11.       turtle.digDown()
  12.    end
  13.    turtle.down()
  14. end
  15. function stairs()
  16.    for i=1, 40
  17.       stair()
  18.    end
  19. end
  20. -- every 3 blocks, mine left & right 5 blocks
Advertisement
Add Comment
Please, Sign In to add comment