Kierra

Untitled

Apr 1st, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. print("Combien de blocs fera votre tunnel ?")
  2. blocs = read()
  3. blocs = tonumber(blocs)
  4. blocs = blocs * 2
  5. print("Le minage va commencer !")
  6.  
  7. turtle.refuel(5)
  8.  
  9. repeat
  10.     turtle.dig()
  11.     turtle.forward()
  12.     turtle.digUp()
  13.     turtle.digDown()
  14.     blocs = blocs - 1
  15. until blocs == 0
  16.  
  17. turtle.turnRight()
  18. turtle.turnRight()
  19.  
  20. repeat turtle.forward()
  21. until turtle.detect()
  22.  
  23. print("Le minage est fini !")
Advertisement
Add Comment
Please, Sign In to add comment