Advertisement
LDDestroier

Computercraft Obsidian Tower Miner

Dec 8th, 2015
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. c = 0
  2. height = 0
  3. repeat
  4.     for a = 1, 5 do
  5.         for b = 1, 5 do
  6.             turtle.dig()
  7.             turtle.forward()
  8.         end
  9.         if (c % 2 == 0) and a ~= 5 then
  10.             turtle.turnRight()
  11.             turtle.dig()
  12.             turtle.forward()
  13.             turtle.turnRight()
  14.             c = c + 1
  15.         else
  16.             turtle.turnLeft()
  17.             turtle.dig()
  18.             turtle.forward()
  19.             turtle.turnLeft()
  20.             c = c + 1
  21.         end
  22.     end
  23.     height = height + 1
  24.     turtle.up()
  25.     turtle.turnRight()
  26.     turtle.turnRight()
  27. until not see
  28. turtle.forward()
  29. for a = 1, height do
  30.     turtle.down()
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement