Advertisement
jdroid91

nicoCircle

Dec 17th, 2023 (edited)
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.71 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.turnRight()
  17.    
  18.     turtle.forward()
  19.     turtle.placeDown()
  20.     checkSlotInventory()
  21.    
  22.     turtle.turnLeft()
  23.    
  24.     turtle.forward()
  25.     turtle.placeDown()
  26.     checkSlotInventory()
  27.    
  28.     turtle.forward()
  29.     turtle.placeDown()
  30.     checkSlotInventory()
  31.    
  32.     turtle.turnRight()
  33.    
  34.     turtle.forward()
  35.     turtle.placeDown()
  36.     checkSlotInventory()
  37.    
  38.     turtle.turnLeft()
  39.    
  40.     turtle.forward()
  41.     turtle.placeDown()
  42.     checkSlotInventory()
  43.    
  44.     turtle.turnRight()
  45.    
  46.     turtle.forward()
  47.     turtle.placeDown()
  48.     checkSlotInventory()
  49.    
  50.     turtle.forward()
  51.     turtle.placeDown()
  52.     checkSlotInventory()
  53.    
  54.     turtle.turnLeft()
  55.    
  56.     turtle.forward()
  57.     turtle.placeDown()
  58.     checkSlotInventory()
  59.    
  60.     turtle.turnRight()
  61.    
  62.     turtle.forward()
  63.     turtle.placeDown()
  64.     checkSlotInventory()
  65.    
  66.     turtle.forward()
  67.     turtle.placeDown()
  68.     checkSlotInventory()
  69.    
  70. end
  71.  
  72. local index = 0
  73.  
  74. while (index < 9)
  75. do
  76.     turtle.up()
  77.     placeArc()
  78.     turtle.forward()
  79.     turtle.placeDown()
  80.     checkSlotInventory()
  81.  
  82.     placeArc()
  83.     turtle.forward()
  84.     turtle.placeDown()
  85.     checkSlotInventory()
  86.  
  87.     placeArc()
  88.     turtle.forward()
  89.     turtle.placeDown()
  90.     checkSlotInventory()
  91.  
  92.     placeArc()
  93.     turtle.forward()
  94.     turtle.placeDown()
  95.     checkSlotInventory()
  96.  
  97.     index = index + 1
  98. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement