Advertisement
Guest User

room

a guest
May 22nd, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. amount = read()
  2. function diggin(amount)
  3.     local i = 1
  4.     for i=1,amount do
  5.         turtle.dig()
  6.         turtle.forward()
  7.         turtle.digUp()
  8.         turtle.up()
  9.         turtle.digUp()
  10.         turtle.down()
  11.         turtle.down()
  12.     end
  13. end
  14.  
  15. diggin(amount)
  16. turtle.turnRight()
  17. amount = amount-1
  18. diggin(amount)
  19. turtle.turnRight()
  20. diggin(amount)
  21. turtle.turnRight()
  22. amount = amount-1
  23. diggin(amount)
  24. turtle.turnRight()
  25. amount = amount+1
  26. amount = amount-1
  27. diggin(amount)
  28. turtle.turnRight()
  29. diggin(amount)
  30. turtle.turnRight()
  31. diggin(amount)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement