Advertisement
jdroid91

nicoBox

Dec 17th, 2023 (edited)
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 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. local index = 0
  12. while (index < 9)
  13. do
  14.     index2 = 0
  15.     turtle.up()
  16.     while (index2 < 4)
  17.     do
  18.         index3 = 0
  19.         while (index3 < 13)
  20.         do
  21.             checkSlotInventory()
  22.             turtle.placeDown()
  23.             turtle.forward()
  24.             index3 = index3 + 1
  25.         end
  26.         index2 = index2 + 1
  27.         turtle.turnRight()
  28.     end
  29.     index = index + 1
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement