Advertisement
JimPlatinum

Untitled

May 14th, 2024 (edited)
904
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | Gaming | 0 0
  1. --local variables--
  2.  
  3. local target, blockDetail = turtle.inspect()
  4. local wood = turtle.getItenDetail(1).name
  5. local sapling = turtle.getItenDetail(2).name
  6.  
  7. --Functions--
  8.  
  9. function goF()
  10.     while not turtle.forward() do
  11.         turtle.dig()
  12.     end
  13. end
  14.  
  15. function goU()
  16.     while not turtle.up() do
  17.         turtle.digUp()
  18.     end
  19. end
  20.  
  21. function goD()
  22.     while not turtle.down() do
  23.         turtle.digDown()
  24.     end
  25. end
  26.  
  27. --Main Code--
  28.  
  29. for i = 1, 6 do
  30.     goU
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement