Advertisement
jdroid91

wizardTowerLayer

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