MPhil

Untitled

Aug 17th, 2012
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. height = 0
  2. if turtle.detect() then
  3.     turtle.dig()
  4.     turtle.forward()
  5.     while turtle.detectUp() do
  6.         height = height + 1
  7.         turtle.digUp()
  8.         turtle.up()
  9.     end
  10.     while height > 0 do
  11.         height = height - 1
  12.         tutle.down()
  13.     end
  14.     turtle.digDown()
  15.     turtle.back()
  16.     turtle.turnLeft()
  17.     turtle.drop()
  18.     turtle.drop()
  19.     turtle.turnRight()
  20. end
Advertisement
Add Comment
Please, Sign In to add comment