Advertisement
DemidShumakher

123

May 5th, 2020
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.94 KB | None | 0 0
  1. function floor()
  2.     local b = 6
  3.     for z = 1,3 do
  4.         for y = 1,4 do
  5.             for i = 2,b do
  6.                 turtle.placeDown()
  7.                 turtle.forward()
  8.             end
  9.             turtle.turnRight()
  10.         end
  11.         b = b - 2
  12.         turtle.forward()
  13.         turtle.turnRight()
  14.         turtle.forward()
  15.         turtle.turnLeft()
  16.     end
  17.     for i = 1,3 do 
  18.         turtle.back()
  19.     end
  20.     turtle.turnLeft()
  21.     for i = 1,3 do
  22.         turtle.forward()
  23.     end
  24.     turtle.turnRight()
  25.  
  26. end
  27.  
  28.  
  29. function door()
  30.     turtle.turnRight()
  31.     for y = 1,5 do
  32.         turtle.place()
  33.         turtle.up()
  34.         turtle.placeDown()
  35.     end
  36.     for i = 1,4 do
  37.         turtle.forward()
  38.     end
  39.     for i = 1,5 do
  40.         turtle.down()
  41.     end
  42.     for y = 1,5 do
  43.         turtle.place()
  44.         turtle.up()
  45.         turtle.placeDown()
  46.     end
  47.     for i = 1,4 do
  48.         turtle.back()
  49.         turtle.placeDown()
  50.     end
  51.     turtle.turnLeft()
  52. end
  53.  
  54. function wall(n)
  55.     for i = 1,n do
  56.         turtle.forward()
  57.         turtle.down()
  58.     end
  59.     turtle.down()
  60.    
  61.     for i = 1,n do
  62.         for y = 1,5 do
  63.             turtle.up()
  64.             turtle.placeDown()
  65.         end
  66.         turtle.back()
  67.         for y = 1,5 do
  68.             turtle.down()
  69.         end
  70.     end
  71.        
  72.     for i = 1,5 do
  73.         turtle.forward()
  74.     end
  75.     turtle.turnRight()
  76. end
  77.  
  78.  
  79. function window()
  80.     for i = 1,5 do
  81.         turtle.forward()
  82.         turtle.down()
  83.     end
  84.     for i = 1,2 do
  85.         for y = 1,5 do
  86.             turtle.up()
  87.             turtle.placeDown()
  88.         end
  89.         turtle.back()
  90.         for y = 1,5 do
  91.             turtle.down()
  92.         end
  93.     end
  94.     for i = 1,2 do
  95.         turtle.up()
  96.         turtle.placeDown()
  97.         turtle.up()
  98.         turtle.up()
  99.         turtle.back()
  100.         for y = 1,2 do
  101.             turtle.place()
  102.             turtle.up()
  103.         end
  104.         for y = 1,5 do
  105.             turtle.down()
  106.         end
  107.     end
  108.     for i = 1,5 do
  109.         turtle.up()
  110.         turtle.placeDown()
  111.     end
  112.     for i = 1,4 do
  113.         turtle.forward()
  114.     end
  115.     turtle.turnRight()
  116.  
  117. end
  118.  
  119. function roof ()
  120.     local b = 3
  121.     for i = 1,2 do
  122.         turtle.forward()
  123.         turtle.turnRight()
  124.         turtle.up()
  125.         turtle.forward()
  126.         for y = 1,4 do
  127.             for i = 1,b do
  128.                 turtle.placeDown()
  129.                 turtle.forward()
  130.             end
  131.             turtle.turnLeft()
  132.         end
  133.     turtle.turnLeft()
  134.     b = b-2
  135.     end
  136.  
  137. end
  138.  
  139.  
  140. wall(5)
  141. wall(4)
  142. roof()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement