Advertisement
Josqus

hallbuilder

Dec 24th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. local hall = {}
  2.  
  3. function move_times_back(x)
  4.     for i = 1, x do
  5.         turtle.back()
  6.     end
  7. end
  8.  
  9. function move_times_forward(x)
  10.     for i = 1, x do
  11.         turtle.forward()
  12.     end
  13. end
  14.  
  15. function up_times_forward(x)
  16.     for i = 1, x do
  17.         turtle.up()
  18.     end
  19. end
  20.  
  21. local hall = {}
  22.  
  23. hall.x = 27
  24. hall.z = 16
  25. hall.y = 42 --hall height
  26. hall.e = 3 --hall space between the platforms
  27.  
  28. function new_plattform()
  29.     for x = 1, hall.x
  30.         for i = 1, hall.z do
  31.             turtle.refuel()
  32.             turtle.forward()
  33.             turtle.placeDown()
  34.         end
  35.         turtle.turnLeft()
  36.         turtle.forward()
  37.         turtle.turnRight()
  38.         for a = 1, hall.z do
  39.             turtle.back()
  40.         end
  41.     end
  42. end
  43.  
  44. new_plattform()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement