Advertisement
Guest User

MakePath

a guest
Mar 3rd, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. --[[
  2. MakePath
  3. Will make a path
  4. Author: Adan
  5. To have do not dig
  6.   diamonds, coal, Redstone, gems
  7. only
  8.   gravel, stone, dirt
  9. ]]--
  10. local y = 1
  11. for i = 1, 24 do
  12.  while not turtle.forward() do
  13.    turtle.dig()
  14.  end
  15.  while turtle.detectUp() do
  16.    turtle.digUp()
  17.  end
  18.  turtle.digDown()
  19.  if y == 6 then
  20.     turtle.select(16)
  21.     turtle.placeDown()
  22.     y=0
  23.  end
  24.  y=y+1  
  25.  turtle.forward()
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement