Laioless

dig stairs to diamond level (no gps)

Dec 23rd, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. --don't work by in game download, sorry, still looking how to fix, but if you type it, it works
  2.  
  3. turtle.refuel(2)
  4.  
  5. local function CavaBaixo()
  6.     turtle.digDown()
  7.     turtle.down()
  8. end
  9.  
  10. local function CavaLados()
  11.     turtle.turnLeft()
  12.     turtle.dig()
  13.     turtle.turnRight()
  14.     turtle.turnRight()
  15.     turtle.dig()
  16.     turtle.turnLeft()
  17. end
  18.  
  19. local function CavaFrente()
  20.     turtle.dig()
  21.     turtle.forward()
  22. end
  23.  
  24. write("how high are we? (Y position) ")
  25.  
  26. local y = tonumber( read() )
  27. local Num = y-11
  28.  
  29. for i=1,Num do 
  30.     CavaBaixo()
  31.     CavaLados()
  32.  
  33.     CavaFrente()
  34.     CavaLados()
  35.    
  36.     CavaFrente()
  37.     CavaLados()
  38.  
  39.     CavaFrente()
  40.     CavaLados()
  41.  
  42.     CavaFrente()
  43.     CavaLados()
  44.    
  45.     turtle.back()
  46.     turtle.back()
  47.     turtle.back()
  48. end
Advertisement
Add Comment
Please, Sign In to add comment