Advertisement
Guest User

lighter

a guest
Sep 9th, 2013
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.49 KB | None | 0 0
  1. function portal()
  2.  
  3.     for i = 1, x do
  4.  
  5.     for i = 1, y - 1 do
  6.  
  7.         for i = 1, z do
  8.             turtle.place()
  9.             turtle.turnRight()
  10.             turtle.place()
  11.             turtle.turnLeft()
  12.             shell.run("go back 3")
  13.    
  14.         end
  15.  
  16.         turtle.place()
  17.         turtle.turnRight()
  18.         shell.run("go back 3")
  19.         turtle.turnLeft()
  20.    
  21.         for i = 1, z *3 do
  22.    
  23.         turtle.forward()
  24.  
  25.         end
  26.  
  27.     end
  28.        
  29.             for i = 1, z do
  30.  
  31.             turtle.place()
  32.             turtle.turnRight()
  33.             turtle.place()
  34.             turtle.turnLeft()
  35.             shell.run("go back 3")
  36.    
  37.         end
  38.  
  39.         turtle.place()
  40.         turtle.turnRight()
  41.         shell.run("go back 3")
  42.         turtle.turnLeft()
  43.  
  44.             for i = 1, z do
  45.  
  46.                 shell.run("go forward 2")
  47.                 turtle.turnRight()
  48.                 turtle.place()
  49.                 turtle.turnLeft()
  50.                 turtle.forward()
  51.  
  52.             end
  53.  
  54.             shell.run("go forward 2")
  55.             turtle.turnRight()
  56.            
  57.             for i = 1, y * 3 do
  58.  
  59.                 turtle.forward()
  60.            
  61.             end
  62.  
  63.             turtle.turnLeft()
  64.  
  65.             shell.run("go up 4")
  66.             turtle.back()
  67.             turtle.back()
  68.  
  69.             s = s + 1
  70.             turtle.select(s)
  71.    
  72.     end
  73.  
  74.     shell.run("go forward 2")
  75.    
  76.     for i = 1, x*4 do
  77.        
  78.         turtle.down()
  79.  
  80.     end
  81.  
  82.     shell.run("go down 2")
  83.     turtle.turnLeft()
  84.     turtle.back()
  85.     turtle.turnLeft()
  86.  
  87. end
  88.  
  89. print("Enter height:")
  90. x = io.read()
  91. print("Enter width:")
  92. y = io.read()
  93. print("Enter depth:")
  94. z = io.read()
  95.  
  96. s = 1
  97.  
  98. turtle.up()
  99. turtle.turnRight()
  100. turtle.forward()
  101. turtle.turnRight()
  102. turtle.up()
  103. turtle.back()
  104. turtle.back()
  105. portal()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement