100Toby1

Untitled

Apr 30th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. local width = 40
  2. local length = 60
  3. local height = 5
  4.  
  5. local curHeight = 0
  6. while curHeight < height do
  7. local curWidth = 0
  8. while curWidth < width do
  9. turtle.dig()
  10. turtle.forward()
  11. turtle.digDown()
  12. turtle.placeDown()
  13. curWidth = curWidth + 1
  14. end
  15. turtle.turnLeft()
  16. local curLength = 0
  17. while curLength < length do
  18. turtle.dig()
  19. turtle.forward()
  20. turtle.digDown()
  21. turtle.placeDown()
  22. curLength = curLength + 1
  23. end
  24. turtle.turnLeft()
  25. local curWidth = 0
  26. while curWidth < width do
  27. turtle.dig()
  28. turtle.forward()
  29. turtle.digDown()
  30. turtle.placeDown()
  31. curWidth = curWidth + 1
  32. end
  33. turtle.turnLeft()
  34. local curLength = 0
  35. while curLength < length do
  36. turtle.dig()
  37. turtle.forward()
  38. turtle.digDown()
  39. turtle.placeDown()
  40. curLength = curLength + 1
  41. end
  42. turtle.turnLeft()
  43. turtle.up()
  44. curHeight = curHeight + 1
  45. end
Advertisement
Add Comment
Please, Sign In to add comment